![]() |
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. | |
| PhaseDefinition (const SUMOTime duration_, const std::string &state_, const SUMOTime minDur_, const SUMOTime maxDur_, const SUMOTime earliestEnd_, const SUMOTime latestEnd_, const SUMOTime vehExt_, const SUMOTime yellow_, const SUMOTime red_, const std::vector< int > &next_, const std::string &name_) | |
| Constructor. | |
| ~PhaseDefinition () | |
| Destructor. | |
Data Fields | |
| SUMOTime | duration |
| The duration of the phase in s. | |
| SUMOTime | earliestEnd |
| minimum duration (for actuated) | |
| SUMOTime | latestEnd |
| maximum duration duration (for actuated) | |
| SUMOTime | maxDur |
| maximum duration duration (for actuated) | |
| SUMOTime | minDur |
| minimum duration (for actuated) | |
| std::string | name |
| option phase name | |
| std::vector< int > | next |
| next phase indices or empty list | |
| SUMOTime | red |
| red (for NEMA) | |
| std::string | state |
| The state definition. | |
| SUMOTime | vehExt |
| veh ext (for NEMA) | |
| SUMOTime | yellow |
| yellow (for NEMA) | |
The definition of a single phase of the logic.
Definition at line 55 of file NBTrafficLightLogic.h.
|
inline |
Constructor.
| [in] | durationArg | The duration of the phase |
| [in] | stateArg | Signals per link |
Definition at line 95 of file NBTrafficLightLogic.h.
|
inline |
Destructor.
Definition at line 112 of file NBTrafficLightLogic.h.
|
inline |
Comparison operator.
| [in] | pd | A second phase |
Definition at line 118 of file NBTrafficLightLogic.h.
References duration, earliestEnd, latestEnd, maxDur, minDur, name, next, and state.
| SUMOTime NBTrafficLightLogic::PhaseDefinition::duration |
The duration of the phase in s.
Definition at line 59 of file NBTrafficLightLogic.h.
Referenced by operator!=().
| SUMOTime NBTrafficLightLogic::PhaseDefinition::earliestEnd |
minimum duration (for actuated)
Definition at line 71 of file NBTrafficLightLogic.h.
Referenced by operator!=().
| SUMOTime NBTrafficLightLogic::PhaseDefinition::latestEnd |
maximum duration duration (for actuated)
Definition at line 74 of file NBTrafficLightLogic.h.
Referenced by operator!=().
| SUMOTime NBTrafficLightLogic::PhaseDefinition::maxDur |
maximum duration duration (for actuated)
Definition at line 68 of file NBTrafficLightLogic.h.
Referenced by operator!=().
| SUMOTime NBTrafficLightLogic::PhaseDefinition::minDur |
minimum duration (for actuated)
Definition at line 65 of file NBTrafficLightLogic.h.
Referenced by operator!=().
| std::string NBTrafficLightLogic::PhaseDefinition::name |
| std::vector<int> NBTrafficLightLogic::PhaseDefinition::next |
next phase indices or empty list
Definition at line 86 of file NBTrafficLightLogic.h.
Referenced by operator!=().
| SUMOTime NBTrafficLightLogic::PhaseDefinition::red |
red (for NEMA)
Definition at line 83 of file NBTrafficLightLogic.h.
| std::string NBTrafficLightLogic::PhaseDefinition::state |
The state definition.
Definition at line 62 of file NBTrafficLightLogic.h.
Referenced by operator!=().
| SUMOTime NBTrafficLightLogic::PhaseDefinition::vehExt |
veh ext (for NEMA)
Definition at line 77 of file NBTrafficLightLogic.h.
| SUMOTime NBTrafficLightLogic::PhaseDefinition::yellow |
yellow (for NEMA)
Definition at line 80 of file NBTrafficLightLogic.h.