![]() |
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 SUMOTime | 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 SUMOTime | getPhaseDuration (const std::string &tlsID) |
static std::string | getProgram (const std::string &tlsID) |
static std::string | getRedYellowGreenState (const std::string &tlsID) |
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 SUMOTime phaseDuration) |
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 & | operator= (const TrafficLight &src) |
invalidated assignment operator More... | |
TrafficLight () | |
invalidated standard constructor More... | |
TrafficLight (const TrafficLight &src) | |
invalidated copy constructor More... | |
Static Private Member Functions | |
static MSTLLogicControl::TLSLogicVariants & | getTLS (const std::string &id) |
Definition at line 51 of file TrafficLight.h.
|
private |
invalidated standard constructor
|
private |
invalidated copy constructor
|
static |
Definition at line 63 of file TrafficLight.cpp.
References MSPhaseDefinition::duration, MSTLLogicControl::TLSLogicVariants::getAllLogics(), MSPhaseDefinition::getState(), getTLS(), MSPhaseDefinition::maxDuration, MSPhaseDefinition::minDuration, and libsumo::TraCILogic::subParameter.
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 80 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getLinks(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 93 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getLaneVectors(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 106 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 51 of file TrafficLight.cpp.
References getIDList().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 45 of file TrafficLight.cpp.
References MSTLLogicControl::getAllTLIds(), MSNet::getInstance(), and MSNet::getTLSControl().
Referenced by getIDCount(), and TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 148 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getNextSwitchTime(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 154 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), Parameterised::getParameter(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 136 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseIndex(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 142 of file TrafficLight.cpp.
References MSPhaseDefinition::duration, MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 130 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getProgramID(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 57 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), MSPhaseDefinition::getState(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
staticprivate |
Definition at line 224 of file TrafficLight.cpp.
References MSTLLogicControl::get(), MSNet::getInstance(), and MSNet::getTLSControl().
Referenced by getCompleteRedYellowGreenDefinition(), getControlledJunctions(), getControlledLanes(), getControlledLinks(), getNextSwitch(), getParameter(), getPhase(), getPhaseDuration(), getProgram(), getRedYellowGreenState(), setCompleteRedYellowGreenDefinition(), setParameter(), setPhase(), setPhaseDuration(), setProgram(), and setRedYellowGreenState().
|
private |
invalidated assignment operator
|
static |
Definition at line 198 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::addLogic(), libsumo::TraCILogic::currentPhaseIndex, libsumo::TraCIPhase::duration, libsumo::TraCIPhase::duration1, libsumo::TraCIPhase::duration2, MSNet::getInstance(), MSTLLogicControl::TLSLogicVariants::getLogic(), getTLS(), libsumo::TraCIPhase::phase, libsumo::TraCILogic::phases, libsumo::TraCILogic::subID, and libsumo::TraCILogic::subParameter.
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 218 of file TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), getTLS(), and Parameterised::setParameter().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 166 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 189 of file TrafficLight.cpp.
References MSTrafficLightLogic::changeStepAndDuration(), MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseIndex(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 179 of file TrafficLight.cpp.
References MSNet::getInstance(), getTLS(), and MSTLLogicControl::TLSLogicVariants::switchTo().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 160 of file TrafficLight.cpp.
References MSNet::getInstance(), getTLS(), and MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline().
Referenced by TraCIServerAPI_TrafficLight::processSet().