Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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)
 
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_TrafficLightoperator= (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)
 

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, TraCIServer::getWrapperStorage(), TraCIServer::initWrapper(), tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_TL_VARIABLE, libsumo::RTYPE_OK, libsumo::TL_CONSTRAINT_SWAP, toHex(), libsumo::TYPE_COMPOUND, TraCIServer::wrapSignalConstraintVector(), TraCIServer::writeErrorStatusCmd(), TraCIServer::writeResponseWithLength(), and TraCIServer::writeStatusCmd().

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: