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,
76 const std::string& edgeType) {
98 std::vector<MSLane*>* lanes =
new std::vector<MSLane*>();
109 for (EdgeCont::iterator i1 =
myEdges.begin(); i1 !=
myEdges.end(); i1++) {
110 (*i1)->closeBuilding();
119 for (EdgeCont::iterator i1 =
myEdges.begin(); i1 !=
myEdges.end(); i1++) {
std::set< std::string > deprecatedVehicleClassesSeen
virtual MSEdge * closeEdge()
Closes the building of an edge; The edge is completely described by now and may not be opened again...
void beginEdgeParsing(const std::string &id, const MSEdge::EdgeBasicFunction function, const std::string &streetName, const std::string &edgeType)
Begins building of an MSEdge.
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
#define WRITE_WARNING(msg)
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.
unsigned int getNoFollowing() const
Returns the number of edges that may be reached from this edge.
std::vector< MSLane * > * myLaneStorage
pointer to a temporary lane storage
NLEdgeControlBuilder()
Constructor.
Stores edges and lanes, performs moving of vehicle.
virtual ~NLEdgeControlBuilder()
Destructor.
bool isRoundabout() const
static bool gUsingInternalLanes
Information whether the simulation regards internal lanes.
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
bool isInternal() const
return whether this edge is an internal edge
const std::vector< MSEdge * > & getIncomingEdges() const
Returns the list of edges from which this edge may be reached.
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;.
virtual MSEdge * buildEdge(const std::string &id, const MSEdge::EdgeBasicFunction function, const std::string &streetName="", const std::string &edgeType="")
Builds an edge instance (MSEdge in this case)
const MSEdge * getFollower(unsigned int n) const
Returns the n-th of the following edges.
static const bool gUseMesoSim
Representation of a lane in the micro simulation.