Eclipse SUMO - Simulation of Urban MObility
|
A temporary storage for conflict areas imported from Vissim. More...
#include <NIVissimConflictArea.h>
Public Member Functions | |
std::string | getFirstLink () |
Returns the first link of the conflic area. | |
int | getID () |
Returns the ID of the conflic area. | |
std::string | getSecondLink () |
Returns the second link of the conflic area. | |
std::string | getStatus () |
Returns the priority regulation of the conflic area. | |
NIVissimConflictArea (int id, const std::string &link1, const std::string &link2, const std::string &status) | |
Constructor. | |
~NIVissimConflictArea () | |
Destructor. | |
Static Public Member Functions | |
static void | clearDict () |
Clears the dictionary. | |
static NIVissimConflictArea * | dict_findByLinks (const std::string &link1, const std::string &link2) |
static NIVissimConflictArea * | dictionary (int id) |
Returns the named dictionary. | |
static bool | dictionary (int id, const std::string &link1, const std::string &link2, const std::string &status) |
Adds the described item to the dictionary Builds the conflict area first. | |
static bool | dictionary (int id, NIVissimConflictArea *ca) |
Adds the conflict area to the dictionary. | |
static std::map< int, NIVissimConflictArea * > | getConflictAreas () |
Returns the dictionary including all conflict areas. | |
static void | setPriorityRegulation (NBEdgeCont &ec) |
Sets the priority regulation according to the VISSIM conflict area data. | |
Private Types | |
typedef std::map< int, NIVissimConflictArea * > | DictType |
Definition of the dictionary type. | |
Private Attributes | |
int | myConflictID |
The id of the conflict area. | |
std::string | myFirstLink |
The first link of the conflict area. | |
std::string | mySecondLink |
The second link of the conflict area. | |
std::string | myStatus |
The priority regulation of the conflict area. | |
Static Private Attributes | |
static DictType | myDict |
The dictionary. | |
A temporary storage for conflict areas imported from Vissim.
Definition at line 46 of file NIVissimConflictArea.h.
|
private |
Definition of the dictionary type.
Definition at line 122 of file NIVissimConflictArea.h.
NIVissimConflictArea::NIVissimConflictArea | ( | int | id, |
const std::string & | link1, | ||
const std::string & | link2, | ||
const std::string & | status | ||
) |
Constructor.
Definition at line 43 of file NIVissimConflictArea.cpp.
NIVissimConflictArea::~NIVissimConflictArea | ( | ) |
Destructor.
Definition at line 51 of file NIVissimConflictArea.cpp.
|
static |
Clears the dictionary.
Definition at line 107 of file NIVissimConflictArea.cpp.
References myDict.
Referenced by NIImporter_Vissim::~NIImporter_Vissim().
|
static |
Returns the conflict area from the dictionary, which defines the priority rule of the two given links
Definition at line 94 of file NIVissimConflictArea.cpp.
References myDict.
|
static |
Returns the named dictionary.
Definition at line 83 of file NIVissimConflictArea.cpp.
References myDict.
|
static |
Adds the described item to the dictionary Builds the conflict area first.
Definition at line 57 of file NIVissimConflictArea.cpp.
References dictionary().
Referenced by dictionary(), and NIImporter_Vissim::NIVissimXMLHandler_ConflictArea::myStartElement().
|
static |
Adds the conflict area to the dictionary.
Definition at line 71 of file NIVissimConflictArea.cpp.
References myDict.
|
inlinestatic |
Returns the dictionary including all conflict areas.
Definition at line 78 of file NIVissimConflictArea.h.
References myDict.
|
inline |
Returns the first link of the conflic area.
Definition at line 88 of file NIVissimConflictArea.h.
References myFirstLink.
Referenced by setPriorityRegulation().
|
inline |
Returns the ID of the conflic area.
Definition at line 83 of file NIVissimConflictArea.h.
References myConflictID.
|
inline |
Returns the second link of the conflic area.
Definition at line 93 of file NIVissimConflictArea.h.
References mySecondLink.
Referenced by setPriorityRegulation().
|
inline |
Returns the priority regulation of the conflic area.
Definition at line 98 of file NIVissimConflictArea.h.
References myStatus.
Referenced by setPriorityRegulation().
|
static |
Sets the priority regulation according to the VISSIM conflict area data.
Definition at line 116 of file NIVissimConflictArea.cpp.
References NBNode::addSortedLinkFoes(), NIVissimConnection::dictionary(), getFirstLink(), NIVissimConnection::getFromEdgeID(), getSecondLink(), getStatus(), NIVissimConnection::getToEdgeID(), NBEdge::getToNode(), myDict, NBEdgeCont::retrievePossiblySplit(), and StringUtils::toInt().
Referenced by NIImporter_Vissim::postLoadBuild().
|
private |
The id of the conflict area.
Definition at line 109 of file NIVissimConflictArea.h.
Referenced by getID().
|
staticprivate |
The dictionary.
Definition at line 125 of file NIVissimConflictArea.h.
Referenced by clearDict(), dict_findByLinks(), dictionary(), dictionary(), getConflictAreas(), and setPriorityRegulation().
|
private |
The first link of the conflict area.
Definition at line 112 of file NIVissimConflictArea.h.
Referenced by getFirstLink().
|
private |
The second link of the conflict area.
Definition at line 115 of file NIVissimConflictArea.h.
Referenced by getSecondLink().
|
private |
The priority regulation of the conflict area.
Definition at line 118 of file NIVissimConflictArea.h.
Referenced by getStatus().