SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NWWriter_XML Class Reference

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

#include <NWWriter_XML.h>

Static Public Member Functions

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

Static Private Member Functions

static void writeEdgesAndConnections (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec)
 Writes the edges and connections files.
static void writeNodes (const OptionsCont &oc, NBNodeCont &nc)
 Writes the nodes file.
static void writeTrafficLights (const OptionsCont &oc, NBTrafficLightLogicCont &tc, NBEdgeCont &ec)
 Writes the traffic lights file.

Detailed Description

Exporter writing networks using XML (native input) format.

Definition at line 62 of file NWWriter_XML.h.

Member Function Documentation

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]ncThe node-container from which to read data
[in]ecThe edge-container from which to read data

Definition at line 129 of file NWWriter_XML.cpp.

References NBNodeCont::begin(), NBEdgeCont::begin(), GeoConvHelper::cartesian2geo(), OutputDevice::close(), OutputDevice::closeTag(), SUMOSAXAttributes::ENCODING, NBNodeCont::end(), NBEdgeCont::end(), OptionsCont::exists(), GEO_OUTPUT_ACCURACY, OptionsCont::getBool(), NBEdge::getConnections(), OutputDevice::getDevice(), GeoConvHelper::getFinal(), NBEdge::getFromNode(), NBEdge::getGeometry(), Named::getID(), NBEdge::getLanes(), NBEdge::getLaneSpreadFunction(), NBEdge::getLoadedLength(), NBEdge::getNumLanes(), NBEdge::getOffset(), NBEdge::getPriority(), NBEdge::getSpeed(), NBEdge::getStreetName(), OptionsCont::getString(), NBEdge::getToNode(), NBEdge::getTypeID(), NBEdge::getWidth(), NBEdge::hasDefaultGeometry(), NBEdge::hasLaneSpecificOffset(), NBEdge::hasLaneSpecificSpeed(), NBEdge::hasLaneSpecificWidth(), NBEdge::hasLoadedLength(), LANESPREAD_RIGHT, NWFrame::MAJOR_VERSION, NBEdge::needsLaneSpecificOutput(), NBEdge::Lane::offset, OutputDevice::openTag(), NBEdge::Lane::permissions, NWWriter_SUMO::PLAIN, NBEdge::Lane::preferred, OutputDevice::setPrecision(), PositionVector::size(), NBEdge::sortOutgoingConnectionsByIndex(), NBEdge::Lane::speed, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_INDEX, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_NUMLANES, SUMO_ATTR_OFFSET, SUMO_ATTR_PRIORITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, SUMO_TAG_EDGE, SUMO_TAG_LANE, toString(), NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, GeoConvHelper::usingInverseGeoProjection(), NBEdge::Lane::width, OutputDevice::writeAttr(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writePermissions(), NWWriter_SUMO::writePreferences(), NWWriter_SUMO::writeProhibitions(), and OutputDevice::writeXMLHeader().

Referenced by writeNetwork().

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

Writes the network into XML-files (nodes, edges, connections, traffic lights)

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

Definition at line 60 of file NWWriter_XML.cpp.

References NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), NBNetBuilder::getTLLogicCont(), OptionsCont::isSet(), writeEdgesAndConnections(), writeJoinedJunctions(), writeNodes(), and 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 235 of file NWWriter_XML.cpp.

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

Referenced by writeNetwork().


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