SUMO - Simulation of Urban MObility
NWWriter_XML Class Reference

Exporter writing networks using XML (native input) format. More...

#include <NWWriter_XML.h>

Collaboration diagram for NWWriter_XML:
Collaboration graph

Static Public Member Functions

static void writeJoinedJunctions (const OptionsCont &oc, NBNodeCont &nc)
 Writes the joined-juncionts to file. More...
 
static void writeNetwork (const OptionsCont &oc, NBNetBuilder &nb)
 Writes the network into XML-files (nodes, edges, connections, traffic lights) More...
 
static void writeStreetSigns (const OptionsCont &oc, NBEdgeCont &ec)
 Writes street signs as POIs to file. More...
 

Static Private Member Functions

static void writeEdgesAndConnections (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec)
 Writes the edges and connections files. More...
 
static void writeNodes (const OptionsCont &oc, NBNodeCont &nc)
 Writes the nodes file. More...
 
static void writeParkingAreas (const OptionsCont &cont, NBParkingCont &pc, NBEdgeCont &ec)
 writes imported parking areas to file More...
 
static void writePTLines (const OptionsCont &cont, NBPTLineCont &lc, NBEdgeCont &ec)
 
static void writePTStops (const OptionsCont &oc, NBPTStopCont &ec)
 Writes the pt stops file. More...
 
static void writeTrafficLights (const OptionsCont &oc, NBTrafficLightLogicCont &tc, NBEdgeCont &ec)
 Writes the traffic lights file. More...
 
static void writeTypes (const OptionsCont &oc, NBTypeCont &tc)
 Writes the types file. More...
 

Detailed Description

Exporter writing networks using XML (native input) format.

Definition at line 64 of file NWWriter_XML.h.

Member Function Documentation

◆ writeEdgesAndConnections()

void NWWriter_XML::writeEdgesAndConnections ( const OptionsCont oc,
NBNodeCont nc,
NBEdgeCont ec 
)
staticprivate

Writes the edges and connections files.

Parameters
[in]ocThe options to use
[in]nbThe network build from which to read data

Definition at line 174 of file NWWriter_XML.cpp.

References NBEdge::Lane::accelRamp, NBNodeCont::begin(), NBEdgeCont::begin(), GeoConvHelper::cartesian2geo(), OutputDevice::close(), OutputDevice::closeTag(), NBEdge::Lane::customShape, NBNodeCont::end(), NBEdgeCont::end(), NBEdge::Lane::endOffset, StringUtils::escapeXML(), OptionsCont::exists(), OptionsCont::getBool(), NBEdge::getConnections(), OutputDevice::getDevice(), NBEdge::getEndOffset(), GeoConvHelper::getFinal(), NBEdge::getFromNode(), NBEdge::getGeometry(), Named::getID(), NBEdge::getLanes(), NBEdge::getLaneSpreadFunction(), NBEdge::getLaneWidth(), NBEdge::getLoadedLength(), NBEdge::getNumLanes(), NBNode::getOutgoingEdges(), NBEdge::getPermissions(), NBEdge::getPriority(), NBEdgeCont::getRoundabouts(), NBEdge::getSpeed(), NBEdge::getStreetName(), OptionsCont::getString(), NBEdge::getToNode(), NBEdge::getTypeID(), gPrecisionGeo, NBEdge::hasDefaultGeometry(), NBEdge::hasLaneSpecificEndOffset(), NBEdge::hasLaneSpecificPermissions(), NBEdge::hasLaneSpecificSpeed(), NBEdge::hasLaneSpecificWidth(), NBEdge::hasLoadedLength(), LANESPREAD_RIGHT, OutputDevice::lf(), NWFrame::MAJOR_VERSION, NBEdge::needsLaneSpecificOutput(), OutputDevice::openTag(), NBEdge::Lane::oppositeID, NBEdge::Lane::permissions, NWWriter_SUMO::PLAIN, NBEdge::Lane::preferred, OutputDevice::setPrecision(), NBEdge::Lane::speed, SUMO_ATTR_ACCELERATION, SUMO_ATTR_EDGES, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_INDEX, SUMO_ATTR_LANE, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_NODE, SUMO_ATTR_NUMLANES, SUMO_ATTR_PRIORITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TLLINKINDEX, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_ATTR_VERSION, SUMO_ATTR_WIDTH, SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_LANE, SUMO_TAG_NEIGH, SVC_PEDESTRIAN, toString(), NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, GeoConvHelper::usingInverseGeoProjection(), NBEdge::Lane::width, OutputDevice::writeAttr(), NWWriter_SUMO::writeConnection(), Parameterised::writeParams(), writePermissions(), writePreferences(), NWWriter_SUMO::writeProhibitions(), NWWriter_SUMO::writeRoundabouts(), and OutputDevice::writeXMLHeader().

