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

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

#include <NWWriter_DlrNavteq.h>

Static Public Member Functions

static void writeNetwork (const OptionsCont &oc, NBNetBuilder &nb)
 Writes the network into XML-files (nodes, edges, connections, traffic lights)

Static Private Member Functions

static std::string getAllowedTypes (SVCPermissions permissions)
 build the ascii-bit-vector for column vehicle_type
static SUMOReal getGraphLength (NBEdge *edge)
 get the length of the edge when measured up to the junction center
static unsigned int getNavteqLaneCode (const unsigned int numLanes)
 get the lane number encoding
static int getRoadClass (NBEdge *edge)
 get the navteq road class
static int getSpeedCategory (int kph)
 get the navteq speed class based on the speed in km/h
static int getSpeedCategoryUpperBound (int kph)
 get the SPEED_LIMIT as defined by elmar (upper bound of speed category)
static int speedInKph (SUMOReal metersPerSecond)
 get edge speed rounded to kmh
static void writeHeader (OutputDevice &device, const OptionsCont &oc)
 write header comments (input paramters, date, etc...)
static void writeLinksUnsplitted (const OptionsCont &oc, NBEdgeCont &ec)
 Writes the links_unsplitted files.
static void writeNodesUnsplitted (const OptionsCont &oc, NBNodeCont &nc, NBEdgeCont &ec)
 Writes the nodes_unsplitted file.

Static Private Attributes

static const std::string UNDEFINED
 magic value for undefined stuff

Detailed Description

Exporter writing networks using XML (native input) format.

Definition at line 60 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 180 of file NWWriter_DlrNavteq.cpp.

References SVCFreeForAll.

Referenced by writeLinksUnsplitted().

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

get the lane number encoding

Definition at line 281 of file NWWriter_DlrNavteq.cpp.

Referenced by writeLinksUnsplitted().

int NWWriter_DlrNavteq::getRoadClass ( NBEdge edge)
staticprivate

get the navteq road class

Definition at line 202 of file NWWriter_DlrNavteq.cpp.

References NBEdge::getNumLanes(), NBEdge::getSpeed(), and speedInKph().

Referenced by writeLinksUnsplitted().

int NWWriter_DlrNavteq::getSpeedCategory ( int  kph)
staticprivate

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

Definition at line 227 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 254 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 110 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 71 of file NWWriter_DlrNavteq.cpp.

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

Referenced by writeLinksUnsplitted(), and writeNodesUnsplitted().

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 61 of file NWWriter_DlrNavteq.cpp.

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

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

Field Documentation

const std::string NWWriter_DlrNavteq::UNDEFINED
staticprivate

magic value for undefined stuff

Definition at line 107 of file NWWriter_DlrNavteq.h.

Referenced by writeLinksUnsplitted(), and writeNodesUnsplitted().


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