SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 (SUMOTime durationArg, const std::string &stateArg)
 Constructor.
 ~PhaseDefinition ()
 Destructor.

Data Fields

SUMOTime duration
 The duration of the phase in s.
std::string state
 The state definition.

Detailed Description

The definition of a single phase of the logic.

Definition at line 64 of file NBTrafficLightLogic.h.


Constructor & Destructor Documentation

NBTrafficLightLogic::PhaseDefinition::PhaseDefinition ( SUMOTime  durationArg,
const std::string &  stateArg 
)
inline

Constructor.

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

Definition at line 76 of file NBTrafficLightLogic.h.

NBTrafficLightLogic::PhaseDefinition::~PhaseDefinition ( )
inline

Destructor.

Definition at line 80 of file NBTrafficLightLogic.h.


Member Function Documentation

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 86 of file NBTrafficLightLogic.h.

References duration, and state.


Field Documentation

SUMOTime NBTrafficLightLogic::PhaseDefinition::duration

The duration of the phase in s.

Definition at line 67 of file NBTrafficLightLogic.h.

Referenced by operator!=().

std::string NBTrafficLightLogic::PhaseDefinition::state

The state definition.

Definition at line 70 of file NBTrafficLightLogic.h.

Referenced by operator!=().


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