Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
TraCIServerAPI_Junction Class Reference

APIs for getting/setting junction values via TraCI. More...

#include <TraCIServerAPI_Junction.h>

Static Public Member Functions

static bool processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa9: Get Junction Variable)
 
static bool processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc9: Set Junction Variable)
 

Private Member Functions

TraCIServerAPI_Junctionoperator= (const TraCIServerAPI_Junction &s)
 invalidated assignment operator
 
 TraCIServerAPI_Junction (const TraCIServerAPI_Junction &s)
 invalidated copy constructor
 

Detailed Description

APIs for getting/setting junction values via TraCI.

Definition at line 42 of file TraCIServerAPI_Junction.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_Junction()

TraCIServerAPI_Junction::TraCIServerAPI_Junction ( const TraCIServerAPI_Junction s)
private

invalidated copy constructor

Member Function Documentation

◆ operator=()

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

invalidated assignment operator

◆ processGet()

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

Processes a get value command (Command 0xa9: Get Junction 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 37 of file TraCIServerAPI_Junction.cpp.

References libsumo::CMD_GET_JUNCTION_VARIABLE, TraCIServer::getWrapperStorage(), TraCIServer::initWrapper(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_JUNCTION_VARIABLE, libsumo::RTYPE_OK, toHex(), TraCIServer::writeErrorStatusCmd(), TraCIServer::writeResponseWithLength(), and TraCIServer::writeStatusCmd().

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

◆ processSet()

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

Processes a set value command (Command 0xc9: Set Junction 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 56 of file TraCIServerAPI_Junction.cpp.

References libsumo::CMD_SET_JUNCTION_VARIABLE, libsumo::StorageHelper::readCompound(), tcpip::Storage::readString(), libsumo::StorageHelper::readTypedString(), tcpip::Storage::readUnsignedByte(), libsumo::RTYPE_OK, toHex(), libsumo::VAR_PARAMETER, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

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