51 #ifdef CHECK_MEMORY_LEAKS 53 #endif // CHECK_MEMORY_LEAKS 66 if (!oc.
isSet(
"output-file")) {
70 std::map<SumoXMLAttr, std::string> attrs;
75 const int cornerDetail = oc.
getInt(
"junctions.corner-detail");
76 if (cornerDetail > 0) {
79 if (!oc.
isDefault(
"junctions.internal-link-detail")) {
96 bool origNames = oc.
getBool(
"output.original-names");
97 if (!oc.
getBool(
"no-internal-links")) {
99 for (std::map<std::string, NBNode*>::const_iterator i = nc.
begin(); i != nc.
end(); ++i) {
108 bool noNames = !oc.
getBool(
"output.street-names");
109 for (std::map<std::string, NBEdge*>::const_iterator i = ec.
begin(); i != ec.
end(); ++i) {
110 writeEdge(device, *(*i).second, noNames, origNames);
118 std::set<NBNode*> roundaboutNodes;
119 const bool checkLaneFoesAll = oc.
getBool(
"check-lane-foes.all");
120 const bool checkLaneFoesRoundabout = !checkLaneFoesAll && oc.
getBool(
"check-lane-foes.roundabout");
121 if (checkLaneFoesRoundabout) {
123 for (std::set<EdgeSet>::const_iterator i = roundabouts.begin(); i != roundabouts.end(); ++i) {
124 for (EdgeSet::const_iterator j = (*i).begin(); j != (*i).end(); ++j) {
125 roundaboutNodes.insert((*j)->getToNode());
129 for (std::map<std::string, NBNode*>::const_iterator i = nc.
begin(); i != nc.
end(); ++i) {
130 const bool checkLaneFoes = checkLaneFoesAll || (checkLaneFoesRoundabout && roundaboutNodes.count((*i).second) > 0);
134 const bool includeInternal = !oc.
getBool(
"no-internal-links");
135 if (includeInternal) {
138 for (std::map<std::string, NBNode*>::const_iterator i = nc.
begin(); i != nc.
end(); ++i) {
147 int numConnections = 0;
148 for (std::map<std::string, NBEdge*>::const_iterator it_edge = ec.
begin(); it_edge != ec.
end(); it_edge++) {
149 NBEdge* from = it_edge->second;
151 const std::vector<NBEdge::Connection> connections = from->
getConnections();
152 numConnections += (int)connections.size();
153 for (std::vector<NBEdge::Connection>::const_iterator it_c = connections.begin(); it_c != connections.end(); it_c++) {
157 if (numConnections > 0) {
160 if (includeInternal) {
163 for (std::map<std::string, NBNode*>::const_iterator i = nc.
begin(); i != nc.
end(); ++i) {
170 for (std::map<std::string, NBNode*>::const_iterator i = nc.
begin(); i != nc.
end(); ++i) {
171 NBNode* node = (*i).second;
173 const std::vector<NBNode::Crossing>& crossings = node->
getCrossings();
174 for (std::vector<NBNode::Crossing>::const_iterator it = crossings.begin(); it != crossings.end(); it++) {
178 const std::vector<NBNode::WalkingArea>& WalkingAreas = node->
getWalkingAreas();
179 for (std::vector<NBNode::WalkingArea>::const_iterator it = WalkingAreas.begin(); it != WalkingAreas.end(); it++) {
180 if ((*it).nextCrossing !=
"") {
188 if (nextCrossing.
tlID !=
"") {
198 for (std::vector<std::string>::const_iterator it_sw = (*it).nextSidewalks.begin(); it_sw != (*it).nextSidewalks.end(); ++it_sw) {
201 for (std::vector<std::string>::const_iterator it_sw = (*it).prevSidewalks.begin(); it_sw != (*it).prevSidewalks.end(); ++it_sw) {
208 for (std::map<std::string, NBNode*>::const_iterator i = nc.
begin(); i != nc.
end(); ++i) {
216 for (std::map<std::string, NBDistrict*>::const_iterator i = dc.
begin(); i != dc.
end(); i++) {
219 if (dc.
size() != 0) {
234 assert(succOpp != 0);
235 assert(predOpp != 0);
236 const std::vector<NBEdge::Connection>& connections = succOpp->
getConnections();
237 for (std::vector<NBEdge::Connection>::const_iterator it_c = connections.begin(); it_c != connections.end(); it_c++) {
239 if (succOpp != from &&
241 predOpp == conOpp.
toEdge &&
257 for (EdgeVector::const_iterator i = incoming.begin(); i != incoming.end(); i++) {
258 const std::vector<NBEdge::Connection>& elv = (*i)->getConnections();
259 if (elv.size() > 0) {
260 bool haveVia =
false;
262 std::string internalEdgeID =
"";
264 std::map<NBEdge*, SUMOReal> lengthSum;
265 std::map<NBEdge*, int> numLanes;
266 for (std::vector<NBEdge::Connection>::const_iterator k = elv.begin(); k != elv.end(); ++k) {
268 numLanes[(*k).toEdge] += 1;
271 for (std::vector<NBEdge::Connection>::const_iterator k = elv.begin(); k != elv.end(); ++k) {
272 if ((*k).toEdge == 0) {
276 if (toEdge != (*k).toEdge) {
277 internalEdgeID = (*k).id;
282 toEdge = (*k).toEdge;
290 const NBEdge::Lane& successor = (*k).toEdge->getLanes()[(*k).toLane];
291 const SUMOReal length = lengthSum[toEdge] / numLanes[toEdge];
295 writeLane(into, (*k).getInternalLaneID(), (*k).vmax,
299 haveVia = haveVia || (*k).haveVia;
305 for (std::vector<NBEdge::Connection>::const_iterator k = elv.begin(); k != elv.end(); ++k) {
309 if ((*k).toEdge == 0) {
313 const NBEdge::Lane& successor = (*k).toEdge->getLanes()[(*k).toLane];
320 0, origNames,
"", &n);
327 const std::vector<NBNode::Crossing>& crossings = n.
getCrossings();
328 for (std::vector<NBNode::Crossing>::const_iterator it = crossings.begin(); it != crossings.end(); it++) {
338 const std::vector<NBNode::WalkingArea>& WalkingAreas = n.
getWalkingAreas();
339 for (std::vector<NBNode::WalkingArea>::const_iterator it = WalkingAreas.begin(); it != WalkingAreas.end(); it++) {
379 const std::vector<NBEdge::Lane>& lanes = e.
getLanes();
382 for (
int i = 0; i < (int) lanes.size(); i++) {
397 const std::string& origID,
SUMOReal length,
int index,
bool origNames,
398 const std::string& oppositeID,
const NBNode* node) {
410 WRITE_WARNING(
"Lane '" + lID +
"' has a maximum allowed speed of 0.");
411 }
else if (speed < 0) {
412 throw ProcessError(
"Negative allowed speed (" +
toString(speed) +
") on lane '" + lID +
"', use --speed.minimum to prevent this.");
415 length = length - endOffset;
427 NBNode::CustomShapeMap::const_iterator it = cs.find(lID);
428 if (it != cs.end()) {
435 if (oppositeID !=
"" && oppositeID !=
"-") {
440 if (origNames && origID !=
"") {
457 std::string incLanes;
459 for (std::vector<NBEdge*>::const_iterator i = incoming.begin(); i != incoming.end(); ++i) {
460 int noLanes = (*i)->getNumLanes();
461 for (
int j = 0; j < noLanes; j++) {
462 incLanes += (*i)->getLaneID(j);
463 if (i != incoming.end() - 1 || j < noLanes - 1) {
468 const std::vector<NBNode::Crossing>& crossings = n.
getCrossings();
469 for (std::vector<NBNode::Crossing>::const_iterator it = crossings.begin(); it != crossings.end(); it++) {
470 incLanes +=
' ' + (*it).prevWalkingArea +
"_0";
474 std::string intLanes;
477 for (EdgeVector::const_iterator i = incoming.begin(); i != incoming.end(); i++) {
478 const std::vector<NBEdge::Connection>& elv = (*i)->getConnections();
479 for (std::vector<NBEdge::Connection>::const_iterator k = elv.begin(); k != elv.end(); ++k) {
480 if ((*k).toEdge == 0) {
487 intLanes += (*k).getInternalLaneID();
489 intLanes += (*k).viaID +
"_0";
496 for (std::vector<NBNode::Crossing>::const_iterator it = crossings.begin(); it != crossings.end(); it++) {
497 intLanes +=
' ' + (*it).id +
"_0";
526 std::vector<std::string> internalLaneIDs;
527 for (EdgeVector::const_iterator i = incoming.begin(); i != incoming.end(); i++) {
528 const std::vector<NBEdge::Connection>& elv = (*i)->getConnections();
529 for (std::vector<NBEdge::Connection>::const_iterator k = elv.begin(); k != elv.end(); ++k) {
530 if ((*k).toEdge != 0) {
531 internalLaneIDs.push_back((*k).getInternalLaneID());
535 const std::vector<NBNode::Crossing>& crossings = n.
getCrossings();
536 for (std::vector<NBNode::Crossing>::const_iterator it_c = crossings.begin(); it_c != crossings.end(); ++it_c) {
537 internalLaneIDs.push_back((*it_c).id +
"_0");
540 for (std::vector<NBEdge*>::const_iterator i = incoming.begin(); i != incoming.end(); i++) {
541 const std::vector<NBEdge::Connection>& elv = (*i)->getConnections();
542 for (std::vector<NBEdge::Connection>::const_iterator k = elv.begin(); k != elv.end(); ++k) {
543 if ((*k).toEdge == 0 || !(*k).haveVia) {
550 std::string incLanes = (*k).getInternalLaneID();
551 if ((*k).foeIncomingLanes.length() != 0) {
552 incLanes +=
" " + (*k).foeIncomingLanes;
555 const std::vector<int>& foes = (*k).foeInternalLinks;
556 std::vector<std::string> foeIDs;
557 for (std::vector<int>::const_iterator it = foes.begin(); it != foes.end(); ++it) {
558 foeIDs.push_back(internalLaneIDs[*it]);
590 if (style !=
PLAIN) {
591 if (includeInternal) {
618 for (std::vector<NBEdge*>::const_iterator i = incoming.begin(); i != incoming.end(); ++i) {
620 const std::vector<NBEdge::Connection>& connections = from->
getConnections();
621 for (std::vector<NBEdge::Connection>::const_iterator j = connections.begin(); j != connections.end(); ++j) {
641 const std::string& from,
const std::string& to,
642 int fromLane,
int toLane,
const std::string& via) {
661 std::vector<std::vector<std::string> > edgeIDs;
662 for (std::set<EdgeSet>::const_iterator i = roundabouts.begin(); i != roundabouts.end(); ++i) {
663 std::vector<std::string> tEdgeIDs;
664 for (EdgeSet::const_iterator j = (*i).begin(); j != (*i).end(); ++j) {
667 tEdgeIDs.push_back((*j)->getID());
669 std::sort(tEdgeIDs.begin(), tEdgeIDs.end());
670 edgeIDs.push_back(tEdgeIDs);
672 std::sort(edgeIDs.begin(), edgeIDs.end());
674 for (std::vector<std::vector<std::string> >::const_iterator i = edgeIDs.begin(); i != edgeIDs.end(); ++i) {
677 if (roundabouts.size() != 0) {
686 std::vector<std::string> validEdgeIDs;
687 std::vector<std::string> invalidEdgeIDs;
688 std::vector<std::string> nodeIDs;
689 for (std::vector<std::string>::const_iterator i = edgeIDs.begin(); i != edgeIDs.end(); ++i) {
693 validEdgeIDs.push_back(edge->
getID());
695 invalidEdgeIDs.push_back(*i);
698 std::sort(nodeIDs.begin(), nodeIDs.end());
699 if (validEdgeIDs.size() > 0) {
704 if (invalidEdgeIDs.size() > 0) {
706 +
joinToString(invalidEdgeIDs,
" ") +
"' no longer exist'");
725 for (
int i = 0; i < (int)sources.size(); i++) {
732 for (
int i = 0; i < (int)sinks.size(); i++) {
745 if (time == std::floor(time)) {
755 for (NBConnectionProhibits::const_iterator j = prohibitions.begin(); j != prohibitions.end(); j++) {
758 for (NBConnectionVector::const_iterator k = prohibiting.begin(); k != prohibiting.end(); k++) {
777 std::vector<NBTrafficLightLogic*> logics = tllCont.
getComputed();
778 for (std::vector<NBTrafficLightLogic*>::iterator it = logics.begin(); it != logics.end(); it++) {
785 (*it)->writeParams(into);
787 const std::vector<NBTrafficLightLogic::PhaseDefinition>& phases = (*it)->getPhases();
788 for (std::vector<NBTrafficLightLogic::PhaseDefinition>::const_iterator j = phases.begin(); j != phases.end(); ++j) {
796 if (logics.size() > 0) {
static void writeRoundabout(OutputDevice &into, const std::vector< std::string > &r, const NBEdgeCont &ec)
Writes a roundabout.
std::string id
id of Connection
The information about how to spread the lanes from the given position.
int tlLinkNo
The index of this connection within the controlling traffic light.
void writePermissions(OutputDevice &into, SVCPermissions permissions)
writes allowed disallowed attributes if needed;
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
const EdgeVector & getIncomingEdges() const
Returns this node's incoming edges (The edges which yield in this node)
void close()
Closes the device and removes it from the dictionary.
static void writeLocation(OutputDevice &into)
writes the location element
const std::string & getTypeID() const
get ID of type
SUMOReal endOffset
This lane's offset to the intersection begin.
bool getKeepClear() const
Returns the keepClear flag.
A structure which describes a connection between edges or lanes.
int toLane
The lane the connections yields in.
a list of node ids, used for controlling joining
static const SUMOReal UNSPECIFIED_WIDTH
unspecified lane width
NBTypeCont & getTypeCont()
Returns a reference to the type container.
Whether vehicles must keep the junction clear.
PositionVector shape
The lane's shape.
whether a given shape is user-defined
a source within a district (connection road)
static void writeDistrict(OutputDevice &into, const NBDistrict &d)
Writes a district.
std::string viaID
if Connection have a via, ID of it
NBEdge * toEdge
The edge the connections yields in.
bool hasDefaultGeometry() const
Returns whether the geometry consists only of the node positions.
begin/end of the description of a junction
begin/end of the description of a single lane
SUMOReal getRadius() const
Returns the turning radius of this node.
const std::set< EdgeSet > getRoundabouts() const
Returns the determined roundabouts.
A container for traffic light definitions and built programs.
a traffic assignment zone
SUMOReal length
This lane's width.
SUMOReal width
This lane's width.
static bool writeInternalEdges(OutputDevice &into, const NBEdgeCont &ec, const NBNode &n, bool origNames)
Writes internal edges (<edge ... with id[0]==':') of the given node.
void writePreferences(OutputDevice &into, SVCPermissions preferred)
writes allowed disallowed attributes if needed;
const std::vector< NBEdge::Lane > & getLanes() const
Returns the lane definitions.
connectio between two lanes
const Crossing & getCrossing(const std::string &id) const
return the crossing with the given id
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
The representation of a single edge during network building.
foe visibility distance of a link
static void writeProhibitions(OutputDevice &into, const NBConnectionProhibits &prohibitions)
writes the given prohibitions
const std::vector< NBEdge * > & getSinkEdges() const
Returns the sinks.
A container for districts.
const std::vector< Crossing > & getCrossings() const
return this junctions pedestrian crossings
link,node: the traffic light id responsible for this link
bool hasCustomShape() const
return whether the shape was set by the user
bool mayDefinitelyPass
Information about being definitely free to drive (on-ramps)
std::string id
the (edge)-id of this walkingArea
static const SUMOReal UNSPECIFIED_CONTPOS
unspecified internal junction position
const SVCPermissions SVCAll
static void writeTrafficLights(OutputDevice &into, const NBTrafficLightLogicCont &tllCont)
writes the traffic light logics to the given device
static const SUMOReal UNSPECIFIED_OFFSET
unspecified lane offset
static void writeInternalConnection(OutputDevice &into, const std::string &from, const std::string &to, int fromLane, int toLane, const std::string &via)
Writes a single internal connection.
NBEdge * getFrom() const
returns the from-edge (start of the connection)
static std::string getOppositeInternalID(const NBEdgeCont &ec, const NBEdge *from, const NBEdge::Connection &con)
retrieve the id of the opposite direction internal lane if it exists
prohibition of circulation between two edges
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
bool priority
whether the pedestrians have priority
LinkDirection
The different directions a link between two lanes may take (or a stream between two edges)...
The link is a straight direction.
SUMOReal speed
The speed allowed on this lane.
A class representing a single district.
bool keepClear
whether the junction must be kept clear when using this connection
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
std::map< std::string, PositionVector > CustomShapeMap
map for custon shapes
static std::string prohibitionConnection(const NBConnection &c)
the attribute value for a prohibition
SUMOReal getLoadedLength() const
Returns the length was set explicitly or the computed length if it wasn't set.
An (internal) definition of a single lane of an edge.
const std::string & getID() const
Returns the id.
SVCPermissions permissions
List of vehicle types that are allowed on this lane.
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into a SUMO-file.
const Position & getPosition() const
The turning radius at an intersection in m.
std::map< std::string, NBEdge * >::const_iterator end() const
Returns the pointer to the end of the stored edges.
int getPriority() const
Returns the priority of the edge.
PositionVector simplified() const
return the same shape with intermediate colinear points removed
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
std::map< std::string, NBDistrict * >::const_iterator begin() const
Returns the pointer to the begin of the stored districts.
const std::vector< NBEdge * > & getSourceEdges() const
Returns the sources.
std::string tlID
The id of the traffic light that controls this connection.
SVCPermissions preferred
List of vehicle types that are preferred on this lane.
std::string getInternalLaneID() const
get ID of internal lane
This is an uncontrolled, minor link, has to brake.
static bool writeInternalConnections(OutputDevice &into, const NBNode &n)
Writes inner connections within the node.
static void writeLane(OutputDevice &into, const std::string &lID, SUMOReal speed, SVCPermissions permissions, SVCPermissions preferred, SUMOReal endOffset, SUMOReal width, PositionVector shape, const std::string &origID, SUMOReal length, int index, bool origNames, const std::string &oppositeID, const NBNode *node=0)
Writes a lane (<lane ...) of an edge.
int fromLane
The lane the connections starts at.
bool writeXMLHeader(const std::string &rootElement, const std::string &schemaFile, std::map< SumoXMLAttr, std::string > attrs=std::map< SumoXMLAttr, std::string >())
Writes an XML header with optional configuration.
A point in 2D or 3D with translation and scaling methods.
parameter associated to a certain key
std::map< std::string, NBDistrict * >::const_iterator end() const
Returns the pointer to the end of the stored districts.
NBEdgeCont & getEdgeCont()
static const SUMOReal UNSPECIFIED_VISIBILITY_DISTANCE
unspecified foe visibility for connections
SumoXMLNodeType getType() const
Returns the type of this node.
static void writeEdge(OutputDevice &into, const NBEdge &e, bool noNames, bool origNames)
Writes an edge (<edge ...)
bool hasLoadedLength() const
Returns whether a length was set explicitly.
const PositionVector & getShape() const
Returns the shape.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
SUMOReal contPos
custom position for internal junction on this connection
roundabout defined in junction
Storage for edges, including some functionality operating on multiple edges.
const CustomShapeMap & getCustomLaneShapes() const
sets a custom shape for an internal lane
LinkState getLinkState(const NBEdge *incoming, NBEdge *outgoing, int fromLane, int toLane, bool mayDefinitelyPass, const std::string &tlID) const
get link state
static void writePositionLong(const Position &pos, OutputDevice &dev)
Writes the given position to device in long format (one attribute per dimension)
edge: the shape in xml-definition
std::vector< NBTrafficLightLogic * > getComputed() const
Returns a list of all computed logics.
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
std::map< std::string, NBNode * >::const_iterator end() const
Returns the pointer to the end of the stored nodes.
begin/end of the description of a neighboring lane
LinkDirection getDirection(const NBEdge *const incoming, const NBEdge *const outgoing, bool leftHand=false) const
Returns the representation of the described stream's direction.
const PositionVector & getShape() const
retrieve the junction shape
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.
std::vector< NBConnection > NBConnectionVector
Definition of a connection vector.
begin/end of the description of an edge
static void normaliseSum(std::vector< T > &v, T msum=1.0)
void writeTypes(OutputDevice &into) const
writes all types a s XML
std::string origID
An original ID, if given.
int internalLaneIndex
The lane index of this internal lane within the internal edge.
std::map< std::string, NBEdge * >::const_iterator begin() const
Returns the pointer to the begin of the stored edges.
SUMOReal length() const
Returns the length.
NBNode * getToNode() const
Returns the destination node of the edge.
std::map< NBConnection, NBConnectionVector > NBConnectionProhibits
Definition of a container for connection block dependencies Includes a list of all connections which ...
NBEdge * retrieve(const std::string &id, bool retrieveExtracted=false) const
Returns the edge that has the given id.
std::string oppositeID
An opposite lane ID, if given.
a sink within a district (connection road)
the edges crossed by a pedestrian crossing
NBNodeCont & getNodeCont()
Returns a reference to the node container.
Instance responsible for building networks.
static OutputDevice & getDevice(const std::string &name)
Returns the described OutputDevice.
int tlLinkNo
the traffic light index of this crossing (if controlled)
std::vector< NBEdge * > EdgeVector
container for (sorted) edges
static bool writeInternalNodes(OutputDevice &into, const NBNode &n)
Writes internal junctions (<junction with id[0]==':' ...) of the given node.
const PositionVector & getGeometry() const
Returns the geometry of the edge.
A definition of a pedestrian walking area.
bool isMacroscopicConnector() const
Returns whether this edge was marked as a macroscopic connector.
A storage for options typed value containers)
This is an uncontrolled, major link, may pass.
void sortOutgoingConnectionsByIndex()
sorts the outgoing connections by their from-lane-index and their to-lane-index
NBTrafficLightLogicCont & getTLLogicCont()
Returns a reference to the traffic light logics container.
NBEdge * getTo() const
returns the to-edge (end of the connection)
The abstract direction of a link.
LaneSpreadFunction getLaneSpreadFunction() const
Returns how this edge's lanes' lateral offset is computed.
Represents a single node (junction) during network building.
A definition of a pedestrian crossing.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
static const SUMOReal UNSPECIFIED_RADIUS
unspecified lane width
static void writeJunction(OutputDevice &into, const NBNode &n, const bool checkLaneFoes)
Writes a junction (<junction ...)
bool writeLogic(OutputDevice &into, const bool checkLaneFoes) const
writes the XML-representation of the logic as a bitset-logic XML representation
link: the index of the link within the traffic light
const std::vector< SUMOReal > & getSourceWeights() const
Returns the weights of the sources.
std::string tlID
The id of the traffic light that controls this connection.
std::string getLaneID(int lane) const
get Lane ID (Secure)
const std::vector< SUMOReal > & getSinkWeights() const
Returns the weights of the sinks.
Container for nodes during the netbuilding process.
SUMOReal getFinalLength() const
get length that will be assigned to the lanes in the final network
bool haveVia
check if Connection have a Via
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
const std::vector< WalkingArea > & getWalkingAreas() const
return this junctions pedestrian walking areas
NBDistrictCont & getDistrictCont()
Returns a reference the districts container.
const std::string & getStreetName() const
Returns the street name of this edge.
const std::vector< Connection > & getConnections() const
Returns the connections.
static const std::string MAJOR_VERSION
The version number for written files.
std::map< std::string, NBNode * >::const_iterator begin() const
Returns the pointer to the begin of the stored nodes.
static void writeRoundabouts(OutputDevice &into, const std::set< EdgeSet > &roundabouts, const NBEdgeCont &ec)
Writes roundabouts.
PositionVector getSubpart(SUMOReal beginOffset, SUMOReal endOffset) const
get subpart of a position vector
int size() const
Returns the number of districts inside the container.
a single phase description
static std::string writeSUMOTime(SUMOTime time)
writes a SUMOTime as int if possible, otherwise as a float
std::string joinToString(const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=gPrecision)
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
void lf()
writes a line feed if applicable
const SVCPermissions SVC_UNSPECIFIED
SUMOReal width
This lane's width.
static void writeConnection(OutputDevice &into, const NBEdge &from, const NBEdge::Connection &c, bool includeInternal, ConnectionStyle style=SUMONET)
Writes connections outgoing from the given edge (also used in NWWriter_XML)
PositionVector shape
The polygonal shape.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
The link has no direction (is a dead end link)
SUMOReal visibility
custom foe visiblity for connection
NBNode * getFromNode() const
Returns the origin node of the edge.