Eclipse SUMO - Simulation of Urban MObility
NEMAPhase Class Reference

One phase in the NEMAController. More...

#include <NEMAController.h>

Collaboration diagram for NEMAPhase:
[legend]

Data Structures

struct  PhaseDetectorInfo
 stores information about the phase's detector(s) More...
 

Public Types

typedef PhaseDetectorInfo PhaseDetectorInfo
 
typedef NEMAPhasePhasePtr
 Typedef for commonly used phase pointer. More...
 

Public Member Functions

bool callActive (void)
 simple method to check if there is either a recall or an active detector More...
 
void checkMyDetectors (void)
 Check Detectors. Called on all phases at every step. More...
 
void cleanupExit (void)
 public method to set whether phase is active or not More...
 
void clearMyDetectors (void)
 Clear My Detectors. Called on all phases at every step. More...
 
bool controlledIndex (int i)
 Return whether or not the phase index is controlled by me. More...
 
bool detectActive (void)
 simple method to check if a detector is active More...
 
void enterYellow (NEMALogic *controller)
 handles the transition into yellow More...
 
void exit (NEMALogic *controller, PhaseTransitionLogic *nextPhases[2])
 handles the transition out of a phase into the next (puts the phase through (G -> Y -> R) transition More...
 
void forceEnter (NEMALogic *controller)
 Force Enter. This Should only be called at initialization time. More...
 
LightState getCurrentState () const
 gets the current light state More...
 
std::vector< MSE2Collector * > getDetectors () const
 returns a vector of the phases detectors More...
 
char getNEMAChar (int i)
 Return the ryg light string for the phase. More...
 
PhasePtr getSequentialPriorPhase (void)
 get the prior phase More...
 
PhaseTransitionLogicgetTransition (int toPhase)
 return the PhaseTransitionLogic matching the toPhase More...
 
SUMOTime getTransitionTime (NEMALogic *controller)
 Get the Transition Time. More...
 
SUMOTime getTransitionTimeStateless (void)
 Get the Transition time given. More...
 
void handleGreenRestOrTransfer (NEMALogic *controller, PhaseTransitionLogic *nextPhases[2])
 handles the transition into a green rest state More...
 
void handleRedXferOrNextPhase (NEMALogic *controller, PhaseTransitionLogic *nextPhases[2])
 handles the transition into a red xfer state, which is roughly the same as green rest More...
 
bool hasRecall (void)
 simple method to check if there is a recall on the phase. More...
 
void init (NEMALogic *controller, int crossPhaseTarget, int crossPhaseSource, bool latching)
 initializes the object More...
 
bool isTransitionActive () const
 check if a transition is active More...
 
 NEMAPhase (int phaseName, bool isBarrier, bool isGreenRest, bool isCoordinated, bool minRecall, bool maxRecall, bool fixForceOff, int barrierNum, int ringNum, IntVector phaseStringInds, MSPhaseDefinition *phase)
 Construct a new NEMAPhase object. More...
 
bool okay2ForceSwitch (NEMALogic *controller)
 simple internal check to see if done okay to transition More...
 
void recalculateTiming (void)
 accessory function to recalculate timing More...
 
void setDetectors (std::vector< MSE2Collector * > detectors)
 sets the detectors for the phase More...
 
void setSequentialPriorPhase (PhasePtr priorPhase)
 set the prior phase More...
 
std::vector< PhaseTransitionLogic * > trySwitch (NEMALogic *controller)
 calculate a vector of potention next phases More...
 
void update (NEMALogic *controller)
 update is called on the active phases by the NEMAController at every time step More...
 
 ~NEMAPhase ()
 Destructor. More...
 

Data Fields

int barrierNum
 
bool coordinatePhase
 
bool fixForceOff
 
SUMOTime forceOffTime
 stores the force off time in coordinated mode More...
 
SUMOTime greatestStartTime
 
SUMOTime greenRestTimer
 a count down timer to track green rest transition time More...
 
bool isAtBarrier
 
bool isGreenRest
 
bool lastDetectActive
 store the last detect check for traci purposes More...
 
bool maxRecall
 
bool minRecall
 
int phaseName
 
bool readyToSwitch
 flag to for the supervisory controller to denote whether phase is ready to switch or not. More...
 
int ringNum
 
Basic Phase Timing Parameters
SUMOTime yellow
 
SUMOTime red
 
SUMOTime minDuration
 
SUMOTime maxDuration
 
SUMOTime nextMaxDuration
 
SUMOTime vehExt
 

Private Attributes

MSPhaseDefinitionmyCorePhase = nullptr
 A reference to the core phase of which NEMAPhase wraps. More...
 
PhaseDetectorInfo myDetectorInfo
 
LightState myLightState
 
store references to myself, the last phase I was in, and the sequentially next phase
PhasePtr myInstance = nullptr
 
PhasePtr myLastPhaseInstance = nullptr
 
PhasePtr sequentialPriorPhase = nullptr
 
Timing Parameters
SUMOTime maxGreenDynamic
 
SUMOTime myStartTime
 
SUMOTime myExpectedDuration
 
SUMOTime myLastEnd
 

Light String Parameters

IntVector myPhaseStringInds
 
std::string myGreenString
 
std::string myYellowString
 
std::string myRedString
 
std::vector< PhaseTransitionLogic * > myTransitions
 stores a sorted list of potential transitions More...
 
bool transitionActive
 variable to store whether a transition is active or not More...
 
PhaseTransitionLogiclastTransitionDecision
 pointer to save the last transition More...
 
SUMOTime calcVehicleExtension (SUMOTime duration)
 } More...
 
