Eclipse SUMO - Simulation of Urban MObility
|
Importer for networks stored in Vissim format. More...
#include <NIImporter_Vissim.h>
Data Structures | |
class | NIVissimXMLHandler_ConflictArea |
class | NIVissimXMLHandler_Fahrzeugklassendefinition |
class | NIVissimXMLHandler_Geschwindigkeitsverteilungsdefinition |
class | NIVissimXMLHandler_Parkplatzdefinition |
class | NIVissimXMLHandler_Routenentscheidungsdefinition |
A class which extracts VISSIM-Routes from a parsed VISSIM-file. More... | |
class | NIVissimXMLHandler_Streckendefinition |
class | NIVissimXMLHandler_VWunschentscheidungsdefinition |
class | NIVissimXMLHandler_Zuflussdefinition |
class | VissimSingleTypeParser |
Public Types | |
typedef std::map< std::string, RGBColor > | ColorMap |
definition of a map from color names to color definitions | |
Static Public Member Functions | |
static void | loadNetwork (const OptionsCont &oc, NBNetBuilder &nb) |
Loads network definition from the assigned option and stores it in the given network builder. | |
Protected Member Functions | |
bool | admitContinue (const std::string &tag) |
void | load (const OptionsCont &options) |
loads the vissim file | |
NIImporter_Vissim (NBNetBuilder &nb) | |
constructor | |
~NIImporter_Vissim () | |
destructor | |
Private Member Functions | |
void | buildParsers () |
adds id-to-parser - relationships of elements to parse into myParsers | |
void | insertKnownElements () |
adds name-to-id - relationships of known elements into myKnownElements | |
NIImporter_Vissim (const NIImporter_Vissim &) | |
Invalidated copy constructor. | |
NIImporter_Vissim & | operator= (const NIImporter_Vissim &) |
Invalidated assignment operator. | |
void | postLoadBuild (double offset) |
bool | readContents (std::istream &strm) |
Private Attributes | |
nodeMap | elementData |
ColorMap | myColorMap |
a map from color names to color definitions | |
ToElemIDMap | myKnownElements |
Map from element names to their numerical representation. | |
std::string | myLastSecure |
NBNetBuilder & | myNetBuilder |
ToParserMap | myParsers |
Parsers by element id. | |
Static Private Attributes | |
static SequentialStringBijection::Entry | vissimAttrs [] |
The names of VISSIM-XML attributes (for passing to GenericSAXHandler) | |
static SequentialStringBijection::Entry | vissimTags [] |
The names of VISSIM-XML elements (for passing to GenericSAXHandler) | |
Importer for networks stored in Vissim format.
Definition at line 56 of file NIImporter_Vissim.h.
typedef std::map<std::string, RGBColor> NIImporter_Vissim::ColorMap |
definition of a map from color names to color definitions
Definition at line 545 of file NIImporter_Vissim.h.
|
private |
Definition at line 75 of file NIImporter_Vissim.h.
|
private |
Definition of a map from element names to their numerical representation.
Definition at line 560 of file NIImporter_Vissim.h.
|
private |
Definition of a map from an element's numerical id to his parser.
Definition at line 566 of file NIImporter_Vissim.h.
|
private |
Numbers representing VISSIM-XML - attributes.
Definition at line 623 of file NIImporter_Vissim.h.
|
private |
Numbers representing VISSIM-XML - element names.
Definition at line 592 of file NIImporter_Vissim.h.
|
protected |
constructor
Definition at line 838 of file NIImporter_Vissim.cpp.
References RGBColor::BLACK, buildParsers(), RGBColor::CYAN, RGBColor::GREEN, RGBColor::GREY, insertKnownElements(), RGBColor::MAGENTA, myColorMap, RGBColor::RED, RGBColor::WHITE, and RGBColor::YELLOW.
|
protected |
destructor
Definition at line 856 of file NIImporter_Vissim.cpp.
References NIVissimAbstractEdge::clearDict(), NIVissimClosures::clearDict(), NIVissimConflictArea::clearDict(), NIVissimConnectionCluster::clearDict(), NIVissimDistrictConnection::clearDict(), NIVissimDisturbance::clearDict(), NIVissimNodeCluster::clearDict(), NIVissimNodeDef::clearDict(), NIVissimSource::clearDict(), NIVissimTL::clearDict(), NIVissimTL::NIVissimTLSignal::clearDict(), NIVissimTL::NIVissimTLSignalGroup::clearDict(), NIVissimTrafficDescription::clearDict(), NIVissimVehicleType::clearDict(), NIVissimVehTypeClass::clearDict(), and myParsers.
|
private |
Invalidated copy constructor.
|
protected |
Definition at line 961 of file NIImporter_Vissim.cpp.
References myKnownElements, and myLastSecure.
|
private |
adds id-to-parser - relationships of elements to parse into myParsers
Definition at line 1139 of file NIImporter_Vissim.cpp.
References myColorMap, myParsers, VE_Auswertungsdefinition, VE_Baujahrverteilungsdefinition, VE_Detektorendefinition, VE_DynUml, VE_Einheitendefinition, VE_Emission, VE_Fahrtverlaufdateien, VE_Fahrverhaltendefinition, VE_Fahrzeugklassendefinition, VE_Fahrzeugtypdefinition, VE_Fensterdefinition, VE_Gefahrenwarnsystemdefinition, VE_Gelbverhaltendefinition, VE_Geschwindigkeitsverteilungsdefinition, VE_Haltestellendefinition, VE_Kantensperrung, VE_Kennungszeile, VE_Knotendefinition, VE_Laengenverteilungsdefinition, VE_Langsamfahrbereichdefinition, VE_Laufleistungsverteilungsdefinition, VE_Leistungsverteilungsdefinition, VE_Lichtsignalanlagendefinition, VE_Liniendefinition, VE_Linksverkehr, VE_LSAKopplungdefinition, VE_Massenverteilungsdefinition, VE_Maxbeschleunigungskurvedefinition, VE_Maxverzoegerungskurvedefinition, VE_Messungsdefinition, VE_Netzobjektdefinition, VE_Parkplatzdefinition, VE_Querschnittsmessungsdefinition, VE_Querverkehrsstoerungsdefinition, VE_Rautedefinition, VE_Reisezeitmessungsdefinition, VE_Richtungsentscheidungsdefinition, VE_Richtungspfeildefinition, VE_Routenentscheidungsdefinition, VE_Signalgeberdefinition, VE_Signalgruppendefinition, VE_Simdauer, VE_SimRate, VE_Startuhrzeit, VE_Startzufallszahl, VE_Stauparameterdefinition, VE_Stauzaehlerdefinition, VE_Stopschilddefinition, VE_Streckendefinition, VE_Streckentypdefinition, VE_TEAPACdefinition, VE_Verbindungsdefinition, VE_Verkehrszusammensetzungsdefinition, VE_Verlustzeitmessungsdefinition, VE_VWunschentscheidungsdefinition, VE_Wunschbeschleunigungskurvedefinition, VE_Wunschverzoegerungskurvedefinition, VE_Zeitenverteilungsdefinition, VE_Zeitschrittfaktor, and VE_Zuflussdefinition.
Referenced by NIImporter_Vissim().
|
private |
adds name-to-id - relationships of known elements into myKnownElements
Definition at line 1067 of file NIImporter_Vissim.cpp.
References myKnownElements, VE_Auswertungsdefinition, VE_Baujahrverteilungsdefinition, VE_Detektorendefinition, VE_DUMMY, VE_DynUml, VE_Einheitendefinition, VE_Emission, VE_Fahrtverlaufdateien, VE_Fahrverhaltendefinition, VE_Fahrzeugklassendefinition, VE_Fahrzeugtypdefinition, VE_Fensterdefinition, VE_Gefahrenwarnsystemdefinition, VE_Gelbverhaltendefinition, VE_Geschwindigkeitsverteilungsdefinition, VE_Haltestellendefinition, VE_Kantensperrung, VE_Kennungszeile, VE_Knotendefinition, VE_Laengenverteilungsdefinition, VE_Langsamfahrbereichdefinition, VE_Laufleistungsverteilungsdefinition, VE_Leistungsverteilungsdefinition, VE_Lichtsignalanlagendefinition, VE_Liniendefinition, VE_Linksverkehr, VE_LSAKopplungdefinition, VE_Massenverteilungsdefinition, VE_Maxbeschleunigungskurvedefinition, VE_Maxverzoegerungskurvedefinition, VE_Messungsdefinition, VE_Netzobjektdefinition, VE_Parkplatzdefinition, VE_Querschnittsmessungsdefinition, VE_Querverkehrsstoerungsdefinition, VE_Rautedefinition, VE_Reisezeitmessungsdefinition, VE_Richtungsentscheidungsdefinition, VE_Richtungspfeildefinition, VE_Routenentscheidungsdefinition, VE_Signalgeberdefinition, VE_Signalgruppendefinition, VE_Simdauer, VE_SimRate, VE_Startuhrzeit, VE_Startzufallszahl, VE_Stauparameterdefinition, VE_Stauzaehlerdefinition, VE_Stopschilddefinition, VE_Streckendefinition, VE_Streckentypdefinition, VE_TEAPACdefinition, VE_Verbindungsdefinition, VE_Verkehrszusammensetzungsdefinition, VE_Verlustzeitmessungsdefinition, VE_VWunschentscheidungsdefinition, VE_Wunschbeschleunigungskurvedefinition, VE_Wunschverzoegerungskurvedefinition, VE_Zeitenverteilungsdefinition, VE_Zeitschrittfaktor, and VE_Zuflussdefinition.
Referenced by NIImporter_Vissim().
|
protected |
loads the vissim file
Definition at line 882 of file NIImporter_Vissim.cpp.
References elementData, StringUtils::endsWith(), OptionsCont::getFloat(), OptionsCont::getString(), postLoadBuild(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, readContents(), XMLSubSys::runParser(), GenericSAXHandler::setFileName(), TL, and WRITE_ERRORF.
Referenced by loadNetwork().
|
static |
Loads network definition from the assigned option and stores it in the given network builder.
If the option "vissim-file" is set, the file stored therein is read and the network definition stored therein is stored within the given network builder.
If the option "vissim-file" is not set, this method simply returns.
[in] | oc | The options to use |
[in] | nb | The network builder to fill |
Definition at line 192 of file NIImporter_Vissim.cpp.
References OptionsCont::isSet(), and load().
Referenced by NILoader::load().
|
private |
Invalidated assignment operator.
|
private |
Definition at line 1014 of file NIImporter_Vissim.cpp.
References NIVissimEdge::buildConnectionClusters(), NIVissimNodeCluster::buildNBNodes(), NIVissimConnectionCluster::buildNodeClusters(), NIVissimBoundedClusterObject::closeLoading(), NIVissimNodeCluster::dict_addDisturbances(), NIVissimConnection::dict_assignToEdges(), NIVissimDistrictConnection::dict_BuildDistrictConnections(), NIVissimDistrictConnection::dict_BuildDistrictNodes(), NIVissimDistrictConnection::dict_BuildDistricts(), NIVissimConnection::dict_buildNBEdgeConnections(), NIVissimEdge::dict_buildNBEdges(), NIVissimDistrictConnection::dict_CheckEdgeEnds(), NIVissimEdge::dict_checkEdges2Join(), NIVissimEdge::dict_propagateSpeeds(), NIVissimDisturbance::dict_SetDisturbances(), NIVissimTL::dict_SetSignals(), NBNetBuilder::getDistrictCont(), NBNetBuilder::getEdgeCont(), NIVissimNodeDef::getMaxID(), NBNetBuilder::getNodeCont(), OptionsCont::getOptions(), NBNetBuilder::getTLLogicCont(), NIVissimConnectionCluster::joinBySameEdges(), myNetBuilder, NIVissimEdge::reportUnsetSpeeds(), NIVissimNodeCluster::setCurrentVirtID(), and NIVissimConflictArea::setPriorityRegulation().
Referenced by load().
|
private |
Definition at line 972 of file NIImporter_Vissim.cpp.
References myKnownElements, myLastSecure, myParsers, NIImporter_Vissim::VissimSingleTypeParser::parse(), and StringUtils::to_lower_case().
Referenced by load().
|
private |
Definition at line 76 of file NIImporter_Vissim.h.
Referenced by load().
|
private |
a map from color names to color definitions
Definition at line 572 of file NIImporter_Vissim.h.
Referenced by buildParsers(), and NIImporter_Vissim().
|
private |
Map from element names to their numerical representation.
Definition at line 563 of file NIImporter_Vissim.h.
Referenced by admitContinue(), insertKnownElements(), and readContents().
|
private |
Definition at line 574 of file NIImporter_Vissim.h.
Referenced by admitContinue(), and readContents().
|
private |
Definition at line 576 of file NIImporter_Vissim.h.
Referenced by postLoadBuild().
|
private |
Parsers by element id.
Definition at line 569 of file NIImporter_Vissim.h.
Referenced by buildParsers(), readContents(), and ~NIImporter_Vissim().
|
staticprivate |
The names of VISSIM-XML attributes (for passing to GenericSAXHandler)
Definition at line 157 of file NIImporter_Vissim.h.
|
staticprivate |
The names of VISSIM-XML elements (for passing to GenericSAXHandler)
Definition at line 119 of file NIImporter_Vissim.h.