49 #include <mesosim/MELoop.h>
52 #ifdef CHECK_MEMORY_LEAKS
54 #endif // CHECK_MEMORY_LEAKS
61 : myCurrentNumericalLaneID(0), myCurrentNumericalEdgeID(0), myEdges(0) {
75 const std::string& streetName) {
97 std::vector<MSLane*>* lanes =
new std::vector<MSLane*>();
108 for (EdgeCont::iterator i1 =
myEdges.begin(); i1 !=
myEdges.end(); i1++) {
109 (*i1)->closeBuilding();
virtual MSEdge * closeEdge()
Closes the building of an edge; The edge is completely described by now and may not be opened again...
virtual MSEdge * buildEdge(const std::string &id, const MSEdge::EdgeBasicFunction function, const std::string &streetName="")
Builds an edge instance (MSEdge in this case)
static bool dictionary(const std::string &id, MSEdge *edge)
Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary...
unsigned int myCurrentNumericalLaneID
A running number for lane numbering.
EdgeBasicFunction
Defines possible edge types.
MSEdge * myActiveEdge
pointer to the currently chosen edge
static OptionsCont & getOptions()
Retrieves the options.
void initialize(std::vector< MSLane * > *lanes)
Initialize the edge.
unsigned int myCurrentNumericalEdgeID
A running number for edge numbering.
A road/street connecting two junctions.
MSEdgeControl * build()
builds the MSEdgeControl-class which holds all edges
EdgeCont myEdges
Temporary, internal storage for built edges.
std::vector< MSLane * > * myLaneStorage
pointer to a temporary lane storage
NLEdgeControlBuilder()
Constructor.
Stores edges and lanes, performs moving of vehicle.
virtual ~NLEdgeControlBuilder()
Destructor.
virtual MSLane * addLane(const std::string &id, SUMOReal maxSpeed, SUMOReal length, const PositionVector &shape, SUMOReal width, SVCPermissions permissions)
Adds a lane to the current edge;.
static const bool gUseMesoSim
void beginEdgeParsing(const std::string &id, const MSEdge::EdgeBasicFunction function, const std::string &streetName)
Begins building of an MSEdge.
Representation of a lane in the micro simulation.