SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NGEdge.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // A netgen-representation of an edge
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef NGNetElements_h
23 #define NGNetElements_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <list>
37 #include <utils/geom/Position.h>
38 #include <utils/geom/GeomHelper.h>
39 
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 class NGNode;
45 class NBNode;
46 class NBEdge;
47 class NBNetBuilder;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
61 class NGEdge {
62 public:
71  NGEdge(const std::string& id, NGNode* startNode, NGNode* endNode) ;
72 
73 
78  ~NGEdge() ;
79 
80 
85  const std::string& getID() const {
86  return myID;
87  }
88 
89 
95  return myStartNode;
96  };
97 
98 
104  return myEndNode;
105  };
106 
107 
117  NBEdge* buildNBEdge(NBNetBuilder& nb) const ;
118 
119 
120 private:
122  std::string myID;
123 
126 
129 
130 };
131 
132 
137 typedef std::list<NGEdge*> NGEdgeList;
138 
139 #endif
140 
141 /****************************************************************************/
142