Eclipse SUMO - Simulation of Urban MObility
NWWriter_DlrNavteq Class Reference

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

#include <NWWriter_DlrNavteq.h>

Collaboration diagram for NWWriter_DlrNavteq:

Static Public Member Functions

static int getBrunnelType (NBEdge *edge)
 get the navteq brunnel type More...
 
static int getFormOfWay (NBEdge *edge)
 get the form of way More...
 
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 double getGraphLength (NBEdge *edge)
 get the length of the edge when measured up to the junction center More...
 
static int getNavteqLaneCode (const int numLanes)
 get the lane number encoding More...
 
static std::string getSinglePostalCode (const std::string &zipCode, const std::string edgeID)
 
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 (double metersPerSecond)
 get edge speed rounded to kmh More...
 
static void writeConnectedLanes (const OptionsCont &oc, NBNodeCont &nc)
 Writes the connected_lanes file. 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, std::map< NBEdge *, std::string > &internalNodes)
 Writes the links_unsplitted file. More...
 
static void writeNodesUnsplitted (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec, std::map< NBEdge *, std::string > &internalNodes)
 Writes the nodes_unsplitted file. More...
 
static void writeProhibitedManoeuvres (const OptionsCont &oc, const NBNodeCont &nc, const NBEdgeCont &ec)
 Writes the prohibited_manoeuvres 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...
 

Detailed Description

Exporter writing networks using XML (native input) format.

Definition at line 54 of file NWWriter_DlrNavteq.h.

Member Function Documentation

◆ getAllowedTypes()

std::string NWWriter_DlrNavteq::getAllowedTypes ( SVCPermissions  permissions)
staticprivate

◆ getBrunnelType()

int NWWriter_DlrNavteq::getBrunnelType ( NBEdge edge)
static

get the navteq brunnel type

Definition at line 391 of file NWWriter_DlrNavteq.cpp.

References NBEdge::getTypeID(), and Parameterised::knowsParameter().

Referenced by writeLinksUnsplitted().

◆ getFormOfWay()

int NWWriter_DlrNavteq::getFormOfWay ( NBEdge edge)
static

◆ getGraphLength()

double NWWriter_DlrNavteq::getGraphLength ( NBEdge edge)
staticprivate

◆ getNavteqLaneCode()

int NWWriter_DlrNavteq::getNavteqLaneCode ( const int  numLanes)
staticprivate

get the lane number encoding

Definition at line 383 of file NWWriter_DlrNavteq.cpp.

Referenced by writeLinksUnsplitted().

◆ getRoadClass()

int NWWriter_DlrNavteq::getRoadClass ( NBEdge edge)
static

◆ getSinglePostalCode()

std::string NWWriter_DlrNavteq::getSinglePostalCode ( const std::string &  zipCode,
const std::string  edgeID 
)
staticprivate

Definition at line 428 of file NWWriter_DlrNavteq.cpp.

References StringTokenizer::getVector(), and WRITE_WARNING.

Referenced by writeLinksUnsplitted().

◆ getSpeedCategory()

int NWWriter_DlrNavteq::getSpeedCategory ( int  kph)
staticprivate

get the navteq speed class based on the speed in km/h

Definition at line 329 of file NWWriter_DlrNavteq.cpp.

Referenced by writeLinksUnsplitted().

◆ getSpeedCategoryUpperBound()

int NWWriter_DlrNavteq::getSpeedCategoryUpperBound ( int  kph)
staticprivate

get the SPEED_LIMIT as defined by elmar (upper bound of speed category)

Definition at line 356 of file NWWriter_DlrNavteq.cpp.

Referenced by writeLinksUnsplitted().

◆ speedInKph()

static int NWWriter_DlrNavteq::speedInKph ( double  metersPerSecond)
inlinestaticprivate

get edge speed rounded to kmh

Definition at line 131 of file NWWriter_DlrNavteq.h.

Referenced by getRoadClass(), and writeLinksUnsplitted().

◆ writeConnectedLanes()

void NWWriter_DlrNavteq::writeConnectedLanes ( const OptionsCont oc,
NBNodeCont nc 
)
staticprivate

◆ writeHeader()

void NWWriter_DlrNavteq::writeHeader ( OutputDevice device,
const OptionsCont oc 
)
staticprivate

write header comments (input paramters, date, etc...)

Definition at line 67 of file NWWriter_DlrNavteq.cpp.

References OptionsCont::writeConfiguration().

Referenced by writeConnectedLanes(), writeLinksUnsplitted(), writeNodesUnsplitted(), writeProhibitedManoeuvres(), and writeTrafficSignals().

◆ writeLinksUnsplitted()

void NWWriter_DlrNavteq::writeLinksUnsplitted ( const OptionsCont oc,
NBEdgeCont ec,
std::map< NBEdge *, std::string > &  internalNodes 
)
staticprivate

◆ writeNetwork()

void NWWriter_DlrNavteq::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 53 of file NWWriter_DlrNavteq.cpp.

References NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), OptionsCont::isSet(), writeConnectedLanes(), writeLinksUnsplitted(), writeNodesUnsplitted(), writeProhibitedManoeuvres(), and writeTrafficSignals().

Referenced by NWFrame::writeNetwork().

◆ writeNodesUnsplitted()

◆ writeProhibitedManoeuvres()

void NWWriter_DlrNavteq::writeProhibitedManoeuvres ( const OptionsCont oc,
const NBNodeCont nc,
const NBEdgeCont ec 
)
staticprivate

◆ writeTrafficSignals()

void NWWriter_DlrNavteq::writeTrafficSignals ( const OptionsCont oc,
NBNodeCont nc 
)
staticprivate

Field Documentation

◆ UNDEFINED

const std::string NWWriter_DlrNavteq::UNDEFINED
staticprivate

magic value for undefined stuff

Definition at line 128 of file NWWriter_DlrNavteq.h.

Referenced by writeLinksUnsplitted(), writeNodesUnsplitted(), and writeProhibitedManoeuvres().


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