![]() |
SUMO - Simulation of Urban MObility
|
C++ TraCI client API implementation. More...
#include <TraCI_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 | |
| TraCI_TrafficLight & | operator= (const TraCI_TrafficLight &src) |
| invalidated assignment operator More... | |
| TraCI_TrafficLight () | |
| invalidated standard constructor More... | |
| TraCI_TrafficLight (const TraCI_TrafficLight &src) | |
| invalidated copy constructor More... | |
Static Private Member Functions | |
| static MSTLLogicControl::TLSLogicVariants & | getTLS (const std::string &id) |
C++ TraCI client API implementation.
Definition at line 50 of file TraCI_TrafficLight.h.
|
private |
invalidated standard constructor
|
private |
invalidated copy constructor
|
static |
Definition at line 62 of file TraCI_TrafficLight.cpp.
References MSPhaseDefinition::duration, MSTLLogicControl::TLSLogicVariants::getAllLogics(), MSPhaseDefinition::getState(), getTLS(), MSPhaseDefinition::maxDuration, MSPhaseDefinition::minDuration, and TraCILogic::subParameter.
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 79 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getLinks(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 92 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getLaneVectors(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 105 of file TraCI_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 50 of file TraCI_TrafficLight.cpp.
References getIDList().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 44 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::getAllTLIds(), MSNet::getInstance(), and MSNet::getTLSControl().
Referenced by getIDCount(), and TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 147 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getNextSwitchTime(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 153 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), Parameterised::getParameter(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 135 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseIndex(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 141 of file TraCI_TrafficLight.cpp.
References MSPhaseDefinition::duration, MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 129 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getProgramID(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
static |
Definition at line 56 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), MSPhaseDefinition::getState(), and getTLS().
Referenced by TraCIServerAPI_TrafficLight::processGet().
|
staticprivate |
Definition at line 223 of file TraCI_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 197 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::addLogic(), TraCILogic::currentPhaseIndex, TraCIPhase::duration, TraCIPhase::duration1, TraCIPhase::duration2, MSNet::getInstance(), MSTLLogicControl::TLSLogicVariants::getLogic(), getTLS(), TraCIPhase::phase, TraCILogic::phases, TraCILogic::subID, and TraCILogic::subParameter.
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 217 of file TraCI_TrafficLight.cpp.
References MSTLLogicControl::TLSLogicVariants::getActive(), getTLS(), and Parameterised::setParameter().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 165 of file TraCI_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 188 of file TraCI_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 178 of file TraCI_TrafficLight.cpp.
References MSNet::getInstance(), getTLS(), and MSTLLogicControl::TLSLogicVariants::switchTo().
Referenced by TraCIServerAPI_TrafficLight::processSet().
|
static |
Definition at line 159 of file TraCI_TrafficLight.cpp.
References MSNet::getInstance(), getTLS(), and MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline().
Referenced by TraCIServerAPI_TrafficLight::processSet().