![]() |
SUMO - Simulation of Urban MObility
|
Exporter writing networks using XML (native input) format. More...
#include <NWWriter_DlrNavteq.h>
Static Public Member Functions | |
static int | getRoadClass (NBEdge *edge) |
get the navteq road class More... | |
static void | writeNetwork (const OptionsCont &oc, NBNetBuilder &nb) |
Writes the network into XML-files (nodes, edges, connections, traffic lights) More... | |
Static Private Member Functions | |
static std::string | getAllowedTypes (SVCPermissions permissions) |
build the ascii-bit-vector for column vehicle_type More... | |
static SUMOReal | getGraphLength (NBEdge *edge) |
get the length of the edge when measured up to the junction center More... | |
static unsigned int | getNavteqLaneCode (const unsigned int numLanes) |
get the lane number encoding More... | |
static int | getSpeedCategory (int kph) |
get the navteq speed class based on the speed in km/h More... | |
static int | getSpeedCategoryUpperBound (int kph) |
get the SPEED_LIMIT as defined by elmar (upper bound of speed category) More... | |
static int | speedInKph (SUMOReal metersPerSecond) |
get edge speed rounded to kmh More... | |
static void | writeHeader (OutputDevice &device, const OptionsCont &oc) |
write header comments (input paramters, date, etc...) More... | |
static void | writeLinksUnsplitted (const OptionsCont &oc, NBEdgeCont &ec) |
Writes the links_unsplitted file. More... | |
static void | writeNodesUnsplitted (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec) |
Writes the nodes_unsplitted file. More... | |
static void | writeTrafficSignals (const OptionsCont &oc, NBNodeCont &nc) |
Writes the traffic_signals file. More... | |
Static Private Attributes | |
static const std::string | UNDEFINED |
magic value for undefined stuff More... | |
Exporter writing networks using XML (native input) format.
Definition at line 61 of file NWWriter_DlrNavteq.h.
|
staticprivate |
build the ascii-bit-vector for column vehicle_type
Definition at line 202 of file NWWriter_DlrNavteq.cpp.
References SVCAll.
Referenced by writeLinksUnsplitted().
get the length of the edge when measured up to the junction center
Definition at line 311 of file NWWriter_DlrNavteq.cpp.
References NBEdge::getFromNode(), NBEdge::getGeometry(), NBNode::getPosition(), NBEdge::getToNode(), PositionVector::length(), PositionVector::push_back_noDoublePos(), and PositionVector::push_front_noDoublePos().
Referenced by writeLinksUnsplitted().
|
staticprivate |
get the lane number encoding
Definition at line 303 of file NWWriter_DlrNavteq.cpp.
References SUMOReal.
Referenced by writeLinksUnsplitted().
|
static |
get the navteq road class
Definition at line 224 of file NWWriter_DlrNavteq.cpp.
References NBEdge::getNumLanes(), NBEdge::getSpeed(), and speedInKph().
Referenced by writeLinksUnsplitted(), and NWWriter_Amitran::writeNetwork().
|
staticprivate |
get the navteq speed class based on the speed in km/h
Definition at line 249 of file NWWriter_DlrNavteq.cpp.
Referenced by writeLinksUnsplitted().
|
staticprivate |
get the SPEED_LIMIT as defined by elmar (upper bound of speed category)
Definition at line 276 of file NWWriter_DlrNavteq.cpp.
Referenced by writeLinksUnsplitted().
|
inlinestaticprivate |
get edge speed rounded to kmh
Definition at line 116 of file NWWriter_DlrNavteq.h.
Referenced by getRoadClass(), and writeLinksUnsplitted().
|
staticprivate |
write header comments (input paramters, date, etc...)
Definition at line 73 of file NWWriter_DlrNavteq.cpp.
References OptionsCont::getFullName(), and OptionsCont::writeConfiguration().
Referenced by writeLinksUnsplitted(), writeNodesUnsplitted(), and writeTrafficSignals().
|
staticprivate |
Writes the links_unsplitted file.
[in] | oc | The options to use |
[in] | ec | The edge-container from which to read data |
Definition at line 143 of file NWWriter_DlrNavteq.cpp.
References NBEdgeCont::begin(), NBEdgeCont::end(), getAllowedTypes(), OptionsCont::getBool(), OutputDevice::getDevice(), NBEdge::getFromNode(), NBEdge::getGeometry(), getGraphLength(), Named::getID(), getNavteqLaneCode(), NBEdge::getNumLanes(), NBEdge::getPermissions(), getRoadClass(), NBEdge::getSpeed(), getSpeedCategory(), getSpeedCategoryUpperBound(), OptionsCont::getString(), NBEdge::getToNode(), speedInKph(), toString(), UNDEFINED, and writeHeader().
Referenced by 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 62 of file NWWriter_DlrNavteq.cpp.
References NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), OptionsCont::isSet(), writeLinksUnsplitted(), writeNodesUnsplitted(), and writeTrafficSignals().
Referenced by NWFrame::writeNetwork().
|
staticprivate |
Writes the nodes_unsplitted file.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
[in] | ec | The edge-container from which to read data |
Definition at line 92 of file NWWriter_DlrNavteq.cpp.
References NBNodeCont::begin(), NBEdgeCont::begin(), GeoConvHelper::cartesian2geo(), OutputDevice::close(), NBNodeCont::end(), NBEdgeCont::end(), OutputDevice::getDevice(), GeoConvHelper::getFinal(), NBEdge::getGeometry(), Named::getID(), NBNode::getPosition(), OptionsCont::getString(), Position::mul(), NBNodeCont::retrieve(), OutputDevice::setPrecision(), SUMOReal, UNDEFINED, GeoConvHelper::usingGeoProjection(), WRITE_WARNING, writeHeader(), Position::x(), and Position::y().
Referenced by writeNetwork().
|
staticprivate |
Writes the traffic_signals file.
[in] | oc | The options to use |
[in] | nc | The node-container from which to read data |
Definition at line 320 of file NWWriter_DlrNavteq.cpp.
References NBNodeCont::begin(), GeoConvHelper::cartesian2geo(), NBNodeCont::end(), OutputDevice::getDevice(), GeoConvHelper::getFinal(), Named::getID(), NBNode::getIncomingEdges(), NBNode::getPosition(), OptionsCont::getString(), NBNode::isTLControlled(), Position::mul(), OutputDevice::setPrecision(), SUMOReal, GeoConvHelper::usingGeoProjection(), writeHeader(), Position::x(), and Position::y().
Referenced by writeNetwork().
|
staticprivate |
magic value for undefined stuff
Definition at line 113 of file NWWriter_DlrNavteq.h.
Referenced by writeLinksUnsplitted(), and writeNodesUnsplitted().