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

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

#include <NWWriter_DlrNavteq.h>

Collaboration diagram for NWWriter_DlrNavteq:
Collaboration graph

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 int getNavteqLaneCode (const 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...
 

Detailed Description

Exporter writing networks using XML (native input) format.

Definition at line 61 of file NWWriter_DlrNavteq.h.

Member Function Documentation

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

build the ascii-bit-vector for column vehicle_type

Definition at line 215 of file NWWriter_DlrNavteq.cpp.

References SVCAll.

Referenced by writeLinksUnsplitted().

SUMOReal NWWriter_DlrNavteq::getGraphLength ( NBEdge edge)
staticprivate
int NWWriter_DlrNavteq::getNavteqLaneCode ( const int  numLanes)
staticprivate

get the lane number encoding

Definition at line 335 of file NWWriter_DlrNavteq.cpp.

Referenced by writeLinksUnsplitted().

int NWWriter_DlrNavteq::getRoadClass ( NBEdge edge)
static
int NWWriter_DlrNavteq::getSpeedCategory ( int  kph)
staticprivate

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

Definition at line 281 of file NWWriter_DlrNavteq.cpp.

Referenced by writeLinksUnsplitted().

int NWWriter_DlrNavteq::getSpeedCategoryUpperBound ( int  kph)
staticprivate

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

Definition at line 308 of file NWWriter_DlrNavteq.cpp.

Referenced by writeLinksUnsplitted().

static int NWWriter_DlrNavteq::speedInKph ( SUMOReal  metersPerSecond)
inlinestaticprivate

get edge speed rounded to kmh

Definition at line 116 of file NWWriter_DlrNavteq.h.

Referenced by getRoadClass(), and writeLinksUnsplitted().

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

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

Definition at line 74 of file NWWriter_DlrNavteq.cpp.

References OptionsCont::getFullName(), and OptionsCont::writeConfiguration().

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

void NWWriter_DlrNavteq::writeLinksUnsplitted ( const OptionsCont oc,
NBEdgeCont ec 
)
staticprivate
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 63 of file NWWriter_DlrNavteq.cpp.

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

Referenced by NWFrame::writeNetwork().

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

Field Documentation

const std::string NWWriter_DlrNavteq::UNDEFINED
staticprivate

magic value for undefined stuff

Definition at line 113 of file NWWriter_DlrNavteq.h.

Referenced by writeLinksUnsplitted(), and writeNodesUnsplitted().


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