Eclipse SUMO - Simulation of Urban MObility
NIImporter_DlrNavteq Class Reference

Importer for networks stored in Elmar's format. More...

#include <NIImporter_DlrNavteq.h>

Data Structures

class  ConnectedLanesHandler
 Imports prohibitions regarding connectivity. More...
 
class  EdgesHandler
 Importer of edges stored in unsplit elmar format. More...
 
class  NamesHandler
 Importer of street names in DLRNavteq's (aka elmar) format. More...
 
class  NodesHandler
 Importer of nodes stored in unsplit elmar format. More...
 
class  ProhibitionHandler
 Imports prohibitions regarding connectivity. More...
 
class  TimeRestrictionsHandler
 Importer of street names in DLRNavteq's (aka elmar) format. More...
 
class  TrafficlightsHandler
 Importer of traffic lights stored in DLRNavteq's (aka elmar) format. More...
 

Static Public Member Functions

static void loadNetwork (const OptionsCont &oc, NBNetBuilder &nb)
 Loads content of the optionally given dlr-navteq (aka Elmar-fomat) folder. More...
 

Static Public Attributes

static const std::string GEO_SCALE
 scaling factor for geo coordinates (DLRNavteq format uses this to increase floating point precisions) More...
 
static bool keepLength = false
 decides whether the edge length of the input format should be used More...
 
static const std::string UNDEFINED
 magic value for undefined stuff More...
 

Static Protected Member Functions

static time_t readDate (const std::string &yyyymmdd)
 
static int readPrefixedInt (const std::string &s, const std::string &prefix, int fallBack=0)
 
static time_t readTimeRec (const std::string &start, const std::string &duration)
 
static double readVersion (const std::string &line, const std::string &file)
 

Detailed Description

Importer for networks stored in Elmar's format.

Definition at line 52 of file NIImporter_DlrNavteq.h.

Member Function Documentation

◆ loadNetwork()

void NIImporter_DlrNavteq::loadNetwork ( const OptionsCont oc,
NBNetBuilder nb 
)
static

Loads content of the optionally given dlr-navteq (aka Elmar-fomat) folder.

If the option "dlr-navteq-prefix" is set, the file(s) stored therein is read and the network definition stored therein is stored within the given network builder.

If the option "dlr-navteq-prefix" is not set, this method simply returns.

Parameters
[in]ocThe options to use
[in]nbThe network builder to fill

Definition at line 64 of file NIImporter_DlrNavteq.cpp.

References OptionsCont::getBool(), NBNetBuilder::getDistrictCont(), NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), OptionsCont::getString(), NBNetBuilder::getTLLogicCont(), NBNetBuilder::getTypeCont(), OptionsCont::isDefault(), OptionsCont::isSet(), keepLength, NIImporter_DlrNavteq::TimeRestrictionsHandler::printSummary(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, LineReader::readAll(), readDate(), NBEdgeCont::recheckLaneSpread(), LineReader::setFile(), TL, TLF, and WRITE_WARNINGF.

Referenced by NILoader::load().

Here is the caller graph for this function:

◆ readDate()

time_t NIImporter_DlrNavteq::readDate ( const std::string &  yyyymmdd)
staticprotected

Definition at line 682 of file NIImporter_DlrNavteq.cpp.

References TL, StringUtils::toInt(), and WRITE_ERRORF.

Referenced by loadNetwork().

Here is the caller graph for this function:

◆ readPrefixedInt()

int NIImporter_DlrNavteq::readPrefixedInt ( const std::string &  s,
const std::string &  prefix,
int  fallBack = 0 
)
staticprotected

Definition at line 647 of file NIImporter_DlrNavteq.cpp.

Referenced by readTimeRec().

Here is the caller graph for this function:

◆ readTimeRec()

time_t NIImporter_DlrNavteq::readTimeRec ( const std::string &  start,
const std::string &  duration 
)
staticprotected

Definition at line 658 of file NIImporter_DlrNavteq.cpp.

References readPrefixedInt().

Referenced by NIImporter_DlrNavteq::TimeRestrictionsHandler::report().

Here is the caller graph for this function:

◆ readVersion()

double NIImporter_DlrNavteq::readVersion ( const std::string &  line,
const std::string &  file 
)
staticprotected

Definition at line 154 of file NIImporter_DlrNavteq.cpp.

References StringUtils::to_lower_case(), StringUtils::toDouble(), and toString().

Referenced by NIImporter_DlrNavteq::EdgesHandler::report(), and NIImporter_DlrNavteq::ProhibitionHandler::report().

Here is the caller graph for this function:

Field Documentation

◆ GEO_SCALE

const std::string NIImporter_DlrNavteq::GEO_SCALE
static

scaling factor for geo coordinates (DLRNavteq format uses this to increase floating point precisions)

Definition at line 68 of file NIImporter_DlrNavteq.h.

Referenced by NIFrame::checkOptions().

◆ keepLength

bool NIImporter_DlrNavteq::keepLength = false
static

decides whether the edge length of the input format should be used

Definition at line 71 of file NIImporter_DlrNavteq.h.

Referenced by loadNetwork(), and NIImporter_DlrNavteq::EdgesHandler::report().

◆ UNDEFINED

const std::string NIImporter_DlrNavteq::UNDEFINED
static

magic value for undefined stuff

Definition at line 74 of file NIImporter_DlrNavteq.h.

Referenced by NIImporter_DlrNavteq::ProhibitionHandler::report().


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