![]() |
Eclipse SUMO - Simulation of Urban MObility
|
One phase in the NEMAController. More...
#include <NEMAController.h>
Data Structures | |
| struct | PhaseDetectorInfo |
| stores information about the phase's detector(s) More... | |
Public Types | |
| typedef PhaseDetectorInfo | PhaseDetectorInfo |
| typedef NEMAPhase * | PhasePtr |
| Typedef for commonly used phase pointer. | |
Public Member Functions | |
| bool | callActive (void) |
| simple method to check if there is either a recall or an active detector | |
| void | checkMyDetectors (void) |
| Check Detectors. Called on all phases at every step. | |
| void | cleanupExit (void) |
| public method to set whether phase is active or not | |
| void | clearMyDetectors (void) |
| Clear My Detectors. Called on all phases at every step. | |
| bool | controlledIndex (int i) |
| Return whether or not the phase index is controlled by me. | |
| bool | crossFits (NEMALogic *controller, NEMAPhase *toPhase) |
| for a coordinated or lagging phase in a plan with a lagging phase: whether this ring may cross the barrier into toPhase now. It must be inside the other side's window (a lagging phase: its own window; a coordinated phase: between its force off and toPhase's), and toPhase's minimum green plus my yellow and red must fit before toPhase's force off | |
| bool | detectActive (void) |
| simple method to check if a detector is active | |
| void | enterYellow (NEMALogic *controller) |
| handles the transition into yellow | |
| 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 | |
| void | forceEnter (NEMALogic *controller) |
| Force Enter. This Should only be called at initialization time. | |
| LightState | getCurrentState () const |
| gets the current light state | |
| std::vector< MSE2Collector * > | getDetectors () const |
| returns a vector of the phases detectors | |
| char | getNEMAChar (int i) |
| Return the ryg light string for the phase. | |
| PhasePtr | getSequentialPriorPhase (void) |
| get the prior phase | |
| PhaseTransitionLogic * | getTransition (int toPhase) |
| return the PhaseTransitionLogic matching the toPhase | |
| SUMOTime | getTransitionTime (NEMALogic *controller) |
| Get the Transition Time. | |
| SUMOTime | getTransitionTimeStateless (void) |
| Get the Transition time given. | |
| void | handleGreenRestOrTransfer (NEMALogic *controller, PhaseTransitionLogic *nextPhases[2]) |
| handles the transition into a green rest state | |
| void | handleRedXferOrNextPhase (NEMALogic *controller, PhaseTransitionLogic *nextPhases[2]) |
| handles the transition into a red xfer state, which is roughly the same as green rest | |
| bool | hasRecall (void) |
| simple method to check if there is a recall on the phase. | |
| bool | holdsForLag (NEMALogic *controller) |
| whether a coordinated phase that is followed by a lagging phase is past its force off but has not reached the barrier yet, so it keeps its green when the lagging phase is not served | |
| void | init (NEMALogic *controller, int crossPhaseTarget, int crossPhaseSource, bool latching) |
| initializes the object | |
| bool | isReserviced () const |
| whether this coordinated phase is being served again in this cycle after its lagging phase gapped out | |
| bool | isTransitionActive () const |
| check if a transition is active | |
| SUMOTime | lagWindowLeft (NEMALogic *controller) |
| for a lagging phase (the barrier phase after a coordinated phase on its side of the barrier): the time left between its coordinated phase's force off and the point where its own yellow and red end at that phase's next start, 0 outside that window, and -1 for any other phase (including all phases outside coordinated mode) | |
| 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. | |
| bool | okay2ForceSwitch (NEMALogic *controller) |
| simple internal check to see if done okay to transition | |
| void | recalculateTiming (void) |
| accessory function to recalculate timing | |
| void | setDetectors (std::vector< MSE2Collector * > detectors) |
| sets the detectors for the phase | |
| void | setSequentialPriorPhase (PhasePtr priorPhase) |
| set the prior phase | |
| std::vector< PhaseTransitionLogic * > | trySwitch (NEMALogic *controller) |
| calculate a vector of potention next phases | |
| void | update (NEMALogic *controller) |
| update is called on the active phases by the NEMAController at every time step | |
| ~NEMAPhase () | |
| Destructor. | |
Data Fields | |
| int | barrierNum |
| bool | coordinatePhase |
| bool | fixForceOff |
| SUMOTime | forceOffTime |
| stores the force off time in coordinated mode | |
| SUMOTime | greatestStartTime |
| SUMOTime | greenRestTimer |
| a count down timer to track green rest transition time | |
| bool | isAtBarrier |
| bool | isGreenRest |
| bool | lastDetectActive |
| store the last detect check for traci purposes | |
| bool | maxRecall |
| bool | minRecall |
| int | phaseName |
| bool | readyToSwitch |
| flag to for the supervisory controller to denote whether phase is ready to switch or not. | |
| bool | reservice |
| whether this coordinated phase is served again in the same cycle when its lagging phase gaps out (reservicePhases) | |
| int | ringNum |
Basic Phase Timing Parameters | |
| SUMOTime | yellow |
| SUMOTime | red |
| SUMOTime | minDuration |
| SUMOTime | maxDuration |
| SUMOTime | nextMaxDuration |
| SUMOTime | vehExt |
Private Attributes | |
| MSPhaseDefinition * | myCorePhase = nullptr |
| A reference to the core phase of which NEMAPhase wraps. | |
| PhaseDetectorInfo | myDetectorInfo |
| LightState | myLightState |
| bool | myReserviced |
| whether this coordinated phase was entered from its lagging phase past its force off (served again in this cycle) | |
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 | |
| bool | transitionActive |
| variable to store whether a transition is active or not | |
| PhaseTransitionLogic * | lastTransitionDecision |
| pointer to save the last transition | |
| SUMOTime | calcVehicleExtension (SUMOTime duration) |
| } | |
| void | enter (NEMALogic *controller, PhasePtr lastPhase) |
| handles entry to the phase during simulation Sets the color to green and determines maximum duration | |
| void | setMyNEMAStates (void) |
| this function replaces getNEMAStates calculation at every call It sets my myGreenString, myYellowString, and myRedString on class creation | |
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 558 of file NEMAController.h.
Definition at line 592 of file NEMAController.h.
| typedef NEMAPhase* NEMAPhase::PhasePtr |
Typedef for commonly used phase pointer.
Definition at line 561 of file NEMAController.h.
| 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.
| phaseName | the "name" of the phase as an integer |
| isBarrier | if the phase is located at a barrier or not |
| isGreenRest | if it is a phase in which the traffic signal can green rest |
| isCoordinated | if it is a coordinated phase |
| minRecall | whether or not the phase has minimum recall or not |
| maxRecall | whether or not the phase has maximum recall or not |
| fixForceOff | if the phase has a force off or not |
| barrierNum | the barrier to which the phase belongs (0 or 1) |
| ringNum | the ring to which the phase belongs (0 or 1) |
| phaseStringInds | the indexes of lanes that I control, ie. "srrrrGG" is {5, 6} |
| phase | the MSPhaseDefinition base class |
Definition at line 1302 of file NEMAController.cpp.
References forceOffTime, greenRestTimer, lastDetectActive, MSPhaseDefinition::maxDuration, maxGreenDynamic, MSPhaseDefinition::minDuration, myCorePhase, myExpectedDuration, myInstance, myLastEnd, myLastPhaseInstance, myLightState, myReserviced, myStartTime, readyToSwitch, Red, reservice, sequentialPriorPhase, setMyNEMAStates(), TIME2STEPS(), and transitionActive.
| NEMAPhase::~NEMAPhase | ( | ) |
}
Applies the vehicle extension timer if appropriate
| duration | the current phase duration |
Definition at line 1624 of file NEMAController.cpp.
References NEMAPhase::PhaseDetectorInfo::detectActive, MAX2(), maxGreenDynamic, MIN2(), minDuration, myDetectorInfo, myExpectedDuration, and vehExt.
Referenced by update().
|
inline |
simple method to check if there is either a recall or an active detector
Definition at line 730 of file NEMAController.h.
References NEMAPhase::PhaseDetectorInfo::detectActive, maxRecall, minRecall, and myDetectorInfo.
Referenced by PhaseTransitionLogic::freeBase().
| void NEMAPhase::checkMyDetectors | ( | void | ) |
Check Detectors. Called on all phases at every step.
Definition at line 1422 of file NEMAController.cpp.
References NEMAPhase::PhaseDetectorInfo::cpdSource, NEMAPhase::PhaseDetectorInfo::cpdTarget, NEMAPhase::PhaseDetectorInfo::detectActive, NEMAPhase::PhaseDetectorInfo::detectors, getCurrentState(), getDetectors(), Green, myDetectorInfo, and myLightState.
|
inline |
public method to set whether phase is active or not
Definition at line 841 of file NEMAController.h.
References myLightState, myReserviced, readyToSwitch, Red, and transitionActive.
Referenced by enter().
| void NEMAPhase::clearMyDetectors | ( | void | ) |
Clear My Detectors. Called on all phases at every step.
Definition at line 1413 of file NEMAController.cpp.
References NEMAPhase::PhaseDetectorInfo::detectActive, Green, lastDetectActive, NEMAPhase::PhaseDetectorInfo::latching, myDetectorInfo, and myLightState.
|
inline |
Return whether or not the phase index is controlled by me.
Definition at line 826 of file NEMAController.h.
References myPhaseStringInds.
for a coordinated or lagging phase in a plan with a lagging phase: whether this ring may cross the barrier into toPhase now. It must be inside the other side's window (a lagging phase: its own window; a coordinated phase: between its force off and toPhase's), and toPhase's minimum green plus my yellow and red must fit before toPhase's force off
| controller | a reference to the controller |
| toPhase | the phase on the other side of the barrier |
Definition at line 1726 of file NEMAController.cpp.
References forceOffTime, NEMALogic::getCurrentCycleLength(), NEMALogic::getTimeInCycle(), getTransitionTime(), lagWindowLeft(), minDuration, and NEMALogic::ModeCycle().
Referenced by PhaseTransitionLogic::fromBarrier(), PhaseTransitionLogic::fromCoord(), and NEMALogic::getDefaultTransition().
|
inline |
simple method to check if a detector is active
Definition at line 735 of file NEMAController.h.
References NEMAPhase::PhaseDetectorInfo::detectActive, and myDetectorInfo.
handles entry to the phase during simulation Sets the color to green and determines maximum duration
| controller | a reference to the controller |
| lastPhase | a reference to the last phase |
Definition at line 1456 of file NEMAController.cpp.
References barrierNum, cleanupExit(), NEMALogic::coordinateMode, coordinatePhase, NEMALogic::coordinatePhaseObjs, fixForceOff, forceOffTime, NEMALogic::getCurrentCycleLength(), NEMALogic::getCurrentTime(), Named::getID(), NEMALogic::getTimeInCycle(), Green, GreenRest, greenRestTimer, NEMALogic::hasLaggingPhase(), NEMALogic::implementTraciChanges(), isGreenRest, lastTransitionDecision, MAX2(), maxDuration, maxGreenDynamic, maxRecall, MIN2(), minDuration, NEMALogic::ModeCycle(), myExpectedDuration, myLastPhaseInstance, myLightState, myReserviced, myStartTime, phaseName, readyToSwitch, reservice, ringNum, NEMALogic::setActivePhase(), and SIMTIME.
Referenced by forceEnter(), handleRedXferOrNextPhase(), and update().
| void NEMAPhase::enterYellow | ( | NEMALogic * | controller | ) |
handles the transition into yellow
| controller | a reference to the NEMAController |
Definition at line 1550 of file NEMAController.cpp.
References NEMALogic::getCurrentTime(), myLastEnd, myLightState, transitionActive, and Yellow.
Referenced by 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
| controller | a reference to the NEMAController |
| nextPhases | the next phases that the controller wants to transition to |
Definition at line 1524 of file NEMAController.cpp.
References enterYellow(), NEMALogic::getCurrentTime(), Green, handleGreenRestOrTransfer(), handleRedXferOrNextPhase(), lastTransitionDecision, myLastEnd, myLightState, Red, red, ringNum, and yellow.
|
inline |
Force Enter. This Should only be called at initialization time.
Definition at line 821 of file NEMAController.h.
References enter(), and sequentialPriorPhase.
Referenced by NEMALogic::calculateInitialPhases170(), and NEMALogic::constructTimingAndPhaseDefs().
|
inline |
gets the current light state
Definition at line 625 of file NEMAController.h.
References myLightState.
Referenced by checkMyDetectors(), PhaseTransitionLogic::fromBarrier(), NEMALogic::getDefaultTransition(), PhaseTransitionLogic::getDistance(), handleGreenRestOrTransfer(), PhaseTransitionLogic::okay(), and update().
|
inline |
returns a vector of the phases detectors
Definition at line 629 of file NEMAController.h.
References NEMAPhase::PhaseDetectorInfo::detectors, and myDetectorInfo.
Referenced by checkMyDetectors().
| char NEMAPhase::getNEMAChar | ( | int | i | ) |
Return the ryg light string for the phase.
Definition at line 1387 of file NEMAController.cpp.
References Green, myGreenString, myLightState, myRedString, myYellowString, and Red.
|
inline |
get the prior phase
Definition at line 789 of file NEMAController.h.
References sequentialPriorPhase.
Referenced by NEMALogic::calculateInitialPhases170(), and PhaseTransitionLogic::fromCoord().
| PhaseTransitionLogic * NEMAPhase::getTransition | ( | int | toPhase | ) |
return the PhaseTransitionLogic matching the toPhase
| toPhase | a integer representing the target phase |
Definition at line 1753 of file NEMAController.cpp.
References myTransitions.
Referenced by NEMALogic::getDefaultTransition().
Get the Transition Time.
| controller |
Definition at line 1610 of file NEMAController.cpp.
References NEMALogic::getCurrentTime(), getTransitionTimeStateless(), MAX2(), myLastEnd, myLightState, red, RedXfer, TIME2STEPS(), transitionActive, and yellow.
Referenced by PhaseTransitionLogic::coordBase(), crossFits(), PhaseTransitionLogic::fromCoord(), and okay2ForceSwitch().
|
inline |
Get the Transition time given.
| controller |
Definition at line 784 of file NEMAController.h.
Referenced by getTransitionTime(), holdsForLag(), and lagWindowLeft().
| void NEMAPhase::handleGreenRestOrTransfer | ( | NEMALogic * | controller, |
| PhaseTransitionLogic * | nextPhases[2] | ||
| ) |
handles the transition into a green rest state
| controller | a reference to the NEMAController |
| nextPhases | the next phases that the controller wants to transition to |
Definition at line 1582 of file NEMAController.cpp.
References getCurrentState(), NEMALogic::getCurrentTime(), NEMALogic::getOtherPhase(), PhaseTransitionLogic::getToPhase(), GreenRest, greenRestTimer, GreenXfer, holdsForLag(), isAtBarrier, isGreenRest, lagWindowLeft(), maxDuration, MIN2(), minDuration, myExpectedDuration, myLightState, myStartTime, readyToSwitch, and ringNum.
Referenced by exit().
| void NEMAPhase::handleRedXferOrNextPhase | ( | NEMALogic * | controller, |
| PhaseTransitionLogic * | nextPhases[2] | ||
| ) |
handles the transition into a red xfer state, which is roughly the same as green rest
| controller | a reference to the NEMAController |
Definition at line 1556 of file NEMAController.cpp.
References barrierNum, enter(), NEMALogic::getOtherPhase(), PhaseTransitionLogic::getToPhase(), myLightState, okay2ForceSwitch(), readyToSwitch, RedXfer, ringNum, and transitionActive.
Referenced by exit().
|
inline |
simple method to check if there is a recall on the phase.
Definition at line 725 of file NEMAController.h.
| bool NEMAPhase::holdsForLag | ( | NEMALogic * | controller | ) |
whether a coordinated phase that is followed by a lagging phase is past its force off but has not reached the barrier yet, so it keeps its green when the lagging phase is not served
| controller | a reference to the controller |
Definition at line 1709 of file NEMAController.cpp.
References barrierNum, coordinatePhase, forceOffTime, NEMALogic::getCurrentCycleLength(), NEMALogic::getPhasesByRing(), NEMALogic::getTimeInCycle(), getTransitionTimeStateless(), isAtBarrier, NEMALogic::ModeCycle(), and ringNum.
Referenced by PhaseTransitionLogic::fromCoord(), NEMALogic::getDefaultTransition(), and handleGreenRestOrTransfer().
| void NEMAPhase::init | ( | NEMALogic * | controller, |
| int | crossPhaseTarget, | ||
| int | crossPhaseSource, | ||
| bool | latching | ||
| ) |
initializes the object
| controller | a pointer to the controller object |
| crossPhaseTarget | the cross phase switching target |
| crossPhaseSource | the cross phase switching source |
| latching | whether the phase has latching detectors or not |
Definition at line 1350 of file NEMAController.cpp.
References NEMALogic::getPhaseObj(), NEMALogic::getPhasesByRing(), NEMALogic::measureRingDistance(), myDetectorInfo, myTransitions, phaseName, recalculateTiming(), and ringNum.
|
inline |
whether this coordinated phase is being served again in this cycle after its lagging phase gapped out
Definition at line 671 of file NEMAController.h.
References myReserviced.
Referenced by PhaseTransitionLogic::fromCoord().
|
inline |
check if a transition is active
Definition at line 640 of file NEMAController.h.
References Green, and myLightState.
Referenced by PhaseTransitionLogic::fromCoord().
for a lagging phase (the barrier phase after a coordinated phase on its side of the barrier): the time left between its coordinated phase's force off and the point where its own yellow and red end at that phase's next start, 0 outside that window, and -1 for any other phase (including all phases outside coordinated mode)
| controller | a reference to the controller |
Definition at line 1736 of file NEMAController.cpp.
References barrierNum, coordinatePhase, NEMALogic::getCurrentCycleLength(), NEMALogic::getPhasesByRing(), NEMALogic::getTimeInCycle(), getTransitionTimeStateless(), isAtBarrier, NEMALogic::ModeCycle(), and ringNum.
Referenced by crossFits(), PhaseTransitionLogic::fromBarrier(), NEMALogic::getDefaultTransition(), and handleGreenRestOrTransfer().
|
inline |
simple internal check to see if done okay to transition
Definition at line 849 of file NEMAController.h.
References getTransitionTime(), readyToSwitch, TIME2STEPS(), and transitionActive.
Referenced by handleRedXferOrNextPhase().
| void NEMAPhase::recalculateTiming | ( | void | ) |
accessory function to recalculate timing
Definition at line 1373 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().
|
inline |
sets the detectors for the phase
Definition at line 635 of file NEMAController.h.
References NEMAPhase::PhaseDetectorInfo::detectors, and myDetectorInfo.
Referenced by NEMALogic::init().
|
private |
this function replaces getNEMAStates calculation at every call It sets my myGreenString, myYellowString, and myRedString on class creation
Definition at line 1398 of file NEMAController.cpp.
References MSPhaseDefinition::getState(), myCorePhase, myGreenString, myRedString, and myYellowString.
Referenced by NEMAPhase().
|
inline |
set the prior phase
Definition at line 794 of file NEMAController.h.
References sequentialPriorPhase.
| std::vector< PhaseTransitionLogic * > NEMAPhase::trySwitch | ( | NEMALogic * | controller | ) |
calculate a vector of potention next phases
| controller |
Definition at line 1766 of file NEMAController.cpp.
References barrierNum, PhaseTransitionLogic::getToPhase(), lastTransitionDecision, myTransitions, and readyToSwitch.
| void NEMAPhase::update | ( | NEMALogic * | controller | ) |
update is called on the active phases by the NEMAController at every time step
| controller | a reference to the controller |
Definition at line 1634 of file NEMAController.cpp.
References calcVehicleExtension(), coordinatePhase, DELTA_T, enter(), forceOffTime, NEMALogic::getCurrentCycleLength(), getCurrentState(), NEMALogic::getCurrentTime(), NEMALogic::getOtherPhase(), NEMALogic::getPhaseObjs(), NEMALogic::getTimeInCycle(), Green, GreenRest, greenRestTimer, GreenXfer, MAX2(), maxDuration, maxGreenDynamic, minDuration, NEMALogic::ModeCycle(), myExpectedDuration, myLightState, myReserviced, myStartTime, phaseName, readyToSwitch, and TIME2STEPS().
| int NEMAPhase::barrierNum |
Definition at line 749 of file NEMAController.h.
Referenced by NEMALogic::calculateInitialPhases170(), NEMALogic::constructTimingAndPhaseDefs(), PhaseTransitionLogic::coordBase(), enter(), PhaseTransitionLogic::freeBase(), PhaseTransitionLogic::fromBarrier(), PhaseTransitionLogic::fromCoord(), NEMALogic::getDefaultTransition(), PhaseTransitionLogic::getDistance(), NEMALogic::getNextPhases(), handleRedXferOrNextPhase(), holdsForLag(), lagWindowLeft(), and trySwitch().
| bool NEMAPhase::coordinatePhase |
Definition at line 750 of file NEMAController.h.
Referenced by PhaseTransitionLogic::coordBase(), enter(), PhaseTransitionLogic::fromBarrier(), NEMALogic::getDefaultTransition(), holdsForLag(), lagWindowLeft(), PhaseTransitionLogic::okay(), and update().
| bool NEMAPhase::fixForceOff |
Definition at line 753 of file NEMAController.h.
Referenced by enter().
| SUMOTime NEMAPhase::forceOffTime |
stores the force off time in coordinated mode
Definition at line 765 of file NEMAController.h.
Referenced by NEMALogic::calculateForceOffs170(), NEMALogic::calculateForceOffsTS2(), PhaseTransitionLogic::coordBase(), crossFits(), enter(), PhaseTransitionLogic::fromCoord(), holdsForLag(), NEMAPhase(), and update().
| SUMOTime NEMAPhase::greatestStartTime |
Definition at line 763 of file NEMAController.h.
Referenced by NEMALogic::calculateInitialPhases170().
| SUMOTime NEMAPhase::greenRestTimer |
a count down timer to track green rest transition time
Definition at line 762 of file NEMAController.h.
Referenced by enter(), handleGreenRestOrTransfer(), NEMAPhase(), and update().
| bool NEMAPhase::isAtBarrier |
Definition at line 747 of file NEMAController.h.
Referenced by NEMALogic::constructTimingAndPhaseDefs(), PhaseTransitionLogic::fromBarrier(), PhaseTransitionLogic::fromCoord(), handleGreenRestOrTransfer(), NEMALogic::hasLaggingPhase(), holdsForLag(), lagWindowLeft(), and PhaseTransitionLogic::okay().
| bool NEMAPhase::isGreenRest |
Definition at line 748 of file NEMAController.h.
Referenced by enter(), and handleGreenRestOrTransfer().
| bool NEMAPhase::lastDetectActive |
store the last detect check for traci purposes
Definition at line 759 of file NEMAController.h.
Referenced by clearMyDetectors(), and NEMAPhase().
|
private |
pointer to save the last transition
Definition at line 917 of file NEMAController.h.
Referenced by enter(), exit(), and trySwitch().
| SUMOTime NEMAPhase::maxDuration |
Definition at line 835 of file NEMAController.h.
Referenced by NEMALogic::calculateForceOffsTS2(), enter(), handleGreenRestOrTransfer(), recalculateTiming(), and update().
|
private |
Definition at line 870 of file NEMAController.h.
Referenced by calcVehicleExtension(), enter(), NEMAPhase(), recalculateTiming(), and update().
| bool NEMAPhase::maxRecall |
Definition at line 752 of file NEMAController.h.
Referenced by callActive(), enter(), and hasRecall().
| SUMOTime NEMAPhase::minDuration |
Definition at line 834 of file NEMAController.h.
Referenced by calcVehicleExtension(), PhaseTransitionLogic::coordBase(), crossFits(), enter(), PhaseTransitionLogic::fromCoord(), handleGreenRestOrTransfer(), recalculateTiming(), and update().
| bool NEMAPhase::minRecall |
Definition at line 751 of file NEMAController.h.
Referenced by callActive(), and hasRecall().
|
private |
A reference to the core phase of which NEMAPhase wraps.
Definition at line 855 of file NEMAController.h.
Referenced by NEMAPhase(), recalculateTiming(), and setMyNEMAStates().
|
private |
Definition at line 866 of file NEMAController.h.
Referenced by calcVehicleExtension(), callActive(), checkMyDetectors(), clearMyDetectors(), detectActive(), getDetectors(), init(), and setDetectors().
|
private |
Definition at line 872 of file NEMAController.h.
Referenced by calcVehicleExtension(), enter(), handleGreenRestOrTransfer(), NEMAPhase(), and update().
|
private |
Definition at line 882 of file NEMAController.h.
Referenced by getNEMAChar(), and setMyNEMAStates().
|
private |
Definition at line 859 of file NEMAController.h.
Referenced by NEMAPhase().
|
private |
Definition at line 873 of file NEMAController.h.
Referenced by enterYellow(), exit(), getTransitionTime(), and NEMAPhase().
|
private |
Definition at line 860 of file NEMAController.h.
Referenced by enter(), and NEMAPhase().
|
private |
Definition at line 865 of file NEMAController.h.
Referenced by checkMyDetectors(), cleanupExit(), clearMyDetectors(), enter(), enterYellow(), exit(), getCurrentState(), getNEMAChar(), getTransitionTime(), handleGreenRestOrTransfer(), handleRedXferOrNextPhase(), isTransitionActive(), NEMAPhase(), and update().
|
private |
Definition at line 881 of file NEMAController.h.
Referenced by controlledIndex().
|
private |
Definition at line 884 of file NEMAController.h.
Referenced by getNEMAChar(), and setMyNEMAStates().
|
private |
whether this coordinated phase was entered from its lagging phase past its force off (served again in this cycle)
Definition at line 877 of file NEMAController.h.
Referenced by cleanupExit(), enter(), isReserviced(), NEMAPhase(), and update().
|
private |
Definition at line 871 of file NEMAController.h.
Referenced by enter(), handleGreenRestOrTransfer(), NEMAPhase(), and update().
|
private |
stores a sorted list of potential transitions
Definition at line 896 of file NEMAController.h.
Referenced by getTransition(), init(), trySwitch(), and ~NEMAPhase().
|
private |
Definition at line 883 of file NEMAController.h.
Referenced by getNEMAChar(), and setMyNEMAStates().
| SUMOTime NEMAPhase::nextMaxDuration |
Definition at line 836 of file NEMAController.h.
Referenced by recalculateTiming().
| int NEMAPhase::phaseName |
Definition at line 746 of file NEMAController.h.
Referenced by NEMALogic::constructTimingAndPhaseDefs(), enter(), NEMALogic::getDefaultTransition(), init(), and update().
| bool NEMAPhase::readyToSwitch |
flag to for the supervisory controller to denote whether phase is ready to switch or not.
Definition at line 768 of file NEMAController.h.
Referenced by cleanupExit(), PhaseTransitionLogic::coordBase(), enter(), PhaseTransitionLogic::freeBase(), PhaseTransitionLogic::fromBarrier(), PhaseTransitionLogic::fromCoord(), NEMALogic::getDefaultTransition(), handleGreenRestOrTransfer(), handleRedXferOrNextPhase(), NEMAPhase(), okay2ForceSwitch(), trySwitch(), and update().
| SUMOTime NEMAPhase::red |
Definition at line 833 of file NEMAController.h.
Referenced by exit(), getTransitionTime(), getTransitionTimeStateless(), and recalculateTiming().
| bool NEMAPhase::reservice |
whether this coordinated phase is served again in the same cycle when its lagging phase gaps out (reservicePhases)
Definition at line 755 of file NEMAController.h.
Referenced by enter(), PhaseTransitionLogic::fromBarrier(), and NEMAPhase().
| int NEMAPhase::ringNum |
Definition at line 756 of file NEMAController.h.
Referenced by enter(), exit(), PhaseTransitionLogic::fromBarrier(), NEMALogic::getDefaultTransition(), NEMALogic::getOtherPhase(), handleGreenRestOrTransfer(), handleRedXferOrNextPhase(), holdsForLag(), init(), lagWindowLeft(), and NEMALogic::setActivePhase().
|
private |
Definition at line 861 of file NEMAController.h.
Referenced by forceEnter(), getSequentialPriorPhase(), NEMAPhase(), and setSequentialPriorPhase().
|
private |
variable to store whether a transition is active or not
Definition at line 914 of file NEMAController.h.
Referenced by cleanupExit(), enterYellow(), getTransitionTime(), handleRedXferOrNextPhase(), NEMAPhase(), and okay2ForceSwitch().
| SUMOTime NEMAPhase::vehExt |
Definition at line 837 of file NEMAController.h.
Referenced by calcVehicleExtension(), and recalculateTiming().
| SUMOTime NEMAPhase::yellow |
Definition at line 832 of file NEMAController.h.
Referenced by exit(), getTransitionTime(), getTransitionTimeStateless(), and recalculateTiming().