Eclipse SUMO - Simulation of Urban MObility
NIImporter_ITSUMO Class Reference

Importer for networks stored in ITSUMO format. More...

#include <NIImporter_ITSUMO.h>

Collaboration diagram for NIImporter_ITSUMO:
[legend]

Data Structures

class  Handler
 

Static Public Member Functions

static void loadNetwork (const OptionsCont &oc, NBNetBuilder &nb)
 Loads content of the optionally given ITSUMO network files. More...
 

Private Types

enum  ItsumoXMLAttr { ITSUMO_ATTR_NOTHING = 0 }
 Numbers representing MATSIM-XML - attributes. More...
 
enum  ItsumoXMLTag {
  ITSUMO_TAG_NOTHING = 0 , ITSUMO_TAG_SIMULATION , ITSUMO_TAG_NETWORK_ID , ITSUMO_TAG_NETWORK_NAME ,
  ITSUMO_TAG_NODES , ITSUMO_TAG_NODE , ITSUMO_TAG_NODE_ID , ITSUMO_TAG_NODE_NAME ,
  ITSUMO_TAG_X_COORD , ITSUMO_TAG_Y_COORD , ITSUMO_TAG_SOURCES , ITSUMO_TAG_SINKS ,
  ITSUMO_TAG_TRAFFIC_LIGHTS , ITSUMO_TAG_STREETS , ITSUMO_TAG_STREET , ITSUMO_TAG_STREET_ID ,
  ITSUMO_TAG_STREET_NAME , ITSUMO_TAG_SECTIONS , ITSUMO_TAG_SECTION , ITSUMO_TAG_SECTION_ID ,
  ITSUMO_TAG_SECTION_NAME , ITSUMO_TAG_IS_PREFERENCIAL , ITSUMO_TAG_DELIMITING_NODE , ITSUMO_TAG_LANESETS ,
  ITSUMO_TAG_LANESET , ITSUMO_TAG_LANESET_ID , ITSUMO_TAG_LANESET_POSITION , ITSUMO_TAG_START_NODE ,
  ITSUMO_TAG_END_NODE , ITSUMO_TAG_TURNING_PROBABILITIES , ITSUMO_TAG_DIRECTION , ITSUMO_TAG_DESTINATION_LANESET ,
  ITSUMO_TAG_PROBABILITY , ITSUMO_TAG_LANES , ITSUMO_TAG_LANE , ITSUMO_TAG_LANE_ID ,
  ITSUMO_TAG_LANE_POSITION , ITSUMO_TAG_MAXIMUM_SPEED , ITSUMO_TAG_DECELERATION_PROB
}
 Numbers representing ITSUMO-XML - element names. More...
 

Static Private Attributes

static SequentialStringBijection::Entry itsumoAttrs []
 The names of MATSIM-XML attributes (for passing to GenericSAXHandler) More...
 
static SequentialStringBijection::Entry itsumoTags []
 The names of MATSIM-XML elements (for passing to GenericSAXHandler) More...
 

Detailed Description

Importer for networks stored in ITSUMO format.

Definition at line 51 of file NIImporter_ITSUMO.h.

Member Enumeration Documentation

◆ ItsumoXMLAttr

Numbers representing MATSIM-XML - attributes.

See also
GenericSAXHandler
Enumerator
ITSUMO_ATTR_NOTHING 

Definition at line 228 of file NIImporter_ITSUMO.h.

◆ ItsumoXMLTag

Numbers representing ITSUMO-XML - element names.

See also
GenericSAXHandler
Enumerator
ITSUMO_TAG_NOTHING 
ITSUMO_TAG_SIMULATION 
ITSUMO_TAG_NETWORK_ID 
ITSUMO_TAG_NETWORK_NAME 
ITSUMO_TAG_NODES 
ITSUMO_TAG_NODE 
ITSUMO_TAG_NODE_ID 
ITSUMO_TAG_NODE_NAME 
ITSUMO_TAG_X_COORD 
ITSUMO_TAG_Y_COORD 
ITSUMO_TAG_SOURCES 
ITSUMO_TAG_SINKS 
ITSUMO_TAG_TRAFFIC_LIGHTS 
ITSUMO_TAG_STREETS 
ITSUMO_TAG_STREET 
ITSUMO_TAG_STREET_ID 
ITSUMO_TAG_STREET_NAME 
ITSUMO_TAG_SECTIONS 
ITSUMO_TAG_SECTION 
ITSUMO_TAG_SECTION_ID 
ITSUMO_TAG_SECTION_NAME 
ITSUMO_TAG_IS_PREFERENCIAL 
ITSUMO_TAG_DELIMITING_NODE 
ITSUMO_TAG_LANESETS 
ITSUMO_TAG_LANESET 
ITSUMO_TAG_LANESET_ID 
ITSUMO_TAG_LANESET_POSITION 
ITSUMO_TAG_START_NODE 
ITSUMO_TAG_END_NODE 
ITSUMO_TAG_TURNING_PROBABILITIES 
ITSUMO_TAG_DIRECTION 
ITSUMO_TAG_DESTINATION_LANESET 
ITSUMO_TAG_PROBABILITY 
ITSUMO_TAG_LANES 
ITSUMO_TAG_LANE 
ITSUMO_TAG_LANE_ID 
ITSUMO_TAG_LANE_POSITION 
ITSUMO_TAG_MAXIMUM_SPEED 
ITSUMO_TAG_DECELERATION_PROB 

Definition at line 180 of file NIImporter_ITSUMO.h.

Member Function Documentation

◆ loadNetwork()

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

Loads content of the optionally given ITSUMO network files.

If the option "itsumo-files" 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 "itsumo-files" is not set, this method simply returns.

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

Definition at line 103 of file NIImporter_ITSUMO.cpp.

References OptionsCont::getStringVector(), FileHelpers::isReadable(), OptionsCont::isSet(), GenericSAXHandler::needsCharacterData(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, XMLSubSys::runParser(), GenericSAXHandler::setFileName(), TL, and WRITE_ERRORF.

Referenced by NILoader::load().

Here is the caller graph for this function:

Field Documentation

◆ itsumoAttrs

SequentialStringBijection::Entry NIImporter_ITSUMO::itsumoAttrs
staticprivate
Initial value:

The names of MATSIM-XML attributes (for passing to GenericSAXHandler)

Definition at line 236 of file NIImporter_ITSUMO.h.

◆ itsumoTags

SequentialStringBijection::Entry NIImporter_ITSUMO::itsumoTags
staticprivate

The names of MATSIM-XML elements (for passing to GenericSAXHandler)

Definition at line 233 of file NIImporter_ITSUMO.h.


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