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.

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

Referenced by operator!=().

Here is the caller graph for this function:

◆ ~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, PhaseDefinition(), 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!=(), and PhaseDefinition().

◆ earliestEnd

SUMOTime NBTrafficLightLogic::PhaseDefinition::earliestEnd

minimum duration (for actuated)

Definition at line 71 of file NBTrafficLightLogic.h.

Referenced by operator!=(), and PhaseDefinition().

◆ latestEnd

SUMOTime NBTrafficLightLogic::PhaseDefinition::latestEnd

maximum duration duration (for actuated)

Definition at line 74 of file NBTrafficLightLogic.h.

Referenced by operator!=(), and PhaseDefinition().

◆ maxDur

SUMOTime NBTrafficLightLogic::PhaseDefinition::maxDur

maximum duration duration (for actuated)

Definition at line 68 of file NBTrafficLightLogic.h.

Referenced by operator!=(), and PhaseDefinition().

◆ minDur

SUMOTime NBTrafficLightLogic::PhaseDefinition::minDur

minimum duration (for actuated)

Definition at line 65 of file NBTrafficLightLogic.h.

Referenced by operator!=(), and PhaseDefinition().

◆ name

std::string NBTrafficLightLogic::PhaseDefinition::name

option phase name

Definition at line 89 of file NBTrafficLightLogic.h.

Referenced by operator!=(), and PhaseDefinition().

◆ next

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

next phase indices or empty list

Definition at line 86 of file NBTrafficLightLogic.h.

Referenced by operator!=(), and PhaseDefinition().

◆ red

SUMOTime NBTrafficLightLogic::PhaseDefinition::red

red (for NEMA)

Definition at line 83 of file NBTrafficLightLogic.h.

Referenced by PhaseDefinition().

◆ state

std::string NBTrafficLightLogic::PhaseDefinition::state

The state definition.

Definition at line 62 of file NBTrafficLightLogic.h.

Referenced by operator!=(), and PhaseDefinition().

◆ vehExt

SUMOTime NBTrafficLightLogic::PhaseDefinition::vehExt

veh ext (for NEMA)

Definition at line 77 of file NBTrafficLightLogic.h.

Referenced by PhaseDefinition().

◆ yellow

SUMOTime NBTrafficLightLogic::PhaseDefinition::yellow

yellow (for NEMA)

Definition at line 80 of file NBTrafficLightLogic.h.

Referenced by PhaseDefinition().


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