void enter (NEMALogic *controller, PhasePtr lastPhase)
 handles entry to the phase during simulation Sets the color to green and determines maximum duration More...
 
void setMyNEMAStates (void)
 this function replaces getNEMAStates calculation at every call It sets my myGreenString, myYellowString, and myRedString on class creation More...
 

Detailed Description

One phase in the NEMAController.

This represents one phase and all its parameters in a NEMA traffic light The phase ultimately controls its transition to the next phase, and is resbonisble for determining the valid transitions given its current state

Definition at line 554 of file NEMAController.h.

Member Typedef Documentation

◆ PhaseDetectorInfo

◆ PhasePtr

Typedef for commonly used phase pointer.

Definition at line 557 of file NEMAController.h.

Constructor & Destructor Documentation

◆ NEMAPhase()

NEMAPhase::NEMAPhase ( int  phaseName,
bool  isBarrier,
bool  isGreenRest,
bool  isCoordinated,
bool  minRecall,
bool  maxRecall,
bool  fixForceOff,
int  barrierNum,
int  ringNum,
IntVector  phaseStringInds,
MSPhaseDefinition phase 
)

Construct a new NEMAPhase object.

Parameters
phaseNamethe "name" of the phase as an integer
isBarrierif the phase is located at a barrier or not
isGreenRestif it is a phase in which the traffic signal can green rest
isCoordinatedif it is a coordinated phase
minRecallwhether or not the phase has minimum recall or not
maxRecallwhether or not the phase has maximum recall or not
fixForceOffif the phase has a force off or not
barrierNumthe barrier to which the phase belongs (0 or 1)
ringNumthe ring to which the phase belongs (0 or 1)
phaseStringIndsthe indexes of lanes that I control, ie. "srrrrGG" is {5, 6}
phasethe MSPhaseDefinition base class

Definition at line 1233 of file NEMAController.cpp.

References forceOffTime, greenRestTimer, lastDetectActive, MSPhaseDefinition::maxDuration, maxGreenDynamic, MSPhaseDefinition::minDuration, myCorePhase, myExpectedDuration, myInstance, myLastEnd, myLastPhaseInstance, myLightState, myStartTime, readyToSwitch, Red, sequentialPriorPhase, setMyNEMAStates(), TIME2STEPS, and transitionActive.

◆ ~NEMAPhase()

NEMAPhase::~NEMAPhase ( )

Destructor.

Definition at line 1271 of file NEMAController.cpp.

References myTransitions.

Member Function Documentation

◆ calcVehicleExtension()

SUMOTime NEMAPhase::calcVehicleExtension ( SUMOTime  duration)
private

}

Applies the vehicle extension timer if appropriate

Parameters
durationthe current phase duration
Returns
SUMOTime

Definition at line 1529 of file NEMAController.cpp.

References NEMAPhase::PhaseDetectorInfo::detectActive, MAX2(), maxGreenDynamic, MIN2(), minDuration, myDetectorInfo, myExpectedDuration, and vehExt.

Referenced by update().

Here is the caller graph for this function:

◆ callActive()

bool NEMAPhase::callActive ( void  )
inline

simple method to check if there is either a recall or an active detector

Definition at line 694 of file NEMAController.h.

