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) | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xc2: Change Traffic Lights State) | |
Private Member Functions | |
TraCIServerAPI_TrafficLight & | operator= (const TraCIServerAPI_TrafficLight &s) |
invalidated assignment operator | |
TraCIServerAPI_TrafficLight (const TraCIServerAPI_TrafficLight &s) | |
invalidated copy constructor | |
Static Private Member Functions | |
static void | writeConstraint (TraCIServer &server, const libsumo::TraCISignalConstraint &c) |
APIs for getting/setting traffic light values via TraCI.
Definition at line 36 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, MSTLLogicControl::get(), MSTLLogicControl::TLSLogicVariants::getActive(), MSTrafficLightLogic::getCurrentPhaseDef(), MSNet::getInstance(), MSTrafficLightLogic::getLaneVectors(), Parameterised::getParametersMap(), MSPhaseDefinition::getState(), MSNet::getTLSControl(), TraCIServer::getWrapperStorage(), TraCIServer::initWrapper(), tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_TL_VARIABLE, libsumo::RTYPE_OK, tcpip::Storage::size(), libsumo::TL_BLOCKING_VEHICLES, libsumo::TL_COMPLETE_DEFINITION_RYG, libsumo::TL_CONSTRAINT, libsumo::TL_CONSTRAINT_BYFOE, libsumo::TL_CONSTRAINT_SWAP, libsumo::TL_CONTROLLED_LINKS, libsumo::TL_EXTERNAL_STATE, libsumo::TL_PRIORITY_VEHICLES, libsumo::TL_RIVAL_VEHICLES, toHex(), libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::TYPE_STRINGLIST, libsumo::TYPE_UBYTE, libsumo::VAR_PERSON_NUMBER, libsumo::StorageHelper::writeCompound(), writeConstraint(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeStorage(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), libsumo::StorageHelper::writeTypedDouble(), libsumo::StorageHelper::writeTypedInt(), libsumo::StorageHelper::writeTypedString(), libsumo::StorageHelper::writeTypedStringList(), 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 268 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::TraCILogic::subParameter, libsumo::TL_COMPLETE_PROGRAM_RYG, libsumo::TL_CONSTRAINT_ADD, libsumo::TL_CONSTRAINT_REMOVE, libsumo::TL_CONSTRAINT_UPDATE, 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().
|
staticprivate |
Definition at line 486 of file TraCIServerAPI_TrafficLight.cpp.
References libsumo::TraCISignalConstraint::active, libsumo::TraCISignalConstraint::foeId, libsumo::TraCISignalConstraint::foeSignal, TraCIServer::getWrapperStorage(), libsumo::TraCISignalConstraint::limit, libsumo::TraCISignalConstraint::mustWait, libsumo::TraCISignalConstraint::param, libsumo::TraCISignalConstraint::signalId, libsumo::TraCISignalConstraint::tripId, libsumo::TraCISignalConstraint::type, libsumo::StorageHelper::writeTypedByte(), libsumo::StorageHelper::writeTypedInt(), libsumo::StorageHelper::writeTypedString(), and libsumo::StorageHelper::writeTypedStringList().
Referenced by processGet().