NBTrafficLightLogic::PhaseDefinition Class Reference


Detailed Description

The definition of a single phase of the logic.

Definition at line 111 of file NBTrafficLightLogic.h.


Public Member Functions

bool operator!= (const PhaseDefinition &pd) const throw ()
 Comparison operator.
 PhaseDefinition (SUMOTime durationArg, const std::string &stateArg) throw ()
 Constructor.
 ~PhaseDefinition () throw ()
 Destructor.

Data Fields

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

Constructor & Destructor Documentation

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

Constructor.

Parameters:
[in] durationArg The duration of the phase
[in] stateArg Information which links may drive during the phase
[in] brakeMaskArg Information which links have to decelerate during the phase
[in] yellowMaskArg Information which links have yellow during the phase

Definition at line 125 of file NBTrafficLightLogic.h.

00126                 : duration(durationArg), state(stateArg) { }

NBTrafficLightLogic::PhaseDefinition::~PhaseDefinition (  )  throw () [inline]

Destructor.

Definition at line 129 of file NBTrafficLightLogic.h.

00129 { }


Member Function Documentation

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

Comparison operator.

Parameters:
[in] pd A second phase
Returns:
Whether this and the given phases are same

Definition at line 135 of file NBTrafficLightLogic.h.

00135                                                                  {
00136             return pd.duration != duration || pd.state != state;
00137         }


Field Documentation

The duration of the phase in s.

Definition at line 114 of file NBTrafficLightLogic.h.

The state definition.

Definition at line 117 of file NBTrafficLightLogic.h.


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

Generated on Wed May 5 00:06:52 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6