SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraCIServerAPI_TLS Class Reference

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) More...
 
static bool processSet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc2: Change Traffic Lights State) More...
 

Private Member Functions

TraCIServerAPI_TLSoperator= (const TraCIServerAPI_TLS &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_TLS (const TraCIServerAPI_TLS &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting traffic light values via TraCI.

Definition at line 48 of file TraCIServerAPI_TLS.h.

Constructor & Destructor Documentation

TraCIServerAPI_TLS::TraCIServerAPI_TLS ( const TraCIServerAPI_TLS s)
private

invalidated copy constructor

Member Function Documentation

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

invalidated assignment operator

bool TraCIServerAPI_TLS::processGet ( traci::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 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().

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

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