 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef NLEdgeControlBuilder_h
21 #define NLEdgeControlBuilder_h
82 const std::string& streetName,
const std::string& edgeType,
84 const std::string& bidi,
101 virtual MSLane*
addLane(
const std::string&
id,
double maxSpeed,
105 const std::string& type);
109 void addStopOffsets(
const std::map<SVCPermissions, double>& stopOffsets);
122 virtual void addNeigh(
const std::string
id);
147 const std::string& streetName,
const std::string& edgeType,
const int priority,
const double distance);
int myCurrentNumericalEdgeID
A running number for edge numbering.
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)
Adds a lane to the current edge.
virtual ~NLEdgeControlBuilder()
Destructor.
MSEdge * myActiveEdge
pointer to the currently chosen edge
Representation of a lane in the micro simulation.
virtual void addNeigh(const std::string id)
Adds a neighbor to the current lane.
Interface for building edges.
Static storage of an output device and its base (abstract) implementation.
int myCurrentLaneIndex
The index of the currently active lane (-1 if none is active)
void applyDefaultStopOffsetsToLanes()
int myCurrentNumericalLaneID
A running number for lane numbering.
The simulated network and simulation perfomer.
virtual void addCrossingEdges(const std::vector< std::string > &)
add the crossingEdges in a crossing edge if present
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
MSEdgeControl * build(double networkVersion)
builds the MSEdgeControl-class which holds all edges
virtual 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 (MSEdge in this case)
void addStopOffsets(const std::map< SVCPermissions, double > &stopOffsets)
process a stopOffset element (originates either from the active edge or lane).
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
void closeLane()
Closes the building of a lane; The edge is completely described by now and may not be opened again.
void beginEdgeParsing(const std::string &id, const SumoXMLEdgeFunc function, const std::string &streetName, const std::string &edgeType, int priority, const std::string &bidi, double distance)
Begins building of an MSEdge.
NLEdgeControlBuilder()
Constructor.
A road/street connecting two junctions.
std::map< SVCPermissions, double > myCurrentDefaultStopOffsets
The default stop offset for all lanes belonging to the active edge (this is set if the edge was given...
std::vector< MSEdge * > MSEdgeVector
std::vector< MSLane * > * myLaneStorage
pointer to a temporary lane storage
MSEdgeVector myEdges
Temporary, internal storage for built edges.
std::string reportCurrentEdgeOrLane() const
Return info about currently processed edge or lane.
Stores edges and lanes, performs moving of vehicle.
void setDefaultStopOffsets(std::map< SVCPermissions, double > stopOffsets)
set the stopOffset for the last added lane.
virtual MSEdge * closeEdge()
Closes the building of an edge; The edge is completely described by now and may not be opened again.
NLEdgeControlBuilder & operator=(const NLEdgeControlBuilder &s)
invalidated assignment operator
std::map< MSEdge *, std::string > myBidiEdges
temporary storage for bidi attributes (to be resolved after loading all edges)
void updateCurrentLaneStopOffsets(const std::map< SVCPermissions, double > &stopOffsets)
set the stopOffset for the last added lane.