![]() |
SUMO - Simulation of Urban MObility
|
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. 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 | 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... | |
Exporter writing networks using XML (native input) format.
Definition at line 62 of file NWWriter_XML.h.
|
staticprivate |
Writes the edges and connections files.
[in] | oc | The options to use |
[in] | nb | The network build from which to read data |
Definition at line 162 of file NWWriter_XML.cpp.
References NBNodeCont::begin(), NBEdgeCont::begin(), GeoConvHelper::cartesian2geo(), OutputDevice::close(), OutputDevice::closeTag(), NBNode::DEFAULT_CROSSING_WIDTH, NBNodeCont::end(), NBEdgeCont::end(), NBEdge::Lane::endOffset, StringUtils::escapeXML(), OptionsCont::exists(), GEO_OUTPUT_ACCURACY, 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(), NBEdge::getPermissions(), NBEdge::getPriority(), NBEdgeCont::getRoundabouts(), NBEdge::getSpeed(), NBEdge::getStreetName(), OptionsCont::getString(), NBEdge::getToNode(), NBEdge::getTypeID(), 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::sortOutgoingConnectionsByIndex(), NBEdge::Lane::speed, 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_TO, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, SUMO_TAG_CROSSING, SUMO_TAG_CUSTOMSHAPE, SUMO_TAG_EDGE, SUMO_TAG_LANE, SUMO_TAG_NEIGH, toString(), NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, GeoConvHelper::usingInverseGeoProjection(), NBEdge::Lane::width, OutputDevice::writeAttr(), NWWriter_SUMO::writeConnection(), writePermissions(), writePreferences(), NWWriter_SUMO::writeProhibitions(), NWWriter_SUMO::writeRoundabouts(), and OutputDevice::writeXMLHeader().
Referenced by writeNetwork().
|
static |
Writes the joined-juncionts to file.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
Definition at line 326 of file NWWriter_XML.cpp.
References OutputDevice::close(), OutputDevice::closeTag(), OutputDevice::getDevice(), NBNodeCont::getJoinedClusters(), OptionsCont::getString(), NWFrame::MAJOR_VERSION, OutputDevice::openTag(), SUMO_ATTR_NODES, SUMO_TAG_JOIN, OutputDevice::writeAttr(), and OutputDevice::writeXMLHeader().
Referenced by GNENet::saveJoined(), and writeNetwork().
|
static |
Writes the network into XML-files (nodes, edges, connections, traffic lights)
[in] | oc | The options to use |
[in] | nb | The network builder from which to read data |
Definition at line 61 of file NWWriter_XML.cpp.
References NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), NBNetBuilder::getTLLogicCont(), NBNetBuilder::getTypeCont(), OptionsCont::isSet(), NBTypeCont::size(), writeEdgesAndConnections(), writeJoinedJunctions(), writeNodes(), writeStreetSigns(), writeTrafficLights(), and writeTypes().
Referenced by GNENet::savePlain(), and NWFrame::writeNetwork().
|
staticprivate |
Writes the nodes file.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
Definition at line 81 of file NWWriter_XML.cpp.
References NBNodeCont::begin(), GeoConvHelper::cartesian2geo(), OutputDevice::close(), OutputDevice::closeTag(), NBNodeCont::end(), OptionsCont::exists(), GEO_OUTPUT_ACCURACY, OptionsCont::getBool(), NBNode::getControllingTLS(), OutputDevice::getDevice(), GeoConvHelper::getFinal(), Named::getID(), NBNode::getKeepClear(), NBNode::getPosition(), NBNode::getRadius(), NBNode::getShape(), OptionsCont::getString(), NBNode::getType(), NBNode::hasCustomShape(), NBNode::isTLControlled(), joinToString(), NWFrame::MAJOR_VERSION, OutputDevice::openTag(), OutputDevice::setPrecision(), SUMO_ATTR_CONTROLLED_INNER, SUMO_ATTR_ID, SUMO_ATTR_KEEP_CLEAR, SUMO_ATTR_RADIUS, SUMO_ATTR_SHAPE, SUMO_ATTR_TLID, SUMO_ATTR_TYPE, SUMO_TAG_NODE, toString(), NBNode::UNSPECIFIED_RADIUS, GeoConvHelper::usingGeoProjection(), GeoConvHelper::usingInverseGeoProjection(), WRITE_WARNING, OutputDevice::writeAttr(), GeoConvHelper::writeLocation(), NWFrame::writePositionLong(), and OutputDevice::writeXMLHeader().
Referenced by writeNetwork().
|
static |
Writes street signs as POIs to file.
[in] | oc | The options to use |
[in] | ec | The edge-container from which to read data |
Definition at line 348 of file NWWriter_XML.cpp.
References NBEdgeCont::begin(), OutputDevice::close(), NBEdgeCont::end(), OutputDevice::getDevice(), NBEdge::getSigns(), OptionsCont::getString(), and OutputDevice::writeXMLHeader().
Referenced by writeNetwork().
|
staticprivate |
Writes the traffic lights file.
[in] | oc | The options to use |
[in] | tc | The tll-container from which to read data |
[in] | ec | The edge-container from which to read data |
Definition at line 305 of file NWWriter_XML.cpp.
References NBEdgeCont::begin(), OutputDevice::close(), NBEdgeCont::end(), NBEdge::getConnections(), OutputDevice::getDevice(), OptionsCont::getString(), NWFrame::MAJOR_VERSION, NWWriter_SUMO::TLL, NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeTrafficLights(), and OutputDevice::writeXMLHeader().
Referenced by writeNetwork().
|
staticprivate |
Writes the types file.
[in] | oc | The options to use |
[in] | nc | The type-container from which to read data |
Definition at line 153 of file NWWriter_XML.cpp.
References OutputDevice::close(), OutputDevice::getDevice(), OptionsCont::getString(), NWFrame::MAJOR_VERSION, NBTypeCont::writeTypes(), and OutputDevice::writeXMLHeader().
Referenced by writeNetwork().