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 (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...
 

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 ( SUMOTime  durationArg,
const std::string &  stateArg,
SUMOTime  minDurArg,
SUMOTime  maxDurArg,
const std::vector< int > &  nextArg,
const std::string &  nameArg 
)
inline

Constructor.

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

Definition at line 74 of file NBTrafficLightLogic.h.

◆ ~PhaseDefinition()

NBTrafficLightLogic::PhaseDefinition::~PhaseDefinition ( )
inline

Destructor.

Definition at line 84 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 90 of file NBTrafficLightLogic.h.

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

Field Documentation

◆ duration

SUMOTime NBTrafficLightLogic::PhaseDefinition::duration

The duration of the phase in s.

Definition at line 58 of file NBTrafficLightLogic.h.

Referenced by GNETLSEditorFrame::onCmdPhaseEdit(), and operator!=().

◆ maxDur

SUMOTime NBTrafficLightLogic::PhaseDefinition::maxDur

Definition at line 60 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ minDur

SUMOTime NBTrafficLightLogic::PhaseDefinition::minDur

Definition at line 59 of file NBTrafficLightLogic.h.

Referenced by operator!=().

◆ name

std::string NBTrafficLightLogic::PhaseDefinition::name

option phase name

Definition at line 68 of file NBTrafficLightLogic.h.

Referenced by GNETLSEditorFrame::onCmdPhaseEdit(), and operator!=().

◆ next

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

next phase indices or empty list

Definition at line 66 of file NBTrafficLightLogic.h.

Referenced by GNETLSEditorFrame::onCmdPhaseEdit(), and operator!=().

◆ state

std::string NBTrafficLightLogic::PhaseDefinition::state

The state definition.

Definition at line 63 of file NBTrafficLightLogic.h.

Referenced by GNETLSEditorFrame::onCmdPhaseSwitch(), and operator!=().


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