Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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.
 
 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)
 

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: