Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // Derivation of NLEdgeControlBuilder which builds gui-edges
19 /****************************************************************************/
20 #ifndef GUIEdgeControlBuilder_h
21 #define GUIEdgeControlBuilder_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <string>
30 #include <vector>
33 #include <guisim/GUIEdge.h>
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class MSJunction;
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
54 public:
60 
61 
64 
65 
77  virtual MSLane* addLane(const std::string& id,
78  double maxSpeed, double length,
79  const PositionVector& shape, double width,
80  SVCPermissions permissions,
81  int index, bool isRampAccel,
82  const std::string& type);
83 
84 
85 
94  MSEdge* buildEdge(const std::string& id, const SumoXMLEdgeFunc function,
95  const std::string& streetName, const std::string& edgeType, const int priority, const double distance);
96 
97 
98 private:
101 
104 
105 };
106 
107 
108 #endif
109 
110 /****************************************************************************/
111 
virtual MSLane * addLane(const std::string &id, double maxSpeed, double length, const PositionVector &shape, double width, SVCPermissions permissions, int index, bool isRampAccel, const std::string &type)
Builds and adds a lane.
GUIEdgeControlBuilder()
Constructor.
The base class for an intersection.
Definition: MSJunction.h:61
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:76
A list of positions.
MSEdge * buildEdge(const std::string &id, const SumoXMLEdgeFunc function, const std::string &streetName, const std::string &edgeType, const int priority, const double distance)
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:83
Interface for building edges.