![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <TrafficLight.h>
Static Public Member Functions | |
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 int | getIDCount () |
static std::vector< std::string > | getIDList () |
static double | getNextSwitch (const std::string &tlsID) |
static std::string | getParameter (const std::string &tlsID, const std::string ¶mName) |
static int | getPhase (const std::string &tlsID) |
static double | getPhaseDuration (const std::string &tlsID) |
static std::string | getPhaseName (const std::string &tlsID) |
static std::string | getProgram (const std::string &tlsID) |
static std::string | getRedYellowGreenState (const std::string &tlsID) |
static int | getServedPersonCount (const std::string &tlsID, int index) |
static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper) |
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > | makeWrapper () |
static void | setCompleteRedYellowGreenDefinition (const std::string &tlsID, const TraCILogic &logic) |
static void | setParameter (const std::string &tlsID, const std::string ¶mName, const std::string &value) |
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 | 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 53 of file TrafficLight.h.
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 70 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getAllLogics(), getTLS(), libsumo::TraCILogic::phases, STEPS2TIME, and libsumo::TraCILogic::subParameter.
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 88 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getLinks(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 101 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getLaneVectors(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 114 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 58 of file TrafficLight.cpp.
References getIDList().
Referenced by handleVariable().
|
static |
Definition at line 52 of file TrafficLight.cpp.
References MSTLLogicControl::getAllTLIds(), MSNet::getInstance(), and MSNet::getTLSControl().
Referenced by getIDCount(), and handleVariable().
|
static |
Definition at line 161 of file TrafficLight.cpp.
References getTLS(), and STEPS2TIME.
Referenced by handleVariable().
|
static |
Definition at line 206 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), Parameterised::getParameter(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 144 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 150 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), MSPhaseDefinition::getName(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 138 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getProgramID(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 64 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), MSPhaseDefinition::getState(), and getTLS().
Referenced by handleVariable().
|
static |
Definition at line 166 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSLane::getEdge(), MSTransportable::getEdge(), MSLane::getLinkCont(), MSTrafficLightLogic::getLinksAt(), MSPerson::getNextEdge(), MSEdge::getPersons(), MSTrafficLightLogic::getPhaseNumber(), MSTrafficLightLogic::getPhases(), getTLS(), and toString().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
staticprivate |
Definition at line 314 of file TrafficLight.cpp.
References MSTLLogicControl::get(), MSNet::getInstance(), and MSNet::getTLSControl().
Referenced by getCompleteRedYellowGreenDefinition(), getControlledJunctions(), getControlledLanes(), getControlledLinks(), getNextSwitch(), getParameter(), getPhase(), getPhaseDuration(), getPhaseName(), getProgram(), getRedYellowGreenState(), getServedPersonCount(), setCompleteRedYellowGreenDefinition(), setParameter(), setPhase(), setPhaseDuration(), setPhaseName(), setProgram(), and setRedYellowGreenState().
|
static |
Definition at line 329 of file TrafficLight.cpp.
References getControlledJunctions(), getControlledLanes(), getIDCount(), getIDList(), 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 323 of file TrafficLight.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
Referenced by libsumo::Helper::handleSingleSubscription().
|
static |
Definition at line 256 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::addLogic(), libsumo::TraCILogic::currentPhaseIndex, libsumo::TraCIPhase::duration, MSNet::getInstance(), MSTLLogicControl::TLSLogicVariants::getLogic(), getTLS(), MSNet::getTLSControl(), MSTrafficLightLogic::init(), libsumo::TraCIPhase::maxDur, libsumo::TraCIPhase::minDur, libsumo::TraCIPhase::name, libsumo::TraCIPhase::next, libsumo::TraCILogic::phases, libsumo::TraCILogic::programID, libsumo::TraCIPhase::state, libsumo::TraCILogic::subParameter, TIME2STEPS, TLTYPE_ACTUATED, TLTYPE_DELAYBASED, TLTYPE_STATIC, toString(), and libsumo::TraCILogic::type.
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 305 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), getTLS(), and Parameterised::setParameter().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 218 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 247 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 230 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 237 of file TrafficLight.cpp.
References MSNet::getInstance(), getTLS(), and MSTLLogicControl::TLSLogicVariants::switchTo().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 212 of file TrafficLight.cpp.
References MSNet::getInstance(), getTLS(), and MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
staticprivate |
Definition at line 94 of file TrafficLight.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 93 of file TrafficLight.h.
Referenced by makeWrapper().