![]() |
Eclipse SUMO - Simulation of Urban MObility
|
APIs for getting/setting traffic light values via TraCI. More...
#include <TraCIServerAPI_TrafficLight.h>
Static Public Member Functions | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xa2: Get Traffic Lights Variable) More... | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xc2: Change Traffic Lights State) More... | |
Private Member Functions | |
TraCIServerAPI_TrafficLight & | operator= (const TraCIServerAPI_TrafficLight &s) |
invalidated assignment operator More... | |
TraCIServerAPI_TrafficLight (const TraCIServerAPI_TrafficLight &s) | |
invalidated copy constructor More... | |
APIs for getting/setting traffic light values via TraCI.
Definition at line 37 of file TraCIServerAPI_TrafficLight.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 39 of file TraCIServerAPI_TrafficLight.cpp.
References libsumo::CMD_GET_TL_VARIABLE, libsumo::CMD_SET_TL_VARIABLE, libsumo::TraCIPhase::duration, MSTLLogicControl::get(), MSTLLogicControl::TLSLogicVariants::getActive(), libsumo::TrafficLight::getCompleteRedYellowGreenDefinition(), libsumo::TrafficLight::getControlledLinks(), MSTrafficLightLogic::getCurrentPhaseDef(), MSNet::getInstance(), MSTrafficLightLogic::getLaneVectors(), libsumo::TrafficLight::getParameter(), Parameterised::getParametersMap(), libsumo::TrafficLight::getServedPersonCount(), MSPhaseDefinition::getState(), MSNet::getTLSControl(), TraCIServer::getWrapperStorage(), libsumo::TrafficLight::handleVariable(), TraCIServer::initWrapper(), libsumo::TraCIPhase::maxDur, libsumo::TraCIPhase::minDur, libsumo::TraCIPhase::name, libsumo::TraCIPhase::next, tcpip::Storage::readString(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_TL_VARIABLE, libsumo::RTYPE_OK, libsumo::TraCIPhase::state, libsumo::TL_COMPLETE_DEFINITION_RYG, libsumo::TL_CONTROLLED_LINKS, libsumo::TL_EXTERNAL_STATE, toHex(), libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::TYPE_STRINGLIST, libsumo::TYPE_UBYTE, libsumo::VAR_PARAMETER, libsumo::VAR_PERSON_NUMBER, tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeStorage(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by 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 211 of file TraCIServerAPI_TrafficLight.cpp.
References libsumo::CMD_SET_TL_VARIABLE, libsumo::TraCILogic::currentPhaseIndex, libsumo::TraCILogic::phases, libsumo::TraCILogic::programID, tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingStringList(), tcpip::Storage::readUnsignedByte(), libsumo::RTYPE_OK, libsumo::TrafficLight::setCompleteRedYellowGreenDefinition(), libsumo::TrafficLight::setParameter(), libsumo::TrafficLight::setPhase(), libsumo::TrafficLight::setPhaseDuration(), libsumo::TrafficLight::setPhaseName(), libsumo::TrafficLight::setProgram(), libsumo::TrafficLight::setRedYellowGreenState(), libsumo::TraCILogic::subParameter, libsumo::TL_COMPLETE_PROGRAM_RYG, libsumo::TL_PHASE_DURATION, libsumo::TL_PHASE_INDEX, libsumo::TL_PROGRAM, libsumo::TL_RED_YELLOW_GREEN_STATE, toHex(), libsumo::TraCILogic::type, libsumo::TYPE_COMPOUND, libsumo::VAR_NAME, libsumo::VAR_PARAMETER, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().