|
SUMO - Simulation of Urban MObility
|
#include <MSUnboundActuatedTrafficLightLogic.h>
Public Types | |
| typedef std::map< MSLane *, MSInductLoop * > | InductLoopMap |
| Definition of a map from lanes to induct loops lying on them. | |
| typedef std::map< MSLane *, MSLaneState * > | LaneStateMap |
| Definition of a map from lanes to lane state detectors lying on them. | |
Structure definitions | |
| typedef std::vector < MSPhaseDefinition * > | Phases |
| Definition of a list of phases, being the junction logic. | |
| typedef std::vector< MSLink * > | LinkVector |
| Definition of the list of links that participate in this tl-light. | |
| typedef std::vector< LinkVector > | LinkVectorVector |
| Definition of a list that holds lists of links that do have the same attribute. | |
| typedef std::vector< MSLane * > | LaneVector |
| Definition of the list of links that participate in this tl-light. | |
| typedef std::vector< LaneVector > | LaneVectorVector |
| Definition of a list that holds lists of links that do have the same attribute. | |
Public Member Functions | |
| SUMOTime | duration () const |
| Returns the duration of the given step. | |
| bool | gapControl () |
| Desides, whether a phase should be continued by checking the gaps of vehicles having green. | |
| void | init (NLDetectorBuilder &nb, const std::vector< MSLane * > &lanes, std::map< std::string, std::vector< std::string > > &edgeContinuations, SUMOReal det_offset) |
| Initialises the tls with information about incoming lanes. | |
| virtual void | init (NLDetectorBuilder &nb) |
| Initialises the tls with information about incoming lanes. | |
| bool | isGreenPhase () const |
| MSUnboundActuatedTrafficLightLogic (const std::string &id, const MSSimpleTrafficLightLogic::Phases &phases, size_t step, size_t delay, SUMOReal maxGap, SUMOReal passingTime, SUMOReal detectorGap) | |
| constructor | |
| SUMOTime | trySwitch (bool isActive) |
| Switches to the next phase Returns the time of the next switch. | |
| ~MSUnboundActuatedTrafficLightLogic () | |
| destructor | |
Static Information Retrieval | |
| unsigned int | getPhaseNumber () const |
| Returns the number of phases. | |
| const Phases & | getPhases () const |
| Returns the phases of this tls program. | |
| Phases & | getPhases () |
| Returns the phases of this tls program. | |
| const MSPhaseDefinition & | getPhase (unsigned int givenstep) const |
| Returns the definition of the phase from the given position within the plan. | |
Dynamic Information Retrieval | |
| unsigned int | getCurrentPhaseIndex () const |
| Returns the current index within the program. | |
| const MSPhaseDefinition & | getCurrentPhaseDef () const |
| Returns the definition of the current phase. | |
Conversion between time and phase | |
| SUMOTime | getPhaseIndexAtTime (SUMOTime simStep) const |
| Returns the index of the logic at the given simulation step. | |
| SUMOTime | getOffsetFromIndex (unsigned int index) const |
| Returns the position (start of a phase during a cycle) from of a given step. | |
| unsigned int | getIndexFromOffset (SUMOTime offset) const |
| Returns the step (the phasenumber) of a given position of the cycle. | |
Changing phases and phase durations | |
| void | changeStepAndDuration (MSTLLogicControl &tlcontrol, SUMOTime simStep, unsigned int step, SUMOTime stepDuration) |
| Changes the current phase and her duration. | |
| void | setPhases (const Phases &phases, unsigned int index) |
| Replaces the phases and set the phase index. | |
Handling of controlled links | |
| void | addLink (MSLink *link, MSLane *lane, unsigned int pos) |
| Adds a link on building. | |
| virtual void | adaptLinkInformationFrom (const MSTrafficLightLogic &logic) |
| Applies information about controlled links and lanes from the given logic. | |
| std::map< MSLink *, LinkState > | collectLinkStates () const |
| Returns the (uncontrolled) states of the controlled links. | |
| void | resetLinkStates (const std::map< MSLink *, LinkState > &vals) const |
| Resets the states of controlled links. | |
Switching and setting current rows | |
| bool | setTrafficLightSignals (SUMOTime t) const |
| Applies the current signal states to controlled links. | |
Static Information Retrieval | |
| const std::string & | getID () const |
| Returns this tl-logic's id. | |
| const std::string & | getProgramID () const |
| Returns this tl-logic's id. | |
| const LaneVectorVector & | getLanes () const |
| Returns the list of lists of all lanes controlled by this tls. | |
| const LaneVector & | getLanesAt (unsigned int i) const |
| Returns the list of lanes that are controlled by the signals at the given position. | |
| const LinkVectorVector & | getLinks () const |
| Returns the list of lists of all affected links. | |
| const LinkVector & | getLinksAt (unsigned int i) const |
| Returns the list of links that are controlled by the signals at the given position. | |
| int | getLinkIndex (const MSLink *const link) const |
| Returns the index of the given link. | |
Dynamic Information Retrieval | |
| SUMOTime | getDefaultCycleTime () const |
| Returns the cycle time (in ms) | |
| SUMOTime | getNextSwitchTime () const |
| Returns the assumed next switch time. | |
Changing phases and phase durations | |
| void | addOverridingDuration (SUMOTime duration) |
| Changes the duration of the next phase. | |
| void | setCurrentDurationIncrement (SUMOTime delay) |
| Delays current phase by the given delay. | |
Algorithm parameter handling | |
| void | setParameter (const std::map< std::string, std::string > ¶ms) |
| Inserts read parameter. | |
| std::string | getParameterValue (const std::string &key) const |
| Returns a named parameter. | |
Protected Member Functions | |
| MSActuatedPhaseDefinition * | currentPhaseDef () const |
| Returns the definition of the current phase. | |
Protected Attributes | |
| bool | myContinue |
| information whether the current phase should be lenghtend | |
| SUMOTime | myCurrentDurationIncrement |
| A value for enlarge the current duration. | |
| SUMOTime | myDefaultCycleTime |
| The cycle time (without changes) | |
| SUMOReal | myDetectorGap |
| The detector distance. | |
| std::string | myID |
| The id of the logic. | |
| InductLoopMap | myInductLoops |
| A map from lanes to induct loops lying on them. | |
| LaneVectorVector | myLanes |
| The list of links which do participate in this traffic light. | |
| LaneStateMap | myLaneStates |
| A map from lanes to lane states lying on them. | |
| LinkVectorVector | myLinks |
| The list of links which do participate in this traffic light. | |
| SUMOReal | myMaxGap |
| The maximum gap to check. | |
| std::vector< SUMOTime > | myOverridingTimes |
| A list of duration overrides. | |
| std::map< std::string, std::string > | myParameter |
| Given parameter. | |
| SUMOReal | myPassingTime |
| The passing time used. | |
| Phases | myPhases |
| The list of phases this logic uses. | |
| std::string | myProgramID |
| unsigned int | myStep |
| The current step. | |
| SwitchCommand * | mySwitchCommand |
| The current switch command. | |
The implementation of a simple traffic light which only switches between it's phases and sets the lights to red in between. Some functions are called with an information about the current step. This is needed as a single logic may be used by many junctions and so the current step is stored within them, not within the logic.
Definition at line 62 of file MSUnboundActuatedTrafficLightLogic.h.
| typedef std::map<MSLane*, MSInductLoop*> MSUnboundActuatedTrafficLightLogic::InductLoopMap |
Definition of a map from lanes to induct loops lying on them.
Definition at line 66 of file MSUnboundActuatedTrafficLightLogic.h.
| typedef std::map<MSLane*, MSLaneState*> MSUnboundActuatedTrafficLightLogic::LaneStateMap |
Definition of a map from lanes to lane state detectors lying on them.
Definition at line 69 of file MSUnboundActuatedTrafficLightLogic.h.
|
inherited |
Definition of the list of links that participate in this tl-light.
Definition at line 77 of file MSTrafficLightLogic.h.
|
inherited |
Definition of a list that holds lists of links that do have the same attribute.
Definition at line 80 of file MSTrafficLightLogic.h.
|
inherited |
Definition of the list of links that participate in this tl-light.
Definition at line 71 of file MSTrafficLightLogic.h.
|
inherited |
Definition of a list that holds lists of links that do have the same attribute.
Definition at line 74 of file MSTrafficLightLogic.h.
|
inherited |
Definition of a list of phases, being the junction logic.
Definition at line 68 of file MSTrafficLightLogic.h.
| MSUnboundActuatedTrafficLightLogic::MSUnboundActuatedTrafficLightLogic | ( | const std::string & | id, |
| const MSSimpleTrafficLightLogic::Phases & | phases, | ||
| size_t | step, | ||
| size_t | delay, | ||
| SUMOReal | maxGap, | ||
| SUMOReal | passingTime, | ||
| SUMOReal | detectorGap | ||
| ) |
constructor
Definition at line 51 of file MSUnboundActuatedTrafficLightLogic.cpp.
| MSUnboundActuatedTrafficLightLogic::~MSUnboundActuatedTrafficLightLogic | ( | ) |
destructor
Definition at line 114 of file MSUnboundActuatedTrafficLightLogic.cpp.
|
virtualinherited |
Applies information about controlled links and lanes from the given logic.
If we load a logic after the network has been loaded, we do not get the information about controlled links afterwards. We have to copy them from a previously loaded logic.
| [in] | logic | The logic to use the information about controlled links/lanes from |
Reimplemented in MSOffTrafficLightLogic.
Definition at line 145 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myLanes, and MSTrafficLightLogic::myLinks.
Referenced by MSOffTrafficLightLogic::adaptLinkInformationFrom(), and MSTLLogicControl::TLSLogicVariants::addLogic().
Adds a link on building.
| [in] | link | The controlled link |
| [in] | lane | The lane this link starts at |
| [in] | pos | The link's index (signal group) within this program |
Definition at line 127 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::getCurrentPhaseDef(), MSNet::getInstance(), MSTrafficLightLogic::myLanes, MSTrafficLightLogic::myLinks, and MSLink::setTLState().
|
inherited |
Changes the duration of the next phase.
| [in] | duration | The new duration |
Definition at line 218 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myOverridingTimes.
|
virtualinherited |
Changes the current phase and her duration.
| [in] | tlcontrol | The responsible traffic lights control |
| [in] | simStep | The current simulation step |
| [in] | step | Index of the phase to use |
| [in] | stepDuration | The left duration of the phase |
Implements MSTrafficLightLogic.
Definition at line 191 of file MSSimpleTrafficLightLogic.cpp.
References MSEventControl::ADAPT_AFTER_EXECUTION, MSEventControl::addEvent(), MSTrafficLightLogic::SwitchCommand::deschedule(), MSNet::getBeginOfTimestepEvents(), MSNet::getInstance(), MSSimpleTrafficLightLogic::myStep, and MSTrafficLightLogic::mySwitchCommand.
Referenced by GUIViewTraffic::onGamingClick().
Returns the (uncontrolled) states of the controlled links.
Definition at line 152 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myLinks.
|
protected |
Returns the definition of the current phase.
Definition at line 226 of file MSUnboundActuatedTrafficLightLogic.cpp.
References MSSimpleTrafficLightLogic::myPhases, and MSSimpleTrafficLightLogic::myStep.
Referenced by duration(), gapControl(), and isGreenPhase().
| SUMOTime MSUnboundActuatedTrafficLightLogic::duration | ( | ) | const |
Returns the duration of the given step.
Definition at line 118 of file MSUnboundActuatedTrafficLightLogic.cpp.
References currentPhaseDef(), MSTrafficLightLogic::getLanesAt(), isGreenPhase(), myContinue, myLaneStates, myPassingTime, MSSimpleTrafficLightLogic::myPhases, MSSimpleTrafficLightLogic::myStep, and SUMOReal.
Referenced by trySwitch().
| bool MSUnboundActuatedTrafficLightLogic::gapControl | ( | ) |
Desides, whether a phase should be continued by checking the gaps of vehicles having green.
Definition at line 187 of file MSUnboundActuatedTrafficLightLogic.cpp.
References currentPhaseDef(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSTrafficLightLogic::getLanesAt(), isGreenPhase(), myContinue, myInductLoops, myMaxGap, MSSimpleTrafficLightLogic::myPhases, MSSimpleTrafficLightLogic::myStep, and SUMOReal.
Referenced by trySwitch().
|
virtualinherited |
Returns the definition of the current phase.
Implements MSTrafficLightLogic.
Definition at line 133 of file MSSimpleTrafficLightLogic.cpp.
References MSSimpleTrafficLightLogic::myPhases, and MSSimpleTrafficLightLogic::myStep.
Referenced by MSAgentbasedTrafficLightLogic::collectData(), MSActuatedTrafficLightLogic::duration(), MSActuatedTrafficLightLogic::gapControl(), and MSAgentbasedTrafficLightLogic::trySwitch().
|
virtualinherited |
Returns the current index within the program.
Implements MSTrafficLightLogic.
Definition at line 127 of file MSSimpleTrafficLightLogic.cpp.
References MSSimpleTrafficLightLogic::myStep.
|
inlineinherited |
Returns the cycle time (in ms)
Definition at line 263 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myDefaultCycleTime.
Referenced by MSTLLogicControl::WAUTSwitchProcedure::isPosAtGSP().
|
inlineinherited |
Returns this tl-logic's id.
Definition at line 170 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myID.
Referenced by MSTLLogicControl::TLSLogicVariants::addLogic(), GUITrafficLightLogicWrapper::begin2TrackPhases(), GUINet::createTLWrapper(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSTLLogicControl::isActive(), GUIViewTraffic::onGamingClick(), and GUITrafficLightLogicWrapper::switchTLSLogic().
|
virtualinherited |
Returns the step (the phasenumber) of a given position of the cycle.
| [in] | offset | The offset (time) for which the according phase shall be returned |
Implements MSTrafficLightLogic.
Definition at line 169 of file MSSimpleTrafficLightLogic.cpp.
References MSPhaseDefinition::duration, MSSimpleTrafficLightLogic::getPhase(), MSTrafficLightLogic::myDefaultCycleTime, and MSSimpleTrafficLightLogic::myPhases.
|
inlineinherited |
Returns the list of lists of all lanes controlled by this tls.
Definition at line 186 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myLanes.
Referenced by GUITrafficLightLogicWrapper::getCenteringBoundary(), TraCIServerAPI_TLS::processGet(), and MSFullExport::writeTLS().
|
inlineinherited |
Returns the list of lanes that are controlled by the signals at the given position.
| [in] | i | The index of the signal |
Definition at line 195 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myLanes.
Referenced by MSAgentbasedTrafficLightLogic::collectData(), GUITrafficLightLogicWrapper::drawGL(), duration(), MSActuatedTrafficLightLogic::duration(), Command_SaveTLSSwitches::execute(), gapControl(), MSActuatedTrafficLightLogic::gapControl(), and GUIViewTraffic::onGamingClick().
Returns the index of the given link.
| [in] | link | The link to retrieve the index for |
Definition at line 194 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myLinks.
Referenced by GUITrafficLightLogicWrapper::getLinkIndex().
|
inlineinherited |
Returns the list of lists of all affected links.
Definition at line 203 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myLinks.
Referenced by MSTLLogicControl::TLSLogicVariants::addLogic(), GUINet::createTLWrapper(), GUITLLogicPhasesTrackerWindow::drawValues(), Command_SaveTLSSwitches::execute(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), TraCIServerAPI_TLS::processGet(), and MSOffTrafficLightLogic::rebuildPhase().
|
inlineinherited |
Returns the list of links that are controlled by the signals at the given position.
| [in] | i | The index of the signal |
Definition at line 212 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myLinks.
|
inherited |
Returns the assumed next switch time.
The time may change in case of adaptive/actuated traffic lights.
Definition at line 211 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::SwitchCommand::getNextSwitchTime(), and MSTrafficLightLogic::mySwitchCommand.
Referenced by MSTLLogicControl::WAUTSwitchProcedure::isPosAtGSP(), and TraCIServerAPI_TLS::processGet().
Returns the position (start of a phase during a cycle) from of a given step.
| [in] | index | The index of the phase to return the begin of |
Implements MSTrafficLightLogic.
Definition at line 155 of file MSSimpleTrafficLightLogic.cpp.
References MSPhaseDefinition::duration, MSSimpleTrafficLightLogic::getPhase(), and MSSimpleTrafficLightLogic::myPhases.
|
inherited |
Returns a named parameter.
| [in] | key | The name of the parameter |
Definition at line 239 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myParameter.
Referenced by MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), and MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef().
|
virtualinherited |
Returns the definition of the phase from the given position within the plan.
| [in] | givenstep | The index of the phase within the plan |
Implements MSTrafficLightLogic.
Definition at line 119 of file MSSimpleTrafficLightLogic.cpp.
References MSSimpleTrafficLightLogic::myPhases.
Referenced by MSSimpleTrafficLightLogic::getIndexFromOffset(), MSSimpleTrafficLightLogic::getOffsetFromIndex(), MSSimpleTrafficLightLogic::getPhaseIndexAtTime(), and GUIViewTraffic::onGamingClick().
Returns the index of the logic at the given simulation step.
Implements MSTrafficLightLogic.
Definition at line 140 of file MSSimpleTrafficLightLogic.cpp.
References MSPhaseDefinition::duration, MSSimpleTrafficLightLogic::getPhase(), MSTrafficLightLogic::myDefaultCycleTime, MSPhaseDefinition::myLastSwitch, and MSSimpleTrafficLightLogic::myStep.
|
virtualinherited |
Returns the number of phases.
Implements MSTrafficLightLogic.
Definition at line 101 of file MSSimpleTrafficLightLogic.cpp.
References MSSimpleTrafficLightLogic::myPhases.
|
virtualinherited |
Returns the phases of this tls program.
Implements MSTrafficLightLogic.
Definition at line 107 of file MSSimpleTrafficLightLogic.cpp.
References MSSimpleTrafficLightLogic::myPhases.
|
inherited |
Returns the phases of this tls program.
Definition at line 113 of file MSSimpleTrafficLightLogic.cpp.
References MSSimpleTrafficLightLogic::myPhases.
|
inlineinherited |
Returns this tl-logic's id.
Definition at line 178 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myProgramID.
Referenced by Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), GUIViewTraffic::onGamingClick(), and TraCIServerAPI_TLS::processGet().
| void MSUnboundActuatedTrafficLightLogic::init | ( | NLDetectorBuilder & | nb, |
| const std::vector< MSLane * > & | lanes, | ||
| std::map< std::string, std::vector< std::string > > & | edgeContinuations, | ||
| SUMOReal | det_offset | ||
| ) |
Initialises the tls with information about incoming lanes.
Definition at line 62 of file MSUnboundActuatedTrafficLightLogic.cpp.
References NLDetectorBuilder::createInductLoop(), Named::getID(), myDetectorGap, myInductLoops, myLaneStates, and SUMOReal.
|
virtualinherited |
Initialises the tls with information about incoming lanes.
| [in] | nb | The detector builder |
| [in] | edgeContinuations | Information about edge predecessors/successors |
| ProcessError | If something fails on initialisation |
Reimplemented in MSAgentbasedTrafficLightLogic, MSActuatedTrafficLightLogic, and MSOffTrafficLightLogic.
Definition at line 115 of file MSTrafficLightLogic.cpp.
Referenced by NLJunctionControlBuilder::closeTrafficLightLogic().
| bool MSUnboundActuatedTrafficLightLogic::isGreenPhase | ( | ) | const |
Definition at line 175 of file MSUnboundActuatedTrafficLightLogic.cpp.
References currentPhaseDef().
Referenced by duration(), and gapControl().
|
inherited |
Resets the states of controlled links.
| [in] | vals | The state of controlled links to use |
Definition at line 181 of file MSTrafficLightLogic.cpp.
References MSNet::getCurrentTimeStep(), MSNet::getInstance(), and MSTrafficLightLogic::myLinks.
|
inherited |
Delays current phase by the given delay.
| [in] | delay | The time by which the current phase shall be delayed |
Definition at line 224 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myCurrentDurationIncrement.
|
inherited |
Inserts read parameter.
| [in] | params | The parameter to use |
Definition at line 233 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myParameter.
Referenced by NLJunctionControlBuilder::closeTrafficLightLogic().
Replaces the phases and set the phase index.
Definition at line 203 of file MSSimpleTrafficLightLogic.cpp.
References MSSimpleTrafficLightLogic::deletePhases(), MSSimpleTrafficLightLogic::myPhases, and MSSimpleTrafficLightLogic::myStep.
Applies the current signal states to controlled links.
| [in] | t | The current time |
Definition at line 165 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::getCurrentPhaseDef(), MSPhaseDefinition::getState(), and MSTrafficLightLogic::myLinks.
Referenced by MSTLLogicControl::TLSLogicVariants::addLogic(), and TraCIServerAPI_TLS::processSet().
Switches to the next phase Returns the time of the next switch.
Reimplemented from MSSimpleTrafficLightLogic.
Definition at line 154 of file MSUnboundActuatedTrafficLightLogic.cpp.
References duration(), gapControl(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), myContinue, MSSimpleTrafficLightLogic::myPhases, and MSSimpleTrafficLightLogic::myStep.
|
protected |
information whether the current phase should be lenghtend
Definition at line 112 of file MSUnboundActuatedTrafficLightLogic.h.
Referenced by duration(), gapControl(), and trySwitch().
|
protectedinherited |
A value for enlarge the current duration.
Definition at line 427 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::setCurrentDurationIncrement(), and MSSimpleTrafficLightLogic::trySwitch().
|
protectedinherited |
The cycle time (without changes)
Definition at line 433 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::getDefaultCycleTime(), MSSimpleTrafficLightLogic::getIndexFromOffset(), MSSimpleTrafficLightLogic::getPhaseIndexAtTime(), MSOffTrafficLightLogic::MSOffTrafficLightLogic(), and MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic().
|
protected |
The detector distance.
Definition at line 121 of file MSUnboundActuatedTrafficLightLogic.h.
Referenced by init().
|
protectedinherited |
The id of the logic.
Definition at line 415 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::getID(), MSActuatedTrafficLightLogic::init(), and MSAgentbasedTrafficLightLogic::init().
|
protected |
A map from lanes to induct loops lying on them.
Definition at line 106 of file MSUnboundActuatedTrafficLightLogic.h.
Referenced by gapControl(), and init().
|
protectedinherited |
The list of links which do participate in this traffic light.
Definition at line 421 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::adaptLinkInformationFrom(), MSTrafficLightLogic::addLink(), MSTrafficLightLogic::getLanes(), MSTrafficLightLogic::getLanesAt(), MSActuatedTrafficLightLogic::init(), and MSAgentbasedTrafficLightLogic::init().
|
protected |
A map from lanes to lane states lying on them.
Definition at line 109 of file MSUnboundActuatedTrafficLightLogic.h.
Referenced by duration(), and init().
|
protectedinherited |
The list of links which do participate in this traffic light.
Definition at line 418 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::adaptLinkInformationFrom(), MSTrafficLightLogic::addLink(), MSTrafficLightLogic::collectLinkStates(), MSTrafficLightLogic::getLinkIndex(), MSTrafficLightLogic::getLinks(), MSTrafficLightLogic::getLinksAt(), MSTrafficLightLogic::resetLinkStates(), and MSTrafficLightLogic::setTrafficLightSignals().
|
protected |
The maximum gap to check.
Definition at line 115 of file MSUnboundActuatedTrafficLightLogic.h.
Referenced by gapControl().
|
protectedinherited |
A list of duration overrides.
Definition at line 424 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::addOverridingDuration(), and MSSimpleTrafficLightLogic::trySwitch().
|
protectedinherited |
Given parameter.
Definition at line 412 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::getParameterValue(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), and MSTrafficLightLogic::setParameter().
|
protected |
The passing time used.
Definition at line 118 of file MSUnboundActuatedTrafficLightLogic.h.
Referenced by duration().
|
protectedinherited |
The list of phases this logic uses.
Definition at line 194 of file MSSimpleTrafficLightLogic.h.
Referenced by MSAgentbasedTrafficLightLogic::calculateDuration(), currentPhaseDef(), MSAgentbasedTrafficLightLogic::cutCycleTime(), MSSimpleTrafficLightLogic::deletePhases(), duration(), MSActuatedTrafficLightLogic::duration(), MSAgentbasedTrafficLightLogic::findStepOfMaxValue(), MSAgentbasedTrafficLightLogic::findStepOfMinValue(), gapControl(), MSActuatedTrafficLightLogic::gapControl(), MSSimpleTrafficLightLogic::getCurrentPhaseDef(), MSSimpleTrafficLightLogic::getIndexFromOffset(), MSSimpleTrafficLightLogic::getOffsetFromIndex(), MSSimpleTrafficLightLogic::getPhase(), MSSimpleTrafficLightLogic::getPhaseNumber(), MSSimpleTrafficLightLogic::getPhases(), MSAgentbasedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::lengthenCycleTime(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSAgentbasedTrafficLightLogic::nextStep(), MSSimpleTrafficLightLogic::setPhases(), MSSimpleTrafficLightLogic::trySwitch(), trySwitch(), MSActuatedTrafficLightLogic::trySwitch(), and MSAgentbasedTrafficLightLogic::trySwitch().
|
protectedinherited |
Definition at line 415 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::getProgramID(), MSActuatedTrafficLightLogic::init(), and MSAgentbasedTrafficLightLogic::init().
|
protectedinherited |
The current step.
Definition at line 197 of file MSSimpleTrafficLightLogic.h.
Referenced by MSAgentbasedTrafficLightLogic::calculateDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSAgentbasedTrafficLightLogic::collectData(), currentPhaseDef(), duration(), MSActuatedTrafficLightLogic::duration(), gapControl(), MSActuatedTrafficLightLogic::gapControl(), MSSimpleTrafficLightLogic::getCurrentPhaseDef(), MSSimpleTrafficLightLogic::getCurrentPhaseIndex(), MSSimpleTrafficLightLogic::getPhaseIndexAtTime(), MSAgentbasedTrafficLightLogic::nextStep(), MSSimpleTrafficLightLogic::setPhases(), MSSimpleTrafficLightLogic::trySwitch(), trySwitch(), MSActuatedTrafficLightLogic::trySwitch(), and MSAgentbasedTrafficLightLogic::trySwitch().
|
protectedinherited |
The current switch command.
Definition at line 430 of file MSTrafficLightLogic.h.
Referenced by MSSimpleTrafficLightLogic::changeStepAndDuration(), MSTrafficLightLogic::getNextSwitchTime(), and MSTrafficLightLogic::MSTrafficLightLogic().