SUMO - Simulation of Urban MObility
|
APIs for getting/setting traffic light values via TraCI. More...
#include <TraCIServerAPI_TLS.h>
Static Public Member Functions | |
static bool | processGet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xa2: Get Traffic Lights Variable) | |
static bool | processSet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xc2: Change Traffic Lights State) |
Private Member Functions | |
TraCIServerAPI_TLS & | operator= (const TraCIServerAPI_TLS &s) |
invalidated assignment operator | |
TraCIServerAPI_TLS (const TraCIServerAPI_TLS &s) | |
invalidated copy constructor |
APIs for getting/setting traffic light values via TraCI.
Definition at line 48 of file TraCIServerAPI_TLS.h.
|
private |
invalidated copy constructor
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xa2: Get Traffic Lights Variable)
[in] | server | The TraCI-server-instance which schedules this request |
[in] | inputStorage | The storage to read the command from |
[out] | outputStorage | The storage to write the result to |
Definition at line 55 of file TraCIServerAPI_TLS.cpp.
References CMD_GET_TL_VARIABLE, MSPhaseDefinition::duration, MSTLLogicControl::get(), MSTLLogicControl::TLSLogicVariants::getActive(), MSTLLogicControl::TLSLogicVariants::getAllLogics(), MSTLLogicControl::getAllTLIds(), MSTrafficLightLogic::getCurrentPhaseDef(), MSTrafficLightLogic::getCurrentPhaseIndex(), Named::getID(), MSNet::getInstance(), MSLink::getLane(), MSTrafficLightLogic::getLanes(), MSTrafficLightLogic::getLinks(), MSTrafficLightLogic::getNextSwitchTime(), MSTrafficLightLogic::getPhase(), MSTrafficLightLogic::getPhaseNumber(), MSTrafficLightLogic::getProgramID(), MSPhaseDefinition::getState(), MSNet::getTLSControl(), ID_COUNT, ID_LIST, MSTLLogicControl::knows(), MSPhaseDefinition::maxDuration, MSPhaseDefinition::minDuration, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_TL_VARIABLE, RTYPE_OK, TL_COMPLETE_DEFINITION_RYG, TL_CONTROLLED_JUNCTIONS, TL_CONTROLLED_LANES, TL_CONTROLLED_LINKS, TL_CURRENT_PHASE, TL_CURRENT_PROGRAM, TL_NEXT_SWITCH, TL_PHASE_DURATION, TL_RED_YELLOW_GREEN_STATE, TYPE_COMPOUND, TYPE_INTEGER, TYPE_STRING, TYPE_STRINGLIST, traci::TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), traci::TraCIServer::writeResponseWithLength(), traci::TraCIServer::writeStatusCmd(), tcpip::Storage::writeStorage(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by traci::TraCIServer::TraCIServer().
|
static |
Processes a set value command (Command 0xc2: Change Traffic Lights State)
[in] | server | The TraCI-server-instance which schedules this request |
[in] | inputStorage | The storage to read the command from |
[out] | outputStorage | The storage to write the result to |
Definition at line 230 of file TraCIServerAPI_TLS.cpp.
References MSTLLogicControl::TLSLogicVariants::addLogic(), MSTrafficLightLogic::changeStepAndDuration(), CMD_SET_TL_VARIABLE, DELTA_T, MSPhaseDefinition::duration, MSTLLogicControl::TLSLogicVariants::executeOnSwitchActions(), MSTLLogicControl::get(), MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseIndex(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSTLLogicControl::TLSLogicVariants::getLogic(), MSTrafficLightLogic::getPhase(), MSTrafficLightLogic::getPhaseNumber(), MSNet::getTLSControl(), tcpip::Storage::readInt(), tcpip::Storage::readString(), traci::TraCIServer::readTypeCheckingInt(), traci::TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RTYPE_OK, MSTrafficLightLogic::setTrafficLightSignals(), MSTLLogicControl::TLSLogicVariants::switchTo(), TL_COMPLETE_PROGRAM_RYG, TL_PHASE_DURATION, TL_PHASE_INDEX, TL_PROGRAM, TL_RED_YELLOW_GREEN_STATE, TYPE_COMPOUND, traci::TraCIServer::writeErrorStatusCmd(), and traci::TraCIServer::writeStatusCmd().
Referenced by traci::TraCIServer::TraCIServer().