Eclipse SUMO - Simulation of Urban MObility
NBTrafficLightLogic::PhaseDefinition Class Reference

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 (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. More...
 
 ~PhaseDefinition ()
 Destructor. More...
 

Data Fields

SUMOTime duration
 The duration of the phase in s. More...
 
SUMOTime earliestEnd
 minimum duration (for actuated) More...
 
SUMOTime latestEnd
 maximum duration duration (for actuated) More...
 
SUMOTime maxDur
 maximum duration duration (for actuated) More...
 
SUMOTime minDur
 minimum duration (for actuated) More...
 
std::string name
 option phase name More...
 
std::vector< int > next
 next phase indices or empty list More...
 
SUMOTime red
 red (for NEMA) More...
 
std::string state
 The state definition. More...
 
SUMOTime vehExt
 veh ext (for NEMA) More...
 
SUMOTime yellow
 yellow (for NEMA) More...
 

Detailed Description

The definition of a single phase of the logic.

Definition at line 55 of file NBTrafficLightLogic.h.

Constructor & Destructor Documentation

◆ PhaseDefinition()

NBTrafficLightLogic::PhaseDefinition::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_ 
)
inline

Constructor.

Parameters
[in]durationArgThe duration of the phase
[in]stateArgSignals per link

Definition at line 95 of file NBTrafficLightLogic.h.

◆ ~PhaseDefinition()

NBTrafficLightLogic::PhaseDefinition::~PhaseDefinition ( )
inline

Destructor.

Definition at line 112 of file NBTrafficLightLogic.h.

Member Function Documentation

◆ operator!=()

bool NBTrafficLightLogic::PhaseDefinition::operator!= ( const PhaseDefinition pd) const
inline

Comparison operator.

Parameters
[in]pdA second phase
Returns
Whether this and the given phases are same

Definition at line 118 of file NBTrafficLightLogic.h.

References duration, earliestEnd, latestEnd, maxDur, minDur, name, next, and state.

Field Documentation

◆ duration

SUMOTime NBTrafficLightLogic::PhaseDefinition::duration

The duration of the phase in s.

Definition at line 59 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ earliestEnd

SUMOTime NBTrafficLightLogic::PhaseDefinition::earliestEnd

minimum duration (for actuated)

Definition at line 71 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ latestEnd

SUMOTime NBTrafficLightLogic::PhaseDefinition::latestEnd

maximum duration duration (for actuated)

Definition at line 74 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ maxDur

SUMOTime NBTrafficLightLogic::PhaseDefinition::maxDur

maximum duration duration (for actuated)

Definition at line 68 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ minDur

SUMOTime NBTrafficLightLogic::PhaseDefinition::minDur

minimum duration (for actuated)

Definition at line 65 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ name

std::string NBTrafficLightLogic::PhaseDefinition::name

option phase name

Definition at line 89 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ next

std::vector<int> NBTrafficLightLogic::PhaseDefinition::next

next phase indices or empty list

Definition at line 86 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ red

SUMOTime NBTrafficLightLogic::PhaseDefinition::red

red (for NEMA)

Definition at line 83 of file NBTrafficLightLogic.h.

◆ state

std::string NBTrafficLightLogic::PhaseDefinition::state

The state definition.

Definition at line 62 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ vehExt

SUMOTime NBTrafficLightLogic::PhaseDefinition::vehExt

veh ext (for NEMA)

Definition at line 77 of file NBTrafficLightLogic.h.

◆ yellow

SUMOTime NBTrafficLightLogic::PhaseDefinition::yellow

yellow (for NEMA)

Definition at line 80 of file NBTrafficLightLogic.h.


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