Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_TrafficLight Class Reference

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_TrafficLightoperator= (const TraCIServerAPI_TrafficLight &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_TrafficLight (const TraCIServerAPI_TrafficLight &s)
 invalidated copy constructor More...
 

Static Private Member Functions

static void writeConstraint (TraCIServer &server, const libsumo::TraCISignalConstraint &c)
 

Detailed Description

APIs for getting/setting traffic light values via TraCI.

Definition at line 36 of file TraCIServerAPI_TrafficLight.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_TrafficLight()

TraCIServerAPI_TrafficLight::TraCIServerAPI_TrafficLight ( const TraCIServerAPI_TrafficLight s)
private

invalidated copy constructor

Member Function Documentation

◆ operator=()

TraCIServerAPI_TrafficLight& TraCIServerAPI_TrafficLight::operator= ( const TraCIServerAPI_TrafficLight s)
private

invalidated assignment operator

◆ processGet()

bool TraCIServerAPI_TrafficLight::processGet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

Processes a get value command (Command 0xa2: Get Traffic Lights Variable)

Parameters
[in]serverThe TraCI-server-instance which schedules this request
[in]inputStorageThe storage to read the command from
[out]outputStorageThe 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().

Here is the caller graph for this function:

◆ processSet()

bool TraCIServerAPI_TrafficLight::processSet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

◆ writeConstraint()


The documentation for this class was generated from the following files: