![]() |
Eclipse SUMO - Simulation of Urban MObility
|
The definition of a single phase of the logic. More...
#include <NBTrafficLightLogic.h>
Public Member Functions | |
bool | operator!= (const PhaseDefinition &pd) const |
Comparison operator. More... | |
PhaseDefinition (SUMOTime durationArg, const std::string &stateArg, SUMOTime minDurArg, SUMOTime maxDurArg, const std::vector< int > &nextArg, const std::string &nameArg) | |
Constructor. More... | |
~PhaseDefinition () | |
Destructor. More... | |
Data Fields | |
SUMOTime | duration |
The duration of the phase in s. More... | |
SUMOTime | maxDur |
SUMOTime | minDur |
std::string | name |
option phase name More... | |
std::vector< int > | next |
next phase indices or empty list More... | |
std::string | state |
The state definition. More... | |
The definition of a single phase of the logic.
Definition at line 58 of file NBTrafficLightLogic.h.
|
inline |
Constructor.
[in] | durationArg | The duration of the phase |
[in] | stateArg | Signals per link |
Definition at line 77 of file NBTrafficLightLogic.h.
|
inline |
Destructor.
Definition at line 87 of file NBTrafficLightLogic.h.
|
inline |
Comparison operator.
[in] | pd | A second phase |
Definition at line 93 of file NBTrafficLightLogic.h.
References NBTrafficLightLogic::addStep(), NBTrafficLightLogic::closeBuilding(), NBTrafficLightLogic::deletePhase(), duration, NBTrafficLightLogic::getDuration(), LINKSTATE_TL_RED, maxDur, minDur, name, NBTrafficLightLogic::NBTrafficLightLogic(), next, NBTrafficLightLogic::resetPhases(), NBTrafficLightLogic::setPhaseDuration(), NBTrafficLightLogic::setPhaseMaxDuration(), NBTrafficLightLogic::setPhaseMinDuration(), NBTrafficLightLogic::setPhaseName(), NBTrafficLightLogic::setPhaseNext(), NBTrafficLightLogic::setPhaseState(), NBTrafficLightLogic::setStateLength(), state, TLTYPE_STATIC, and NBTrafficLightLogic::~NBTrafficLightLogic().
SUMOTime NBTrafficLightLogic::PhaseDefinition::duration |
The duration of the phase in s.
Definition at line 61 of file NBTrafficLightLogic.h.
Referenced by GNETLSEditorFrame::onCmdPhaseEdit(), and operator!=().
SUMOTime NBTrafficLightLogic::PhaseDefinition::maxDur |
Definition at line 63 of file NBTrafficLightLogic.h.
Referenced by operator!=().
SUMOTime NBTrafficLightLogic::PhaseDefinition::minDur |
Definition at line 62 of file NBTrafficLightLogic.h.
Referenced by operator!=().
std::string NBTrafficLightLogic::PhaseDefinition::name |
option phase name
Definition at line 71 of file NBTrafficLightLogic.h.
Referenced by GNETLSEditorFrame::onCmdPhaseEdit(), and operator!=().
std::vector<int> NBTrafficLightLogic::PhaseDefinition::next |
next phase indices or empty list
Definition at line 69 of file NBTrafficLightLogic.h.
Referenced by GNETLSEditorFrame::onCmdPhaseEdit(), and operator!=().
std::string NBTrafficLightLogic::PhaseDefinition::state |
The state definition.
Definition at line 66 of file NBTrafficLightLogic.h.
Referenced by GNETLSEditorFrame::onCmdPhaseSwitch(), and operator!=().