References NEMAPhase::PhaseDetectorInfo::detectActive, maxRecall, minRecall, and myDetectorInfo.

Referenced by PhaseTransitionLogic::freeBase().

Here is the caller graph for this function:

◆ checkMyDetectors()

◆ cleanupExit()

void NEMAPhase::cleanupExit ( void  )
inline

public method to set whether phase is active or not

Definition at line 803 of file NEMAController.h.

References myLightState, readyToSwitch, Red, and transitionActive.

Referenced by enter().

Here is the caller graph for this function:

◆ clearMyDetectors()

void NEMAPhase::clearMyDetectors ( void  )

Clear My Detectors. Called on all phases at every step.

Definition at line 1342 of file NEMAController.cpp.

References NEMAPhase::PhaseDetectorInfo::detectActive, Green, lastDetectActive, NEMAPhase::PhaseDetectorInfo::latching, myDetectorInfo, and myLightState.

◆ controlledIndex()

bool NEMAPhase::controlledIndex ( int  i)
inline

Return whether or not the phase index is controlled by me.

Definition at line 788 of file NEMAController.h.

References myPhaseStringInds.

◆ detectActive()

bool NEMAPhase::detectActive ( void  )
inline

simple method to check if a detector is active

Definition at line 699 of file NEMAController.h.

References NEMAPhase::PhaseDetectorInfo::detectActive, and myDetectorInfo.

◆ enter()

void NEMAPhase::enter ( NEMALogic controller,
PhasePtr  lastPhase 
)
private

handles entry to the phase during simulation Sets the color to green and determines maximum duration

Parameters
controllera reference to the controller
lastPhasea reference to the last phase

Definition at line 1385 of file NEMAController.cpp.

References cleanupExit(), NEMALogic::coordinateMode, coordinatePhase, NEMALogic::coordinatePhaseObjs, fixForceOff, forceOffTime, NEMALogic::getCurrentCycleLength(), NEMALogic::getCurrentTime(), Named::getID(), NEMALogic::getTimeInCycle(), Green, GreenRest, greenRestTimer, NEMALogic::implementTraciChanges(), isGreenRest, lastTransitionDecision, maxDuration, maxGreenDynamic, maxRecall, MIN2(), minDuration, NEMALogic::ModeCycle(), myExpectedDuration, myLastPhaseInstance, myLightState, myStartTime, phaseName, readyToSwitch, ringNum, NEMALogic::setActivePhase(), and SIMTIME.

Referenced by forceEnter(), handleRedXferOrNextPhase(), and update().

Here is the caller graph for this function:

◆ enterYellow()

void NEMAPhase::enterYellow ( NEMALogic controller)

handles the transition into yellow

Parameters
controllera reference to the NEMAController

Definition at line 1463 of file NEMAController.cpp.

References NEMALogic::getCurrentTime(), myLastEnd, myLightState, transitionActive, and Yellow.

Referenced by exit().

Here is the caller graph for this function:

◆ exit()

void NEMAPhase::exit ( NEMALogic controller,
PhaseTransitionLogic nextPhases[2] 
)

