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 /****************************************************************************/
17 // Derivation of NLEdgeControlBuilder which builds gui-edges
18 /****************************************************************************/
19 #ifndef GUIEdgeControlBuilder_h
20 #define GUIEdgeControlBuilder_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <vector>
32 #include <guisim/GUIEdge.h>
33 
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
38 class MSJunction;
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
53 public:
59 
60 
63 
64 
76  virtual MSLane* addLane(const std::string& id,
77  double maxSpeed, double length,
78  const PositionVector& shape, double width,
79  SVCPermissions permissions,
80  int index, bool isRampAccel,
81  const std::string& type);
82 
83 
84 
93  MSEdge* buildEdge(const std::string& id, const SumoXMLEdgeFunc function,
94  const std::string& streetName, const std::string& edgeType, const int priority, const double distance);
95 
96 
97 private:
100 
103 
104 };
105 
106 
107 #endif
108 
109 /****************************************************************************/
110 
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
NLEdgeControlBuilder
Interface for building edges.
Definition: NLEdgeControlBuilder.h:57
MSJunction
The base class for an intersection.
Definition: MSJunction.h:60
GUIEdgeControlBuilder::GUIEdgeControlBuilder
GUIEdgeControlBuilder()
Constructor.
Definition: GUIEdgeControlBuilder.cpp:41
SumoXMLEdgeFunc
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
Definition: SUMOXMLDefinitions.h:1079
GUIEdgeControlBuilder::buildEdge
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)
Definition: GUIEdgeControlBuilder.cpp:65
PositionVector
A list of positions.
Definition: PositionVector.h:45
GUIEdgeControlBuilder::~GUIEdgeControlBuilder
~GUIEdgeControlBuilder()
Destructor.
Definition: GUIEdgeControlBuilder.cpp:45
SVCPermissions
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
Definition: SUMOVehicleClass.h:218
GUIEdgeControlBuilder
Derivation of NLEdgeControlBuilder which builds gui-edges.
Definition: GUIEdgeControlBuilder.h:52
GUIEdgeControlBuilder::GUIEdgeControlBuilder
GUIEdgeControlBuilder(const GUIEdgeControlBuilder &s)
invalidated copy constructor
MSEdge
A road/street connecting two junctions.
Definition: MSEdge.h:78
NLEdgeControlBuilder.h
GUIEdge.h
config.h
GUIEdgeControlBuilder::addLane
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.
Definition: GUIEdgeControlBuilder.cpp:49
GUIEdgeControlBuilder::operator=
GUIEdgeControlBuilder & operator=(const GUIEdgeControlBuilder &s)
invalidated assignment operator
PositionVector.h