![]() |
SUMO - Simulation of Urban MObility
|
#include <MSDeterministicHiLevelTrafficLightLogic.h>
Public Types | |
Structure definitions | |
typedef std::vector< MSPhaseDefinition * > | Phases |
Definition of a list of phases, being the junction logic. More... | |
typedef std::vector< MSLink * > | LinkVector |
Definition of the list of links that are subjected to this tls. More... | |
typedef std::vector< LinkVector > | LinkVectorVector |
Definition of a list that holds lists of links that do have the same attribute. More... | |
typedef std::vector< MSLane * > | LaneVector |
Definition of the list of arrival lanes subjected to this tls. More... | |
typedef std::vector< LaneVector > | LaneVectorVector |
Definition of a list that holds lists of lanes that do have the same attribute. More... | |
Public Member Functions | ||||
void | activate (MSSOTLPolicy *policy) | |||
void | addPolicy (MSSOTLPolicy *policy) | |||
void | addTo (const StoringVisitor &cont) const | |||
Adds this object to the given container. More... | ||||
void | clearParameter () | |||
Clears the parameter map. More... | ||||
MSSOTLPolicy * | getCurrentPolicy () | |||
Returns the low-level policy currently selected by this high-level tll. More... | ||||
double | getDouble (const std::string &key, const double defaultValue) const | |||
Returns the value for a given key converted to a double. More... | ||||
const std::string & | getID () const | |||
Returns the id. More... | ||||
const std::string | getLogicType () const | |||
Returns the type of the logic as a string. More... | ||||
const std::string | getParameter (const std::string &key, const std::string &defaultValue="") const | |||
Returns the value for a given key. More... | ||||
const std::map< std::string, std::string > & | getParametersMap () const | |||
Returns the inner key/value map. More... | ||||
std::vector< MSSOTLPolicy * > & | getPolicies () | |||
Returns the vector of the low-level policies used by this high-level tll. More... | ||||
void | init (NLDetectorBuilder &nb) | |||
Initialises the tls with sensors on incoming and outgoing lanes Sensors are built in the simulation according to the type of sensor specified in the simulation parameter. More... | ||||
bool | knowsParameter (const std::string &key) const | |||
Returns whether the parameter is known. More... | ||||
MSDeterministicHiLevelTrafficLightLogic (MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const Phases &phases, int step, SUMOTime delay, const std::map< std::string, std::string > ¶meters) | ||||
Constructor without sensors passed. More... | ||||
void | setID (const std::string &newID) | |||
resets the id More... | ||||
void | setParameter (const std::string &key, const std::string &value) | |||
Sets a parameter. More... | ||||
void | setPhases (const Phases &phases, int index) | |||
Replaces the phases and set the phase index. More... | ||||
SUMOTime | trySwitch () | |||
Switches to the next phase. More... | ||||
void | unsetParameter (const std::string &key) | |||
Removes a parameter. More... | ||||
void | updateParameter (const std::map< std::string, std::string > &mapArg) | |||
Adds or updates all given parameters from the map. More... | ||||
void | writeParams (OutputDevice &device) const | |||
write Params in the given outputdevice More... | ||||
~MSDeterministicHiLevelTrafficLightLogic () | ||||
Static Information Retrieval | ||||
Switches to the next phase
| ||||
int | getPhaseNumber () const | |||
Returns the number of phases. More... | ||||
const Phases & | getPhases () const | |||
Returns the phases of this tls program. More... | ||||
const MSPhaseDefinition & | getPhase (int givenstep) const | |||
Returns the definition of the phase from the given position within the plan. More... | ||||
Dynamic Information Retrieval | ||||
int | getCurrentPhaseIndex () const | |||
Returns the current index within the program. More... | ||||
const MSPhaseDefinition & | getCurrentPhaseDef () const | |||
Returns the definition of the current phase. More... | ||||
Conversion between time and phase | ||||
SUMOTime | getPhaseIndexAtTime (SUMOTime simStep) const | |||
Returns the index of the logic at the given simulation step. More... | ||||
SUMOTime | getOffsetFromIndex (int index) const | |||
Returns the position (start of a phase during a cycle) from of a given step. More... | ||||
int | getIndexFromOffset (SUMOTime offset) const | |||
Returns the step (the phasenumber) of a given position of the cycle. More... | ||||
Changing phases and phase durations | ||||
void | changeStepAndDuration (MSTLLogicControl &tlcontrol, SUMOTime simStep, int step, SUMOTime stepDuration) | |||
Changes the current phase and her duration. More... | ||||
Handling of controlled links | ||||
virtual void | addLink (MSLink *link, MSLane *lane, int pos) | |||
Adds a link on building. More... | ||||
void | ignoreLinkIndex (int pos) | |||
ignore pedestrian crossing index in mesosim More... | ||||
virtual void | adaptLinkInformationFrom (const MSTrafficLightLogic &logic) | |||
Applies information about controlled links and lanes from the given logic. More... | ||||
std::map< MSLink *, LinkState > | collectLinkStates () const | |||
Returns the (uncontrolled) states of the controlled links. More... | ||||
void | resetLinkStates (const std::map< MSLink *, LinkState > &vals) const | |||
Resets the states of controlled links. More... | ||||
Switching and setting current rows | ||||
bool | setTrafficLightSignals (SUMOTime t) const | |||
Applies the current signal states to controlled links. More... | ||||
Static Information Retrieval | ||||
const std::string & | getProgramID () const | |||
Returns this tl-logic's id. More... | ||||
const LaneVectorVector & | getLaneVectors () const | |||
Returns the list of lists of all lanes controlled by this tls. More... | ||||
const LaneVector & | getLanesAt (int i) const | |||
Returns the list of lanes that are controlled by the signals at the given position. More... | ||||
const LinkVectorVector & | getLinks () const | |||
Returns the list of lists of all affected links. More... | ||||
const LinkVector & | getLinksAt (int i) const | |||
Returns the list of links that are controlled by the signals at the given position. More... | ||||
int | getLinkIndex (const MSLink *const link) const | |||
Returns the index of the given link. More... | ||||
Dynamic Information Retrieval | ||||
SUMOTime | getDefaultCycleTime () const | |||
Returns the cycle time (in ms) More... | ||||
SUMOTime | getNextSwitchTime () const | |||
Returns the assumed next switch time. More... | ||||
SUMOTime | getSpentDuration () const | |||
Returns the duration spent in the current phase. More... | ||||
Changing phases and phase durations | ||||
void | addOverridingDuration (SUMOTime duration) | |||
Changes the duration of the next phase. More... | ||||
void | setCurrentDurationIncrement (SUMOTime delay) | |||
Delays current phase by the given delay. More... | ||||
Static Public Member Functions | |
template<class T > | |
static std::string | getIDSecure (const T *obj, const std::string &fallBack="NULL") |
get an identifier for Named-like object which may be Null More... | |
Protected Types | |
typedef std::map< const std::string, std::vector< MSPushButton * > > | PhasePushButtons |
Protected Member Functions | |
bool | canRelease () |
void | choosePolicy (double mean_vSpeed_in, double mean_vSpeed_out) |
virtual SUMOTime | computeReturnTime () |
int | countVehicles (MSPhaseDefinition phase) |
int | decideNextPhase () |
void | decidePolicy () |
Decide the current policy according to pheromone levels The decision reflects on currentPolicy value. More... | |
MSSOTLE2Sensors * | getCountSensors () |
Return the sensors that count the passage of vehicles in and out of the tl. More... | |
SUMOTime | getCurrentPhaseElapsed () |
double | getInputSensorsLength () |
double | getMeanSpeedForInputLanes () |
double | getMeanSpeedForOutputLanes () |
double | getOutputSensorsLength () |
int | getPhaseIndexWithMaxCTS () |
MSSOTLSensors * | getSensors () |
double | getSpeedThreshold () |
int | getThreshold () |
bool | isPushButtonPressed () |
bool | isThresholdPassed () |
void | logStatus () |
void | proceedToNextStep () |
Proceed to the next step. More... | |
void | setStep (int step) |
Forces a specific step. More... | |
Protected Attributes | |
MSLaneID_set | inputLanes |
This pheronome is an indicator of congestion on input lanes. Its levels refer to the average speed of vehicles passing the input lane: the lower the speed the higher the pheromone. These levels are updated on every input lane, independently on lights state. More... | |
PhasePushButtons | m_pushButtons |
SUMOTime | myCurrentDurationIncrement |
A value for enlarge the current duration. More... | |
SUMOTime | myDefaultCycleTime |
The cycle time (without changes) More... | |
std::string | myID |
The name of the object. More... | |
std::set< int > | myIgnoredIndices |
list of indices that are ignored in mesoscopic simulatino More... | |
LaneVectorVector | myLanes |
The list of LaneVectors; each vector contains the incoming lanes that belong to the same link index. More... | |
LinkVectorVector | myLinks |
The list of LinkVectors; each vector contains the links that belong to the same link index. More... | |
const TrafficLightType | myLogicType |
The type of the logic. More... | |
std::vector< SUMOTime > | myOverridingTimes |
A list of duration overrides. More... | |
Phases | myPhases |
The list of phases this logic uses. More... | |
const std::string | myProgramID |
The id of the logic. More... | |
int | myStep |
The current step. More... | |
SwitchCommand * | mySwitchCommand |
The current switch command. More... | |
MSLaneID_set | outputLanes |
This pheromone is an indicator of congestion on output lanes. Its levels refer to the average speed of vehicles passing the output lane: the lower the speed the higher the pheromone. These levels are updated on every output lane, independently on lights state. More... | |
Static Protected Attributes | |
static const LaneVector | myEmptyLaneVector |
An empty lane vector. More... | |
Definition at line 34 of file MSDeterministicHiLevelTrafficLightLogic.h.
|
inherited |
Definition of the list of arrival lanes subjected to this tls.
Definition at line 71 of file MSTrafficLightLogic.h.
|
inherited |
Definition of a list that holds lists of lanes that do have the same attribute.
Definition at line 74 of file MSTrafficLightLogic.h.
|
inherited |
Definition of the list of links that are subjected to this tls.
Definition at line 65 of file MSTrafficLightLogic.h.
|
inherited |
Definition of a list that holds lists of links that do have the same attribute.
Definition at line 68 of file MSTrafficLightLogic.h.
|
protectedinherited |
Definition at line 117 of file MSSOTLTrafficLightLogic.h.
|
inherited |
Definition of a list of phases, being the junction logic.
Definition at line 62 of file MSTrafficLightLogic.h.
MSDeterministicHiLevelTrafficLightLogic::MSDeterministicHiLevelTrafficLightLogic | ( | MSTLLogicControl & | tlcontrol, |
const std::string & | id, | ||
const std::string & | programID, | ||
const Phases & | phases, | ||
int | step, | ||
SUMOTime | delay, | ||
const std::map< std::string, std::string > & | parameters | ||
) |
Constructor without sensors passed.
[in] | tlcontrol | The tls control responsible for this tls |
[in] | id | This traffic light id |
[in] | programID | This tls' sub-id (program id) |
[in] | phases | Definitions of the phases |
[in] | step | The initial phase index |
[in] | delay | The time to wait before the first switch |
[in] | parameters | Parameters defined for the tll |
Definition at line 20 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
References MSSOTLHiLevelTrafficLightLogic::addPolicy().
MSDeterministicHiLevelTrafficLightLogic::~MSDeterministicHiLevelTrafficLightLogic | ( | ) |
Definition at line 34 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
|
inherited |
Definition at line 53 of file MSSOTLHiLevelTrafficLightLogic.cpp.
References MSSOTLHiLevelTrafficLightLogic::currentPolicy.
Referenced by choosePolicy(), MSSwarmTrafficLightLogic::choosePolicy(), and MSSOTLHiLevelTrafficLightLogic::getCurrentPolicy().
|
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 MSRailSignal, MSRailCrossing, and MSOffTrafficLightLogic.
Definition at line 206 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myIgnoredIndices, MSTrafficLightLogic::myLanes, and MSTrafficLightLogic::myLinks.
Referenced by MSOffTrafficLightLogic::adaptLinkInformationFrom(), MSRailCrossing::adaptLinkInformationFrom(), MSRailSignal::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 |
Reimplemented in MSRailCrossing.
Definition at line 188 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::getCurrentPhaseDef(), MSNet::getInstance(), MSTrafficLightLogic::myLanes, MSTrafficLightLogic::myLinks, and MSLink::setTLState().
Referenced by MSRailCrossing::addLink().
|
inherited |
Changes the duration of the next phase.
[in] | duration | The new duration |
Definition at line 292 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myOverridingTimes.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), MSTrafficLightLogic::getDefaultCycleTime(), and MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic().
|
inherited |
Definition at line 45 of file MSSOTLHiLevelTrafficLightLogic.cpp.
References MSSOTLHiLevelTrafficLightLogic::policies.
Referenced by MSSOTLHiLevelTrafficLightLogic::getCurrentPolicy(), MSDeterministicHiLevelTrafficLightLogic(), and MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic().
|
inlineinherited |
Adds this object to the given container.
Definition at line 123 of file Named.h.
References Named::StoringVisitor::add().
|
protectedvirtual |
Implements MSSOTLTrafficLightLogic.
Definition at line 172 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
References MSSOTLPolicy::canRelease(), MSSOTLTrafficLightLogic::countVehicles(), DBG, MSPhasedTrafficLightLogic::getCurrentPhaseDef(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), MSSOTLHiLevelTrafficLightLogic::getCurrentPolicy(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSSOTLTrafficLightLogic::isThresholdPassed(), time2string(), and WRITE_MESSAGE.
|
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 183 of file MSPhasedTrafficLightLogic.cpp.
References MSEventControl::addEvent(), MSTrafficLightLogic::SwitchCommand::deschedule(), MSNet::getBeginOfTimestepEvents(), MSNet::getInstance(), MSPhasedTrafficLightLogic::myStep, and MSTrafficLightLogic::mySwitchCommand.
|
protected |
Definition at line 151 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
References MSSOTLHiLevelTrafficLightLogic::activate(), DBG, MSSOTLHiLevelTrafficLightLogic::getPolicies(), and WRITE_MESSAGE.
Referenced by decidePolicy(), and init().
|
inherited |
Clears the parameter map.
Definition at line 99 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), GNECrossing::setGenericParametersStr(), GNEConnection::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), and GNEAdditional::setGenericParametersStr().
Returns the (uncontrolled) states of the controlled links.
Definition at line 214 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myLinks.
Referenced by MSTLLogicControl::TLSLogicVariants::saveInitialStates().
|
inlineprotectedvirtualinherited |
Reimplemented in MSSwarmTrafficLightLogic.
Definition at line 189 of file MSSOTLTrafficLightLogic.h.
References DELTA_T, MSPhaseDefinition::duration, and MSPhasedTrafficLightLogic::getCurrentPhaseDef().
Referenced by MSSOTLTrafficLightLogic::trySwitch().
|
protectedinherited |
Definition at line 265 of file MSSOTLTrafficLightLogic.cpp.
References MSSOTLSensors::countVehicles(), MSSOTLTrafficLightLogic::getMode(), MSPhaseDefinition::getTargetLaneSet(), MSPhaseDefinition::isTarget(), MAX2(), MSSOTLTrafficLightLogic::mySensors, and WRITE_ERROR.
Referenced by canRelease(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSSwarmTrafficLightLogic::canRelease(), decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), and MSSOTLTrafficLightLogic::updateCTS().
|
protectedvirtual |
Reimplemented from MSSOTLTrafficLightLogic.
Definition at line 76 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
References MSSOTLTrafficLightLogic::countVehicles(), DBG, MSSOTLPolicy::decideNextPhase(), decidePolicy(), MSPhasedTrafficLightLogic::getCurrentPhaseDef(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), MSPhasedTrafficLightLogic::getCurrentPhaseIndex(), MSSOTLHiLevelTrafficLightLogic::getCurrentPolicy(), MSNet::getCurrentTimeStep(), Named::getID(), MSNet::getInstance(), MsgHandler::getMessageInstance(), MSSOTLPolicy::getName(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSPhaseDefinition::getState(), MsgHandler::inform(), MSPhaseDefinition::isCommit(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSSOTLTrafficLightLogic::isThresholdPassed(), time2string(), and WRITE_MESSAGE.
|
protectedvirtual |
Decide the current policy according to pheromone levels The decision reflects on currentPolicy value.
Implements MSSOTLHiLevelTrafficLightLogic.
Definition at line 132 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
References choosePolicy(), DBG, MSSOTLHiLevelTrafficLightLogic::getCurrentPolicy(), MSNet::getCurrentTimeStep(), Named::getID(), MSNet::getInstance(), getMeanSpeedForInputLanes(), getMeanSpeedForOutputLanes(), MSSOTLPolicy::getName(), time2string(), and WRITE_MESSAGE.
Referenced by decideNextPhase().
|
inlineprotectedinherited |
Return the sensors that count the passage of vehicles in and out of the tl.
Definition at line 183 of file MSSOTLTrafficLightLogic.h.
References MSSOTLTrafficLightLogic::myCountSensors.
Referenced by MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), and MSSwarmTrafficLightLogic::updatePheromoneLevels().
|
virtualinherited |
Returns the definition of the current phase.
Implements MSTrafficLightLogic.
Definition at line 132 of file MSPhasedTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::myPhases, and MSPhasedTrafficLightLogic::myStep.
Referenced by MSSOTLPhaseTrafficLightLogic::canRelease(), MSSOTLWaveTrafficLightLogic::canRelease(), canRelease(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSSwarmTrafficLightLogic::canRelease(), MSSOTLTrafficLightLogic::computeReturnTime(), MSSOTLWaveTrafficLightLogic::countVehicles(), decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSOTLTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), MSSwarmTrafficLightLogic::getLaneLightState(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSSOTLTrafficLightLogic::trySwitch(), and MSSOTLTrafficLightLogic::updateDecayThreshold().
|
protectedinherited |
Definition at line 359 of file MSSOTLTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::getCurrentPhaseDef(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), and MSPhaseDefinition::myLastSwitch.
Referenced by MSSOTLPhaseTrafficLightLogic::canRelease(), MSSOTLWaveTrafficLightLogic::canRelease(), canRelease(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSSwarmTrafficLightLogic::canRelease(), decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), and MSSOTLTrafficLightLogic::trySwitch().
|
virtualinherited |
Returns the current index within the program.
Implements MSTrafficLightLogic.
Definition at line 126 of file MSPhasedTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::myStep.
Referenced by MSSOTLWaveTrafficLightLogic::canRelease(), decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSOTLTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSSOTLTrafficLightLogic::init(), and MSSOTLTrafficLightLogic::trySwitch().
|
inlineinherited |
Returns the low-level policy currently selected by this high-level tll.
Definition at line 91 of file MSSOTLHiLevelTrafficLightLogic.h.
References MSSOTLHiLevelTrafficLightLogic::activate(), MSSOTLHiLevelTrafficLightLogic::addPolicy(), MSSOTLHiLevelTrafficLightLogic::currentPolicy, MSSOTLHiLevelTrafficLightLogic::decidePolicy(), and MSSOTLHiLevelTrafficLightLogic::init().
Referenced by MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), canRelease(), MSSwarmTrafficLightLogic::canRelease(), decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::init(), and MSSwarmTrafficLightLogic::updateSensitivities().
|
inlineinherited |
Returns the cycle time (in ms)
Definition at line 268 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::addOverridingDuration(), MSTrafficLightLogic::changeStepAndDuration(), MSTrafficLightLogic::getIndexFromOffset(), MSTrafficLightLogic::getNextSwitchTime(), MSTrafficLightLogic::getOffsetFromIndex(), MSTrafficLightLogic::getPhaseIndexAtTime(), MSTrafficLightLogic::getSpentDuration(), MSTrafficLightLogic::myDefaultCycleTime, and MSTrafficLightLogic::setCurrentDurationIncrement().
Referenced by MSTLLogicControl::WAUTSwitchProcedure_GSP::adaptLogic(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), NLJunctionControlBuilder::closeTrafficLightLogic(), and MSTLLogicControl::WAUTSwitchProcedure::isPosAtGSP().
|
inherited |
Returns the value for a given key converted to a double.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 81 of file Parameterised.cpp.
References Parameterised::myMap, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_Battery::buildVehicleDevices(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
|
inlineinherited |
Returns the id.
Definition at line 78 of file Named.h.
Referenced by NIImporter_SUMO::_loadNetwork(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSPModel_Remote::add(), LaneStoringVisitor::add(), MSPModel_Striping::add(), MSVehicleTransfer::add(), PCPolyContainer::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), NIXMLConnectionsHandler::addCrossing(), MSPModel_Striping::addCrossingVehs(), RODFDetectorCon::addDetector(), RONet::addEdge(), NBParkingCont::addEdges2Keep(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSLane::addNeigh(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), ROVehicle::addStop(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSNet::addStoppingPlace(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), NIXMLConnectionsHandler::addWalkingArea(), NBRailwayTopologyAnalyzer::allBroken(), NBEdge::append(), NBEdgeCont::appendRailwayTurnarounds(), libsumo::Helper::applySubscriptionFilters(), NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), NBPTStopCont::assignPTStopToEdgeOfClosestPlatform(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSPModel_Striping::blockedAtDist(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NLDetectorBuilder::buildE2Detector(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSEdge::checkAndRegisterBiDirEdge(), MSLane::checkForPedestrians(), NBEdge::checkGeometry(), NBEdgeCont::checkGrade(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), NBEdgeCont::checkOverlap(), MSDevice_Battery::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSSwarmTrafficLightLogic::choosePolicy(), MSDevice_SSM::classifyEncounter(), NBTrafficLightLogic::closeBuilding(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBEdge::computeAngle(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), NBEdge::debugPrintConnections(), decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), MSVehicle::enterLaneAtMove(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBRailwayTopologyAnalyzer::extendBidiEdges(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), NBNodeCont::feasibleCluster(), libsumo::Helper::findCloserLane(), MSDevice_SSM::findFoeConflictLane(), libsumo::Simulation::findIntermodalRoute(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBTrafficLightDefinition::forbids(), NBRampsComputer::fulfillsRampConstraints(), NBPTStopCont::generateBidiStops(), NBNodeCont::generateNodeClusters(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSPModel_Striping::getArbitraryPath(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), libsumo::Vehicle::getBestLanes(), NBOwnTLDef::getBestPair(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), GUILane::getColorValue(), NBEdge::getConnection(), NBEdge::getConnectionRef(), libsumo::TrafficLight::getControlledLinks(), MSLane::getCriticalLeader(), NBEdge::getCrossingAngle(), NBNodeShapeComputer::getDefaultRadius(), NBTrafficLightDefinition::getDescription(), RODFNet::getDetectorEdge(), libsumo::Lane::getEdgeID(), MSMeanData::getEdgeID(), NBEdge::getFirstNonPedestrianLane(), MSPModel_Remote::getFirstPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), libsumo::LaneArea::getLaneID(), libsumo::InductionLoop::getLaneID(), libsumo::Vehicle::getLaneID(), MSParkingArea::getLastFreePosWithReservation(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), MSLane::getLinkTo(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), getMeanSpeedForInputLanes(), getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), GUILane::getParameterWindow(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBPTStopCont::getReverseStop(), libsumo::Person::getRoadID(), libsumo::Vehicle::getRoadID(), libsumo::Vehicle::getRouteID(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSTransportable::Stage_Trip::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Access::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), MSNet::getStoppingPlaceID(), MSLane::getSurroundingVehicles(), MSLane::getUpcomingLinks(), MSDevice_SSM::getUpstreamVehicles(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSTransportable::Stage_Driving::getWaitingDescription(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSVehicle::ignoreRed(), init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NBEdge::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicle(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MESegment::isOpen(), RODFNet::isSource(), NIImporter_VISUM::isSplitEdge(), MSSOTLTrafficLightLogic::isThresholdPassed(), MESegment::jamThresholdForSpeed(), NBNodeShapeComputer::joinSameDirectionEdges(), NBEdgeCont::joinSameNodeConnectingEdges(), MSAbstractLaneChangeModel::laneChangeOutput(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), NIImporter_ArcView::load(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), MSE2Collector::makeVehicleInfo(), GNEJunction::markAsModified(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), MSE2Collector::MSE2Collector(), NBLoadedTLDef::myCompute(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLEdgesHandler::myStartElement(), MSCalibrator::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSPModel_Striping::nextBlocking(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_Example::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_Example::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::notifyMove(), MSDevice_SSM::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSFile::onCmdSaveTLSProgram(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), MSLink::opened(), RORouteHandler::openRoute(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NBRequest::oppositeLeftTurnConflict(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NLTriggerBuilder::parseAndBuildCalibrator(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), AGStreet::print(), MSDevice_SSM::processEncounters(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkAproaches(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NBEdgeCont::processSplits(), MEVehicle::processStop(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneClusterFringe(), MSPModel_Striping::PState::PState(), MSOffTrafficLightLogic::rebuildPhase(), NBEdgeCont::recheckLanes(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), MSLink::removeApproaching(), GNEJunction::removeConnectionsFrom(), NBNodeCont::removeIsolatedRoads(), MSVehicle::removePassedDriveItems(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), GNEJunction::removeTLSConnections(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), GNEJunction::replaceIncomingConnections(), MSVehicle::replaceParkingArea(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), NLEdgeControlBuilder::reportCurrentEdgeOrLane(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveGNEConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), NBRailwayTopologyAnalyzer::reverseEdges(), NBPTLineCont::reviseStops(), MSPerson::MSPersonStage_Walking::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), RONet::saveAndRemoveRoutesUntil(), MSPersonDevice_Routing::saveState(), MSDevice_Routing::saveState(), MSDevice_Vehroutes::saveState(), MSDevice::saveState(), MSDevice_Tripinfo::saveState(), MSBaseVehicle::saveState(), MSLane::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSLink::setApproaching(), MSTransportable::Stage_Trip::setArrived(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), NBRequest::setBlocking(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NBEdge::setControllingTLInformation(), NLEdgeControlBuilder::setDefaultStopOffsets(), MSChargingStation::setEfficency(), MSLane::setManeuverReservation(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSLink::setRequestInformation(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), NBEdge::setStopOffsets(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBNode::sortEdges(), MSLane::sortManeuverReservations(), NBEdgeCont::splitAt(), IntermodalNetwork< E, L, N, V >::splitEdge(), MSLaneChangerSublane::startChangeSublane(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), NGNet::toNB(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSSOTLTrafficLightLogic::updateCTS(), NLEdgeControlBuilder::updateCurrentLaneStopOffsets(), MSVehicle::updateDriveItems(), GNETLSEditorFrame::TLSJunction::updateJunctionDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateTargetLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), NBNodeTypeComputer::validateRailCrossings(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), NBParking::write(), MSEmissionExport::write(), MSBatteryExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), NBSign::writeAsPOI(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), NWWriter_OpenDrive::writeInternalEdge(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_OpenDrive::writeNormalEdge(), NWWriter_DlrNavteq::writeProhibitedManoeuvres(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMOPolygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 71 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSVehicle::checkRewindLinkLanes(), MSLaneChanger::continueChange(), MSLane::detectCollisions(), MSVehicle::getBackPositionOnLane(), NBOwnTLDef::getBestPair(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), GUIVehicle::getParameterWindow(), MSLaneChanger::getRealLeader(), NBEdge::init(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), operator<<(), NBEdge::recheckLanes(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), toString(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
|
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 160 of file MSPhasedTrafficLightLogic.cpp.
References MSPhaseDefinition::duration, MSPhasedTrafficLightLogic::getPhase(), MSTrafficLightLogic::myDefaultCycleTime, and MSPhasedTrafficLightLogic::myPhases.
|
inlineprotectedinherited |
Definition at line 160 of file MSSOTLTrafficLightLogic.h.
References Parameterised::getParameter(), and StringUtils::toDouble().
Referenced by MSSOTLTrafficLightLogic::init().
|
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 189 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myEmptyLaneVector, and MSTrafficLightLogic::myLanes.
Referenced by GUITrafficLightLogicWrapper::drawGL(), Command_SaveTLSSwitches::execute(), MSActuatedTrafficLightLogic::gapControl(), GUIViewTraffic::onGamingClick(), and MSDelayBasedTrafficLightLogic::proposeProlongation().
|
inlineinherited |
Returns the list of lists of all lanes controlled by this tls.
Definition at line 180 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myLanes.
Referenced by MSSOTLWaveTrafficLightLogic::countVehicles(), GUITrafficLightLogicWrapper::getCenteringBoundary(), libsumo::TrafficLight::getControlledLanes(), libsumo::TrafficLight::getControlledLinks(), MSSOTLTrafficLightLogic::init(), TraCIServerAPI_TrafficLight::processGet(), and MSFullExport::writeTLS().
|
inherited |
Returns the index of the given link.
[in] | link | The link to retrieve the index for |
Definition at line 256 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myLinks.
Referenced by GUITrafficLightLogicWrapper::getLinkIndex(), and MSTrafficLightLogic::getLinksAt().
|
inlineinherited |
Returns the list of lists of all affected links.
Definition at line 201 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myLinks.
Referenced by MSTLLogicControl::TLSLogicVariants::addLogic(), GUINet::createTLWrapper(), GUITLLogicPhasesTrackerWindow::drawValues(), Command_SaveTLSSwitches::execute(), libsumo::TrafficLight::getControlledJunctions(), libsumo::TrafficLight::getControlledLinks(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), 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 210 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::getLinkIndex(), MSTrafficLightLogic::getPhase(), MSTrafficLightLogic::getPhaseNumber(), MSTrafficLightLogic::getPhases(), and MSTrafficLightLogic::myLinks.
Referenced by init(), MSSOTLTrafficLightLogic::init(), and MSSwarmTrafficLightLogic::init().
|
inline |
Returns the type of the logic as a string.
Definition at line 68 of file MSDeterministicHiLevelTrafficLightLogic.h.
|
protected |
Definition at line 96 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
References DBG, Named::getID(), MSNet::getInstance(), MSSOTLTrafficLightLogic::getSensors(), inputLanes, MSSOTLSensors::meanVehiclesSpeed(), time2string(), and WRITE_MESSAGE.
Referenced by decidePolicy().
|
protected |
Definition at line 114 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
References DBG, Named::getID(), MSNet::getInstance(), MSSOTLTrafficLightLogic::getSensors(), MSSOTLSensors::meanVehiclesSpeed(), outputLanes, time2string(), and WRITE_MESSAGE.
Referenced by decidePolicy().
|
inherited |
Returns the assumed next switch time.
The time may change in case of adaptive/actuated traffic lights.
Definition at line 273 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::SwitchCommand::getNextSwitchTime(), and MSTrafficLightLogic::mySwitchCommand.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_GSP::adaptLogic(), MSTrafficLightLogic::getDefaultCycleTime(), MSTrafficLightLogic::getSpentDuration(), and MSTLLogicControl::WAUTSwitchProcedure::isPosAtGSP().
|
virtualinherited |
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 149 of file MSPhasedTrafficLightLogic.cpp.
References MSPhaseDefinition::duration, MSPhasedTrafficLightLogic::getPhase(), and MSPhasedTrafficLightLogic::myPhases.
Referenced by MSPhasedTrafficLightLogic::getPhaseIndexAtTime().
|
inlineprotectedinherited |
Definition at line 164 of file MSSOTLTrafficLightLogic.h.
References Parameterised::getParameter(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), and StringUtils::toDouble().
Referenced by MSSOTLTrafficLightLogic::init().
|
inherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 71 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), NBEdge::addRestrictedLane(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByParameter(), libsumo::Simulation::findIntermodalRoute(), MSDevice::getBoolParam(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), GNELane::getColorValue(), GUILane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Polygon::getParameter(), libsumo::Route::getParameter(), libsumo::POI::getParameter(), libsumo::Person::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::Edge::getParameter(), libsumo::Lane::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSDevice::getStringParam(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), libsumo::Helper::moveToXYMap(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSTriggeredRerouter::notifyEnter(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), MSDevice_SSM::useGeoCoords(), and NWWriter_DlrNavteq::writeLinksUnsplitted().
|
inherited |
Returns the inner key/value map.
Definition at line 105 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEPoly::getGenericParameters(), GNELane::getGenericParameters(), GNEJunction::getGenericParameters(), GNEPOI::getGenericParameters(), GNEEdge::getGenericParameters(), GNEAdditional::getGenericParameters(), GNEPoly::getGenericParametersStr(), GNELane::getGenericParametersStr(), GNEPOI::getGenericParametersStr(), GNEJunction::getGenericParametersStr(), GNEEdge::getGenericParametersStr(), GNEAdditional::getGenericParametersStr(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIPolygon::getParameterWindow(), GUIJunctionWrapper::getParameterWindow(), GUIPointOfInterest::getParameterWindow(), GUILane::getParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), NIImporter_OpenStreetMap::insertEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), and TraCIServerAPI_TrafficLight::processGet().
|
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 118 of file MSPhasedTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::myPhases.
Referenced by MSSOTLTrafficLightLogic::checkPhases(), MSPhasedTrafficLightLogic::getIndexFromOffset(), MSPhasedTrafficLightLogic::getOffsetFromIndex(), MSPhasedTrafficLightLogic::getPhaseIndexAtTime(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSSOTLTrafficLightLogic::setToATargetPhase(), MSSOTLTrafficLightLogic::setupCTS(), MSSOTLTrafficLightLogic::trySwitch(), and MSSOTLTrafficLightLogic::updateCTS().
Returns the index of the logic at the given simulation step.
Implements MSTrafficLightLogic.
Definition at line 139 of file MSPhasedTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::getOffsetFromIndex(), MSPhasedTrafficLightLogic::getPhase(), MSTrafficLightLogic::myDefaultCycleTime, MSPhaseDefinition::myLastSwitch, and MSPhasedTrafficLightLogic::myStep.
|
protectedinherited |
Definition at line 370 of file MSSOTLTrafficLightLogic.cpp.
References Named::getID(), RandHelper::getRandomFrom(), MSSOTLTrafficLightLogic::getTargetPhaseMaxLastSelection(), MSSOTLTrafficLightLogic::lastChain, MSSOTLTrafficLightLogic::targetPhasesCTS, MSSOTLTrafficLightLogic::targetPhasesLastSelection, and WRITE_MESSAGE.
Referenced by decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSOTLTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), and MSSOTLTrafficLightLogic::getOutputSensorsLength().
|
virtualinherited |
Returns the number of phases.
Implements MSTrafficLightLogic.
Definition at line 107 of file MSPhasedTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::myPhases.
Referenced by MSSOTLWaveTrafficLightLogic::MSSOTLWaveTrafficLightLogic().
|
virtualinherited |
Returns the phases of this tls program.
Implements MSTrafficLightLogic.
Definition at line 113 of file MSPhasedTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::myPhases.
Referenced by MSSOTLTrafficLightLogic::checkPhases(), MSSOTLTrafficLightLogic::init(), MSSOTLTrafficLightLogic::setToATargetPhase(), and MSSOTLTrafficLightLogic::setupCTS().
|
inlineinherited |
Returns the vector of the low-level policies used by this high-level tll.
Definition at line 85 of file MSSOTLHiLevelTrafficLightLogic.h.
References MSSOTLHiLevelTrafficLightLogic::policies.
Referenced by choosePolicy(), MSSwarmTrafficLightLogic::choosePolicy(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), and MSSwarmTrafficLightLogic::updateSensitivities().
|
inlineinherited |
Returns this tl-logic's id.
Definition at line 172 of file MSTrafficLightLogic.h.
References MSTrafficLightLogic::myProgramID.
Referenced by Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), GUITrafficLightLogicWrapper::getParameterWindow(), libsumo::TrafficLight::getProgram(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSTrafficLightLogic::init(), and GUIViewTraffic::onGamingClick().
|
inlineprotectedinherited |
Definition at line 176 of file MSSOTLTrafficLightLogic.h.
References MSSOTLTrafficLightLogic::mySensors.
Referenced by MSSOTLWaveTrafficLightLogic::countVehicles(), getMeanSpeedForInputLanes(), getMeanSpeedForOutputLanes(), and MSSwarmTrafficLightLogic::updatePheromoneLevels().
|
inlineprotectedinherited |
Definition at line 156 of file MSSOTLTrafficLightLogic.h.
References Parameterised::getParameter(), and StringUtils::toDouble().
Referenced by MSSOTLTrafficLightLogic::init().
|
inherited |
Returns the duration spent in the current phase.
Definition at line 279 of file MSTrafficLightLogic.cpp.
References MSPhaseDefinition::duration, MSTrafficLightLogic::getCurrentPhaseDef(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), and MSTrafficLightLogic::getNextSwitchTime().
Referenced by MSTrafficLightLogic::getDefaultCycleTime().
|
inlineprotectedinherited |
Definition at line 152 of file MSSOTLTrafficLightLogic.h.
References Parameterised::getParameter(), and StringUtils::toInt().
Referenced by MSSOTLTrafficLightLogic::isThresholdPassed().
|
inherited |
ignore pedestrian crossing index in mesosim
Definition at line 358 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myIgnoredIndices.
|
virtual |
Initialises the tls with sensors on incoming and outgoing lanes Sensors are built in the simulation according to the type of sensor specified in the simulation parameter.
[in] | nb | The detector builder |
ProcessError | If something fails on initialisation |
Reimplemented from MSTrafficLightLogic.
Definition at line 38 of file MSDeterministicHiLevelTrafficLightLogic.cpp.
References choosePolicy(), DBG, Named::getID(), MSTrafficLightLogic::getLinks(), MSTrafficLightLogic::getLinksAt(), MSSOTLHiLevelTrafficLightLogic::init(), inputLanes, MSTrafficLightLogic::myLanes, MSTrafficLightLogic::myLinks, outputLanes, and WRITE_MESSAGE.
|
protectedinherited |
Checks the if the pushbutton was activated for the current stage
Definition at line 507 of file MSSOTLTrafficLightLogic.cpp.
References MSPushButton::anyActive(), MSPhasedTrafficLightLogic::getCurrentPhaseDef(), Parameterised::getParameter(), MSPhaseDefinition::getState(), MSPedestrianPushButton::loadPushButtons(), and MSSOTLTrafficLightLogic::m_pushButtons.
Referenced by canRelease(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSSwarmTrafficLightLogic::canRelease(), decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), and MSSwarmTrafficLightLogic::decideNextPhase().
|
protectedinherited |
Definition at line 306 of file MSSOTLTrafficLightLogic.cpp.
References DBG, MSSOTLTrafficLightLogic::decayThreshold, MSPhasedTrafficLightLogic::getCurrentPhaseDef(), Named::getID(), MSNet::getInstance(), MSPhasedTrafficLightLogic::getPhase(), MSPhaseDefinition::getState(), MSSOTLTrafficLightLogic::getThreshold(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::lastChain, RandHelper::rand(), MSSOTLTrafficLightLogic::targetPhasesCTS, time2string(), and WRITE_MESSAGE.
Referenced by MSSOTLPhaseTrafficLightLogic::canRelease(), canRelease(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSSwarmTrafficLightLogic::canRelease(), decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), and MSSwarmTrafficLightLogic::decideNextPhase().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::append(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByParameter(), MSDevice::getBoolParam(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSDevice_SSM::requestsTrajectories(), and MSDevice_SSM::useGeoCoords().
|
protectedinherited |
Definition at line 84 of file MSSOTLTrafficLightLogic.cpp.
|
protectedinherited |
Proceed to the next step.
MEMBER FACTORIZED TO PARENT CLASS (MSTrafficLightLogic)
Definition at line 92 of file MSPhasedTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::myStep, and MSPhasedTrafficLightLogic::setStep().
|
inherited |
Resets the states of controlled links.
[in] | vals | The state of controlled links to use |
Definition at line 243 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 298 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::myCurrentDurationIncrement.
Referenced by MSTrafficLightLogic::getDefaultCycleTime().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 86 of file Named.h.
Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBNodeCont::rename(), NBEdgeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().
|
inherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 45 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::addDistrict(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NIImporter_OpenStreetMap::insertNodeChecking(), NBEdge::Lane::Lane(), NIImporter_ArcView::load(), NIImporter_OpenDrive::loadNetwork(), NIXMLTrafficLightsHandler::myStartElement(), MSStateHandler::myStartElement(), ShapeHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), GNEAdditionalHandler::parseGenericParameter(), GNEConnection::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), GNEAdditional::setGenericParametersStr(), libsumo::Route::setParameter(), libsumo::Polygon::setParameter(), libsumo::POI::setParameter(), libsumo::TrafficLight::setParameter(), libsumo::Edge::setParameter(), and libsumo::Lane::setParameter().
|
inherited |
Replaces the phases and set the phase index.
Definition at line 196 of file MSPhasedTrafficLightLogic.cpp.
References MSPhasedTrafficLightLogic::deletePhases(), MSPhasedTrafficLightLogic::myPhases, and MSPhasedTrafficLightLogic::myStep.
|
protectedinherited |
Forces a specific step.
Definition at line 97 of file MSPhasedTrafficLightLogic.cpp.
References MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSPhasedTrafficLightLogic::myPhases, and MSPhasedTrafficLightLogic::myStep.
Referenced by MSPhasedTrafficLightLogic::proceedToNextStep(), MSSOTLTrafficLightLogic::setToATargetPhase(), and MSSOTLTrafficLightLogic::trySwitch().
|
inherited |
Applies the current signal states to controlled links.
[in] | t | The current time |
Definition at line 227 of file MSTrafficLightLogic.cpp.
References MSTrafficLightLogic::getCurrentPhaseDef(), MSPhaseDefinition::getState(), and MSTrafficLightLogic::myLinks.
Referenced by MSTLLogicControl::TLSLogicVariants::addLogic(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSTrafficLightLogic::SwitchCommand::execute(), MSRailCrossing::init(), MSRailSignal::init(), MSTLLogicControl::TLSLogicVariants::switchTo(), MSRailCrossing::trySwitch(), and MSRailSignal::trySwitch().
|
virtualinherited |
Switches to the next phase.
Implements MSTrafficLightLogic.
Definition at line 453 of file MSSOTLTrafficLightLogic.cpp.
References ANALYSIS_DBG, MSSOTLTrafficLightLogic::computeReturnTime(), MSSOTLTrafficLightLogic::decayThreshold, MSSOTLTrafficLightLogic::decideNextPhase(), MSPhasedTrafficLightLogic::getCurrentPhaseDef(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), MSPhasedTrafficLightLogic::getCurrentPhaseIndex(), MSNet::getCurrentTimeStep(), Named::getID(), MSNet::getInstance(), MSPhasedTrafficLightLogic::getPhase(), MSPhaseDefinition::getState(), MSSOTLTrafficLightLogic::getTargetPhaseMaxLastSelection(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSPhaseDefinition::isTarget(), MSSOTLTrafficLightLogic::lastChain, MSPhaseDefinition::myLastSwitch, MSSOTLTrafficLightLogic::mySensors, MSSOTLTrafficLightLogic::resetCTS(), MSPhasedTrafficLightLogic::setStep(), MSSOTLSensors::stepChanged(), MSSOTLTrafficLightLogic::targetPhasesLastSelection, time2string(), MSSOTLTrafficLightLogic::updateCTS(), and WRITE_MESSAGE.
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().
|
inherited |
write Params in the given outputdevice
Definition at line 111 of file Parameterised.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by ROVehicle::saveAsXML(), ROPerson::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), SUMOVTypeParameter::write(), GNEAdditional::writeAdditional(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), PointOfInterest::writeXML(), and SUMOPolygon::writeXML().
|
protected |
This pheronome is an indicator of congestion on input lanes.
Its levels refer to the average speed of vehicles passing the input lane: the lower the speed the higher the pheromone.
These levels are updated on every input lane, independently on lights state.
Definition at line 81 of file MSDeterministicHiLevelTrafficLightLogic.h.
Referenced by getMeanSpeedForInputLanes(), and init().
|
protectedinherited |
Definition at line 118 of file MSSOTLTrafficLightLogic.h.
Referenced by MSSOTLTrafficLightLogic::isPushButtonPressed(), and MSSOTLTrafficLightLogic::~MSSOTLTrafficLightLogic().
|
protectedinherited |
A value for enlarge the current duration.
Definition at line 422 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::setCurrentDurationIncrement(), and MSSimpleTrafficLightLogic::trySwitch().
|
protectedinherited |
The cycle time (without changes)
Definition at line 428 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::getDefaultCycleTime(), MSPhasedTrafficLightLogic::getIndexFromOffset(), MSSimpleTrafficLightLogic::getIndexFromOffset(), MSPhasedTrafficLightLogic::getPhaseIndexAtTime(), MSSimpleTrafficLightLogic::getPhaseIndexAtTime(), MSOffTrafficLightLogic::MSOffTrafficLightLogic(), MSPhasedTrafficLightLogic::MSPhasedTrafficLightLogic(), MSRailSignal::MSRailSignal(), and MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic().
|
staticprotectedinherited |
An empty lane vector.
Definition at line 431 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::getLanesAt().
|
protectedinherited |
The name of the object.
Definition at line 130 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), METriggeredCalibrator::execute(), MSCalibrator::execute(), GNEPoly::getAttribute(), GNEPOI::getAttribute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), MSLane::getSurroundingVehicles(), ROEdge::getTravelTime(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSLane::isInsertionSuccess(), MSCalibrator::myStartElement(), NBNode::NBNode(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSE2Collector::notifyMove(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
list of indices that are ignored in mesoscopic simulatino
Definition at line 434 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::adaptLinkInformationFrom(), MSTrafficLightLogic::ignoreLinkIndex(), and MSTrafficLightLogic::init().
|
protectedinherited |
The list of LaneVectors; each vector contains the incoming lanes that belong to the same link index.
Definition at line 416 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::adaptLinkInformationFrom(), MSTrafficLightLogic::addLink(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSTrafficLightLogic::getLanesAt(), MSTrafficLightLogic::getLaneVectors(), init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), and MSSwarmTrafficLightLogic::resetLaneCheck().
|
protectedinherited |
The list of LinkVectors; each vector contains the links that belong to the same link index.
Definition at line 413 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::adaptLinkInformationFrom(), MSTrafficLightLogic::addLink(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSTrafficLightLogic::collectLinkStates(), MSRailSignal::getAppropriateState(), MSTrafficLightLogic::getLinkIndex(), MSTrafficLightLogic::getLinks(), MSTrafficLightLogic::getLinksAt(), MSRailCrossing::init(), init(), MSRailSignal::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSTrafficLightLogic::initMesoTLSPenalties(), MSOffTrafficLightLogic::rebuildPhase(), MSSwarmTrafficLightLogic::resetLaneCheck(), MSTrafficLightLogic::resetLinkStates(), and MSTrafficLightLogic::setTrafficLightSignals().
|
protectedinherited |
The type of the logic.
Definition at line 410 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::getLogicType().
|
protectedinherited |
A list of duration overrides.
Definition at line 419 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::addOverridingDuration(), and MSSimpleTrafficLightLogic::trySwitch().
|
protectedinherited |
The list of phases this logic uses.
Definition at line 176 of file MSPhasedTrafficLightLogic.h.
Referenced by MSSOTLWaveTrafficLightLogic::canRelease(), MSPhasedTrafficLightLogic::deletePhases(), MSPhasedTrafficLightLogic::getCurrentPhaseDef(), MSPhasedTrafficLightLogic::getIndexFromOffset(), MSPhasedTrafficLightLogic::getOffsetFromIndex(), MSPhasedTrafficLightLogic::getPhase(), MSPhasedTrafficLightLogic::getPhaseNumber(), MSPhasedTrafficLightLogic::getPhases(), MSPhasedTrafficLightLogic::MSPhasedTrafficLightLogic(), MSSOTLWaveTrafficLightLogic::MSSOTLWaveTrafficLightLogic(), MSPhasedTrafficLightLogic::setPhases(), MSPhasedTrafficLightLogic::setStep(), and MSSOTLTrafficLightLogic::~MSSOTLTrafficLightLogic().
|
protectedinherited |
The id of the logic.
Definition at line 407 of file MSTrafficLightLogic.h.
Referenced by MSTrafficLightLogic::getProgramID(), MSDelayBasedTrafficLightLogic::init(), and MSActuatedTrafficLightLogic::init().
|
protectedinherited |
The current step.
Definition at line 192 of file MSPhasedTrafficLightLogic.h.
Referenced by MSPhasedTrafficLightLogic::changeStepAndDuration(), MSPhasedTrafficLightLogic::getCurrentPhaseDef(), MSPhasedTrafficLightLogic::getCurrentPhaseIndex(), MSPhasedTrafficLightLogic::getPhaseIndexAtTime(), MSPhasedTrafficLightLogic::proceedToNextStep(), MSPhasedTrafficLightLogic::setPhases(), and MSPhasedTrafficLightLogic::setStep().
|
protectedinherited |
The current switch command.
Definition at line 425 of file MSTrafficLightLogic.h.
Referenced by MSPhasedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSTrafficLightLogic::getNextSwitchTime(), and MSTrafficLightLogic::MSTrafficLightLogic().
|
protected |
This pheromone is an indicator of congestion on output lanes.
Its levels refer to the average speed of vehicles passing the output lane: the lower the speed the higher the pheromone.
These levels are updated on every output lane, independently on lights state.
Definition at line 89 of file MSDeterministicHiLevelTrafficLightLogic.h.
Referenced by getMeanSpeedForOutputLanes(), and init().