handles the transition out of a phase into the next (puts the phase through (G -> Y -> R) transition

Parameters
controllera reference to the NEMAController
nextPhasesthe next phases that the controller wants to transition to

Definition at line 1437 of file NEMAController.cpp.

References enterYellow(), NEMALogic::getCurrentTime(), Green, handleGreenRestOrTransfer(), handleRedXferOrNextPhase(), lastTransitionDecision, myLastEnd, myLightState, Red, red, ringNum, and yellow.

◆ forceEnter()

void NEMAPhase::forceEnter ( NEMALogic controller)
inline

Force Enter. This Should only be called at initialization time.

Definition at line 783 of file NEMAController.h.

References enter(), and sequentialPriorPhase.

Referenced by NEMALogic::calculateInitialPhases170(), and NEMALogic::constructTimingAndPhaseDefs().

Here is the caller graph for this function:

◆ getCurrentState()

LightState NEMAPhase::getCurrentState ( ) const
inline

gets the current light state

Definition at line 621 of file NEMAController.h.

References myLightState.

Referenced by checkMyDetectors(), PhaseTransitionLogic::fromBarrier(), NEMALogic::getDefaultTransition(), PhaseTransitionLogic::getDistance(), handleGreenRestOrTransfer(), PhaseTransitionLogic::okay(), and update().

Here is the caller graph for this function:

◆ getDetectors()

std::vector<MSE2Collector*> NEMAPhase::getDetectors ( ) const
inline

returns a vector of the phases detectors

Definition at line 625 of file NEMAController.h.

References NEMAPhase::PhaseDetectorInfo::detectors, and myDetectorInfo.

Referenced by checkMyDetectors().

Here is the caller graph for this function:

◆ getNEMAChar()

char NEMAPhase::getNEMAChar ( int  i)

Return the ryg light string for the phase.

Definition at line 1316 of file NEMAController.cpp.

References Green, myGreenString, myLightState, myRedString, myYellowString, and Red.

◆ getSequentialPriorPhase()

PhasePtr NEMAPhase::getSequentialPriorPhase ( void  )
inline

get the prior phase

Definition at line 751 of file NEMAController.h.

References sequentialPriorPhase.

Referenced by NEMALogic::calculateInitialPhases170(), and PhaseTransitionLogic::fromCoord().

Here is the caller graph for this function:

◆ getTransition()

PhaseTransitionLogic * NEMAPhase::getTransition ( int  toPhase)

return the PhaseTransitionLogic matching the toPhase

Parameters
toPhasea integer representing the target phase
Returns
PhaseTransitionLogic*

Definition at line 1607 of file NEMAController.cpp.

References myTransitions.

Referenced by NEMALogic::getDefaultTransition().

Here is the caller graph for this function:

◆ getTransitionTime()

SUMOTime NEMAPhase::getTransitionTime ( NEMALogic controller)

Get the Transition Time.

Parameters
controller
Returns
SUMOTime

Definition at line 1515 of file NEMAController.cpp.

References NEMALogic::getCurrentTime(), getTransitionTimeStateless(), MAX2(), myLastEnd, myLightState, red, RedXfer, TIME2STEPS, transitionActive, and yellow.

Referenced by PhaseTransitionLogic::coordBase(), PhaseTransitionLogic::fromCoord(), and okay2ForceSwitch().

Here is the caller graph for this function:

◆ getTransitionTimeStateless()

SUMOTime NEMAPhase::getTransitionTimeStateless ( void  )
inline

Get the Transition time given.

Parameters
controller
Returns
SUMOTime

Definition at line 746 of file NEMAController.h.

References red, and yellow.

Referenced by getTransitionTime().

Here is the caller graph for this function:

◆ handleGreenRestOrTransfer()

void NEMAPhase::handleGreenRestOrTransfer ( NEMALogic controller,
PhaseTransitionLogic nextPhases[2] 
)

handles the transition into a green rest state

Parameters
controllera reference to the NEMAController
nextPhasesthe next phases that the controller wants to transition to

Definition at line 1495 of file NEMAController.cpp.

References getCurrentState(), NEMALogic::getCurrentTime(), NEMALogic::getOtherPhase(), PhaseTransitionLogic::getToPhase(), GreenRest, greenRestTimer, GreenXfer, isAtBarrier, isGreenRest, maxDuration, minDuration, myExpectedDuration, myLightState, myStartTime, readyToSwitch, and ringNum.

Referenced by exit().

Here is the caller graph for this function:

◆ handleRedXferOrNextPhase()

void NEMAPhase::handleRedXferOrNextPhase ( NEMALogic controller,
PhaseTransitionLogic nextPhases[2] 
)

handles the transition into a red xfer state, which is roughly the same as green rest

Parameters
controllera reference to the NEMAController

Definition at line 1469 of file NEMAController.cpp.

References barrierNum, enter(), NEMALogic::getOtherPhase(), PhaseTransitionLogic::getToPhase(), myLightState, okay2ForceSwitch(), readyToSwitch, RedXfer, ringNum, and transitionActive.

Referenced by exit().

Here is the caller graph for this function:

◆ hasRecall()

bool NEMAPhase::hasRecall ( void  )
inline

simple method to check if there is a recall on the phase.

Definition at line 689 of file NEMAController.h.

References maxRecall, and minRecall.

◆ init()

void NEMAPhase::init ( NEMALogic controller,
int  crossPhaseTarget,
int  crossPhaseSource,
bool  latching 
)

initializes the object

Parameters
controllera pointer to the controller object
crossPhaseTargetthe cross phase switching target
crossPhaseSourcethe cross phase switching source
latchingwhether the phase has latching detectors or not

Definition at line 1279 of file NEMAController.cpp.

References NEMALogic::getPhaseObj(), NEMALogic::getPhasesByRing(), NEMALogic::measureRingDistance(), myDetectorInfo, myTransitions, phaseName, recalculateTiming(), and ringNum.

◆ isTransitionActive()

bool NEMAPhase::isTransitionActive ( ) const
inline

check if a transition is active

Definition at line 636 of file NEMAController.h.

References Green, and myLightState.

Referenced by PhaseTransitionLogic::fromCoord().

Here is the caller graph for this function:

◆ okay2ForceSwitch()

bool NEMAPhase::okay2ForceSwitch ( NEMALogic controller)
inline

simple internal check to see if done okay to transition

Definition at line 810 of file NEMAController.h.

References getTransitionTime(), readyToSwitch, TIME2STEPS, and transitionActive.

Referenced by handleRedXferOrNextPhase().

Here is the caller graph for this function:

◆ recalculateTiming()

void NEMAPhase::recalculateTiming ( void  )

accessory function to recalculate timing

Definition at line 1302 of file NEMAController.cpp.

References MSPhaseDefinition::maxDuration, maxDuration, maxGreenDynamic, MSPhaseDefinition::minDuration, minDuration, myCorePhase, nextMaxDuration, MSPhaseDefinition::red, red, MSPhaseDefinition::vehext, vehExt, MSPhaseDefinition::yellow, and yellow.

Referenced by init().

Here is the caller graph for this function:

◆ setDetectors()

void NEMAPhase::setDetectors ( std::vector< MSE2Collector * >  detectors)
inline

sets the detectors for the phase

Definition at line 631 of file NEMAController.h.

References NEMAPhase::PhaseDetectorInfo::detectors, and myDetectorInfo.

Referenced by NEMALogic::init().

Here is the caller graph for this function:

◆ setMyNEMAStates()

void NEMAPhase::setMyNEMAStates ( void  )
private

this function replaces getNEMAStates calculation at every call It sets my myGreenString, myYellowString, and myRedString on class creation

Definition at line 1327 of file NEMAController.cpp.

References MSPhaseDefinition::getState(), myCorePhase, myGreenString, myRedString, and myYellowString.

Referenced by NEMAPhase().

Here is the caller graph for this function:

◆ setSequentialPriorPhase()

void NEMAPhase::setSequentialPriorPhase ( PhasePtr  priorPhase)
inline

set the prior phase

Definition at line 756 of file NEMAController.h.

References sequentialPriorPhase.

◆ trySwitch()

std::vector< PhaseTransitionLogic * > NEMAPhase::trySwitch ( NEMALogic controller)

calculate a vector of potention next phases

Parameters
controller
Returns
std::vector<PhaseTransitionLogic*>

Definition at line 1620 of file NEMAController.cpp.

References barrierNum, PhaseTransitionLogic::getToPhase(), lastTransitionDecision, myTransitions, and readyToSwitch.

◆ update()

void NEMAPhase::update ( NEMALogic controller)

Field Documentation

◆ barrierNum

◆ coordinatePhase

bool NEMAPhase::coordinatePhase

◆ fixForceOff

bool NEMAPhase::fixForceOff

Definition at line 717 of file NEMAController.h.

Referenced by enter().

◆ forceOffTime

SUMOTime NEMAPhase::forceOffTime

stores the force off time in coordinated mode

Definition at line 727 of file NEMAController.h.

Referenced by NEMALogic::calculateForceOffs170(), PhaseTransitionLogic::coordBase(), enter(), PhaseTransitionLogic::fromCoord(), NEMAPhase(), and update().

◆ greatestStartTime

SUMOTime NEMAPhase::greatestStartTime

Definition at line 725 of file NEMAController.h.

Referenced by NEMALogic::calculateInitialPhases170().

◆ greenRestTimer

SUMOTime NEMAPhase::greenRestTimer

a count down timer to track green rest transition time

Definition at line 724 of file NEMAController.h.

Referenced by enter(), handleGreenRestOrTransfer(), NEMAPhase(), and update().

◆ isAtBarrier

bool NEMAPhase::isAtBarrier

Definition at line 711 of file NEMAController.h.

Referenced by handleGreenRestOrTransfer(), and PhaseTransitionLogic::okay().

◆ isGreenRest

bool NEMAPhase::isGreenRest

Definition at line 712 of file NEMAController.h.

Referenced by enter(), and handleGreenRestOrTransfer().

◆ lastDetectActive

bool NEMAPhase::lastDetectActive

store the last detect check for traci purposes

Definition at line 721 of file NEMAController.h.

Referenced by clearMyDetectors(), and NEMAPhase().

◆ lastTransitionDecision

PhaseTransitionLogic* NEMAPhase::lastTransitionDecision
private

pointer to save the last transition

Definition at line 875 of file NEMAController.h.

Referenced by enter(), exit(), and trySwitch().

◆ maxDuration

SUMOTime NEMAPhase::maxDuration

Definition at line 797 of file NEMAController.h.

Referenced by enter(), handleGreenRestOrTransfer(), recalculateTiming(), and update().

◆ maxGreenDynamic

SUMOTime NEMAPhase::maxGreenDynamic
private

Definition at line 831 of file NEMAController.h.

Referenced by calcVehicleExtension(), enter(), NEMAPhase(), recalculateTiming(), and update().

◆ maxRecall

bool NEMAPhase::maxRecall

Definition at line 716 of file NEMAController.h.

Referenced by callActive(), enter(), and hasRecall().

◆ minDuration

◆ minRecall

bool NEMAPhase::minRecall

Definition at line 715 of file NEMAController.h.

Referenced by callActive(), and hasRecall().

◆ myCorePhase

MSPhaseDefinition* NEMAPhase::myCorePhase = nullptr
private

A reference to the core phase of which NEMAPhase wraps.

Definition at line 816 of file NEMAController.h.

Referenced by NEMAPhase(), recalculateTiming(), and setMyNEMAStates().

◆ myDetectorInfo

◆ myExpectedDuration

SUMOTime NEMAPhase::myExpectedDuration
private

◆ myGreenString

std::string NEMAPhase::myGreenString
private

Definition at line 840 of file NEMAController.h.

Referenced by getNEMAChar(), and setMyNEMAStates().

◆ myInstance

PhasePtr NEMAPhase::myInstance = nullptr
private

Definition at line 820 of file NEMAController.h.

Referenced by NEMAPhase().

◆ myLastEnd

SUMOTime NEMAPhase::myLastEnd
private

Definition at line 834 of file NEMAController.h.

Referenced by enterYellow(), exit(), getTransitionTime(), and NEMAPhase().

◆ myLastPhaseInstance

PhasePtr NEMAPhase::myLastPhaseInstance = nullptr
private

Definition at line 821 of file NEMAController.h.

Referenced by enter(), and NEMAPhase().

◆ myLightState

◆ myPhaseStringInds

IntVector NEMAPhase::myPhaseStringInds
private

Definition at line 839 of file NEMAController.h.

Referenced by controlledIndex().

◆ myRedString

std::string NEMAPhase::myRedString
private

Definition at line 842 of file NEMAController.h.

Referenced by getNEMAChar(), and setMyNEMAStates().

◆ myStartTime

SUMOTime NEMAPhase::myStartTime
private

Definition at line 832 of file NEMAController.h.

Referenced by enter(), handleGreenRestOrTransfer(), NEMAPhase(), and update().

◆ myTransitions

std::vector<PhaseTransitionLogic*> NEMAPhase::myTransitions
private

stores a sorted list of potential transitions

Definition at line 854 of file NEMAController.h.

Referenced by getTransition(), init(), trySwitch(), and ~NEMAPhase().

◆ myYellowString

std::string NEMAPhase::myYellowString
private

Definition at line 841 of file NEMAController.h.

Referenced by getNEMAChar(), and setMyNEMAStates().

◆ nextMaxDuration

SUMOTime NEMAPhase::nextMaxDuration

Definition at line 798 of file NEMAController.h.

Referenced by recalculateTiming().

◆ phaseName

int NEMAPhase::phaseName

◆ readyToSwitch

◆ red

SUMOTime NEMAPhase::red

◆ ringNum

◆ sequentialPriorPhase

PhasePtr NEMAPhase::sequentialPriorPhase = nullptr
private

◆ transitionActive

bool NEMAPhase::transitionActive
private

variable to store whether a transition is active or not

Definition at line 872 of file NEMAController.h.

Referenced by cleanupExit(), enterYellow(), getTransitionTime(), handleRedXferOrNextPhase(), NEMAPhase(), and okay2ForceSwitch().

◆ vehExt

SUMOTime NEMAPhase::vehExt

Definition at line 799 of file NEMAController.h.

Referenced by calcVehicleExtension(), and recalculateTiming().

◆ yellow

SUMOTime NEMAPhase::yellow

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