SUMO - Simulation of Urban MObility
GUIEdgeControlBuilder.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
20 // Derivation of NLEdgeControlBuilder which builds gui-edges
21 /****************************************************************************/
22 #ifndef GUIEdgeControlBuilder_h
23 #define GUIEdgeControlBuilder_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 <string>
36 #include <vector>
39 #include <guisim/GUIEdge.h>
40 
41 
42 // ===========================================================================
43 // class declarations
44 // ===========================================================================
45 class MSJunction;
46 
47 
48 // ===========================================================================
49 // class definitions
50 // ===========================================================================
60 public:
66 
67 
70 
71 
83  virtual MSLane* addLane(const std::string& id,
84  double maxSpeed, double length,
85  const PositionVector& shape, double width,
86  SVCPermissions permissions,
87  int index, bool isRampAccel);
88 
89 
90 
99  MSEdge* buildEdge(const std::string& id, const SumoXMLEdgeFunc function,
100  const std::string& streetName, const std::string& edgeType, const int priority);
101 
102 
103 private:
106 
109 
110 };
111 
112 
113 #endif
114 
115 /****************************************************************************/
116 
GUIEdgeControlBuilder()
Constructor.
The base class for an intersection.
Definition: MSJunction.h:64
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
Derivation of NLEdgeControlBuilder which builds gui-edges.
A road/street connecting two junctions.
Definition: MSEdge.h:80
A list of positions.
virtual MSLane * addLane(const std::string &id, double maxSpeed, double length, const PositionVector &shape, double width, SVCPermissions permissions, int index, bool isRampAccel)
Builds and adds a lane.
MSEdge * buildEdge(const std::string &id, const SumoXMLEdgeFunc function, const std::string &streetName, const std::string &edgeType, const int priority)
Builds an edge instance (GUIEdge in this case)
GUIEdgeControlBuilder & operator=(const GUIEdgeControlBuilder &s)
invalidated assignment operator
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
Interface for building edges.