Referenced by writeNetwork().

◆ writeJoinedJunctions()

void NWWriter_XML::writeJoinedJunctions ( const OptionsCont oc,
NBNodeCont nc 
)
static

◆ writeNetwork()

void NWWriter_XML::writeNetwork ( const OptionsCont oc,
NBNetBuilder nb 
)
static

◆ writeNodes()

◆ writeParkingAreas()

void NWWriter_XML::writeParkingAreas ( const OptionsCont cont,
NBParkingCont pc,
NBEdgeCont ec 
)
staticprivate

writes imported parking areas to file

Definition at line 414 of file NWWriter_XML.cpp.

References OutputDevice::close(), OutputDevice::getDevice(), OptionsCont::getString(), and OutputDevice::writeXMLHeader().

Referenced by writeNetwork().

◆ writePTLines()

void NWWriter_XML::writePTLines ( const OptionsCont cont,
NBPTLineCont lc,
NBEdgeCont ec 
)
staticprivate

◆ writePTStops()

void NWWriter_XML::writePTStops ( const OptionsCont oc,
NBPTStopCont ec 
)
staticprivate

Writes the pt stops file.

Parameters
[in]ocThe options to use
[in]ncThe pt stop container from which to read data

Definition at line 397 of file NWWriter_XML.cpp.

References NBPTStopCont::begin(), OutputDevice::close(), NBPTStopCont::end(), OutputDevice::getDevice(), OptionsCont::getString(), and OutputDevice::writeXMLHeader().

Referenced by writeNetwork().

◆ writeStreetSigns()

void NWWriter_XML::writeStreetSigns ( const OptionsCont oc,
NBEdgeCont ec 
)
static

Writes street signs as POIs to file.

Parameters
[in]ocThe options to use
[in]ecThe edge-container from which to read data

Definition at line 384 of file NWWriter_XML.cpp.

References NBEdgeCont::begin(), OutputDevice::close(), NBEdgeCont::end(), OutputDevice::getDevice(), NBEdge::getSigns(), OptionsCont::getString(), and OutputDevice::writeXMLHeader().

Referenced by writeNetwork().

◆ writeTrafficLights()

void NWWriter_XML::writeTrafficLights ( const OptionsCont oc,
NBTrafficLightLogicCont tc,
NBEdgeCont ec 
)
staticprivate

Writes the traffic lights file.

Parameters
[in]ocThe options to use
[in]tcThe tll-container from which to read data
[in]ecThe edge-container from which to read data

Definition at line 337 of file NWWriter_XML.cpp.

References NBEdgeCont::begin(), OutputDevice::close(), NBEdgeCont::end(), NBEdge::getConnections(), OutputDevice::getDevice(), OptionsCont::getString(), NWFrame::MAJOR_VERSION, SUMO_ATTR_VERSION, NWWriter_SUMO::TLL, NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeTrafficLights(), and OutputDevice::writeXMLHeader().

Referenced by writeNetwork().

◆ writeTypes()

void NWWriter_XML::writeTypes ( const OptionsCont oc,
NBTypeCont tc 
)
staticprivate

Writes the types file.

Parameters
[in]ocThe options to use
[in]ncThe type-container from which to read data

Definition at line 163 of file NWWriter_XML.cpp.

References OutputDevice::close(), OutputDevice::getDevice(), OptionsCont::getString(), NWFrame::MAJOR_VERSION, SUMO_ATTR_VERSION, NBTypeCont::writeTypes(), and OutputDevice::writeXMLHeader().

Referenced by writeNetwork().


The documentation for this class was generated from the following files: