![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <TrafficLight.h>
Static Public Member Functions | |
| static std::vector< TraCILogic > | getAllProgramLogics (const std::string &tlsID) |
| static std::vector< std::string > | getBlockingVehicles (const std::string &tlsID, int linkIndex) |
| static std::vector< TraCILogic > | getCompleteRedYellowGreenDefinition (const std::string &tlsID) |
| static std::vector< std::string > | getControlledJunctions (const std::string &tlsID) |
| static std::vector< std::string > | getControlledLanes (const std::string &tlsID) |
| static std::vector< std::vector< TraCILink > > | getControlledLinks (const std::string &tlsID) |
| static double | getNextSwitch (const std::string &tlsID) |
| static int | getPhase (const std::string &tlsID) |
| static double | getPhaseDuration (const std::string &tlsID) |
| static std::string | getPhaseName (const std::string &tlsID) |
| static std::vector< std::string > | getPriorityVehicles (const std::string &tlsID, int linkIndex) |
| static std::string | getProgram (const std::string &tlsID) |
| static std::string | getRedYellowGreenState (const std::string &tlsID) |
| static std::vector< std::string > | getRivalVehicles (const std::string &tlsID, int linkIndex) |
| static int | getServedPersonCount (const std::string &tlsID, int index) |
| static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper) |
| static std::shared_ptr< VariableWrapper > | makeWrapper () |
| static void | setCompleteRedYellowGreenDefinition (const std::string &tlsID, const TraCILogic &logic) |
| static void | setPhase (const std::string &tlsID, const int index) |
| static void | setPhaseDuration (const std::string &tlsID, const double phaseDuration) |
| static void | setPhaseName (const std::string &tlsID, const std::string &name) |
| static void | setProgram (const std::string &tlsID, const std::string &programID) |
| static void | setProgramLogic (const std::string &tlsID, const TraCILogic &logic) |
| LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void | setRedYellowGreenState (const std::string &tlsID, const std::string &state) |
Private Member Functions | |
| TrafficLight ()=delete | |
| invalidated standard constructor More... | |
Static Private Member Functions | |
| static MSTLLogicControl::TLSLogicVariants & | getTLS (const std::string &id) |
Static Private Attributes | |
| static ContextSubscriptionResults | myContextSubscriptionResults |
| static SubscriptionResults | mySubscriptionResults |
Definition at line 51 of file TrafficLight.h.
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 69 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getAllLogics(), getTLS(), STEPS2TIME, and libsumo::TraCILogic::subParameter.
Referenced by getCompleteRedYellowGreenDefinition().
|
static |
Definition at line 206 of file TrafficLight.cpp.
References MSTrafficLightLogic::getBlockingVehicles(), MSTLLogicControl::TLSLogicVariants::getDefault(), MSTrafficLightLogic::getNumLinks(), getTLS(), and toString().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
inlinestatic |
Definition at line 85 of file TrafficLight.h.
References getAllProgramLogics().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 87 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getLinks(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 100 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getLaneVectors(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 113 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), Named::getID(), MSLink::getLane(), MSTrafficLightLogic::getLaneVectors(), MSTrafficLightLogic::getLinks(), getTLS(), and MSLink::getViaLane().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 161 of file TrafficLight.cpp.
References getTLS(), and STEPS2TIME.
Referenced by handleVariable().
|
static |
Definition at line 143 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseIndex(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 155 of file TrafficLight.cpp.
References getTLS(), and STEPS2TIME.
Referenced by handleVariable().
|
static |
Definition at line 149 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), MSPhaseDefinition::getName(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 235 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTLLogicControl::TLSLogicVariants::getDefault(), MSTrafficLightLogic::getNumLinks(), Parameterised::getParameter(), MSTrafficLightLogic::getPriorityVehicles(), getTLS(), LIBSUMO_GET_PARAMETER_WITH_KEY_IMPLEMENTATION, and toString().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 137 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getProgramID(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 63 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), MSPhaseDefinition::getState(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 221 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getDefault(), MSTrafficLightLogic::getNumLinks(), MSTrafficLightLogic::getRivalVehicles(), getTLS(), and toString().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 166 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTransportable::getEdge(), MSLane::getEdge(), MSTransportable::getLane(), MSLane::getLinkCont(), MSTrafficLightLogic::getLinksAt(), MSEdge::getPersons(), MSTrafficLightLogic::getPhaseNumber(), MSTrafficLightLogic::getPhases(), getTLS(), and toString().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
staticprivate |
Definition at line 360 of file TrafficLight.cpp.
References MSTLLogicControl::get(), MSNet::getInstance(), and MSNet::getTLSControl().
Referenced by getAllProgramLogics(), getBlockingVehicles(), getControlledJunctions(), getControlledLanes(), getControlledLinks(), getNextSwitch(), getPhase(), getPhaseDuration(), getPhaseName(), getPriorityVehicles(), getProgram(), getRedYellowGreenState(), getRivalVehicles(), getServedPersonCount(), setCompleteRedYellowGreenDefinition(), setPhase(), setPhaseDuration(), setPhaseName(), setProgram(), setProgramLogic(), and setRedYellowGreenState().
|
static |
Definition at line 375 of file TrafficLight.cpp.
References getControlledJunctions(), getControlledLanes(), getNextSwitch(), getPhase(), getPhaseDuration(), getPhaseName(), getProgram(), getRedYellowGreenState(), libsumo::ID_COUNT, libsumo::TL_CONTROLLED_JUNCTIONS, libsumo::TL_CONTROLLED_LANES, libsumo::TL_CURRENT_PHASE, libsumo::TL_CURRENT_PROGRAM, libsumo::TL_NEXT_SWITCH, libsumo::TL_PHASE_DURATION, libsumo::TL_RED_YELLOW_GREEN_STATE, libsumo::TRACI_ID_LIST, libsumo::VAR_NAME, libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().
Referenced by makeWrapper(), and TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 369 of file TrafficLight.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
|
inlinestatic |
Definition at line 88 of file TrafficLight.h.
References getTLS(), and setProgramLogic().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 264 of file TrafficLight.cpp.
References MSTrafficLightLogic::changeStepAndDuration(), MSPhaseDefinition::duration, MSTLLogicControl::TLSLogicVariants::getActive(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSTrafficLightLogic::getPhase(), MSTrafficLightLogic::getPhaseNumber(), getTLS(), and toString().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 293 of file TrafficLight.cpp.
References MSTrafficLightLogic::changeStepAndDuration(), MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseIndex(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), getTLS(), and TIME2STEPS.
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 276 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 283 of file TrafficLight.cpp.
References MSNet::getInstance(), getTLS(), and MSTLLogicControl::TLSLogicVariants::switchTo().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 302 of file TrafficLight.cpp.
References ACTUATED, MSTLLogicControl::TLSLogicVariants::addLogic(), libsumo::TraCILogic::currentPhaseIndex, DELAYBASED, libsumo::TraCIPhase::duration, MSTLLogicControl::TLSLogicVariants::getActive(), MSNet::getInstance(), MSTLLogicControl::TLSLogicVariants::getLogic(), getTLS(), MSNet::getTLSControl(), MSTrafficLightLogic::init(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, libsumo::TraCIPhase::maxDur, libsumo::TraCIPhase::minDur, libsumo::TraCIPhase::name, libsumo::TraCIPhase::next, libsumo::TraCILogic::phases, libsumo::TraCILogic::programID, Parameterised::setParameter(), libsumo::TraCIPhase::state, STATIC, libsumo::TraCILogic::subParameter, TIME2STEPS, toString(), and libsumo::TraCILogic::type.
Referenced by setCompleteRedYellowGreenDefinition().
|
static |
Definition at line 258 of file TrafficLight.cpp.
References MSNet::getInstance(), getTLS(), and MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
staticprivate |
Definition at line 101 of file TrafficLight.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 100 of file TrafficLight.h.
Referenced by makeWrapper().