SUMO - Simulation of Urban MObility
GUIEdgeControlBuilder.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // Derivation of NLEdgeControlBuilder which builds gui-edges
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
13 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
14 /****************************************************************************/
15 //
16 // This file is part of SUMO.
17 // SUMO is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 /****************************************************************************/
23 #ifndef GUIEdgeControlBuilder_h
24 #define GUIEdgeControlBuilder_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <string>
37 #include <vector>
40 #include <guisim/GUIEdge.h>
41 
42 
43 // ===========================================================================
44 // class declarations
45 // ===========================================================================
46 class MSJunction;
47 
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
61 public:
67 
68 
71 
72 
84  virtual MSLane* addLane(const std::string& id,
85  double maxSpeed, double length,
86  const PositionVector& shape, double width,
87  SVCPermissions permissions,
88  int index, bool isRampAccel);
89 
90 
91 
100  MSEdge* buildEdge(const std::string& id, const MSEdge::EdgeBasicFunction function,
101  const std::string& streetName, const std::string& edgeType, const int priority);
102 
103 
104 private:
107 
110 
111 };
112 
113 
114 #endif
115 
116 /****************************************************************************/
117 
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.
EdgeBasicFunction
Defines possible edge types.
Definition: MSEdge.h:89
MSEdge * buildEdge(const std::string &id, const MSEdge::EdgeBasicFunction function, const std::string &streetName, const std::string &edgeType, const int priority)
Builds an edge instance (GUIEdge in this case)
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.
GUIEdgeControlBuilder & operator=(const GUIEdgeControlBuilder &s)
invalidated assignment operator
Representation of a lane in the micro simulation.
Definition: MSLane.h:79
Interface for building edges.