SUMO - Simulation of Urban MObility
TraCIServerAPI_Route Class Reference

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

#include <TraCIServerAPI_Route.h>

Collaboration diagram for TraCIServerAPI_Route:
Collaboration graph

Static Public Member Functions

static bool processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa6: Get Route Variable) More...
 
static bool processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc6: Change Route State) More...
 

Private Member Functions

TraCIServerAPI_Routeoperator= (const TraCIServerAPI_Route &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_Route (const TraCIServerAPI_Route &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting route values via TraCI.

Definition at line 46 of file TraCIServerAPI_Route.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_Route()

TraCIServerAPI_Route::TraCIServerAPI_Route ( const TraCIServerAPI_Route s)
private

invalidated copy constructor

Member Function Documentation

◆ operator=()

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

invalidated assignment operator

◆ processGet()

◆ processSet()

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

Processes a set value command (Command 0xc6: Change Route State)

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 98 of file TraCIServerAPI_Route.cpp.

References libsumo::Route::add(), ADD, CMD_SET_ROUTE_VARIABLE, tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingStringList(), tcpip::Storage::readUnsignedByte(), RTYPE_OK, libsumo::Route::setParameter(), toHex(), TYPE_COMPOUND, VAR_PARAMETER, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().

Referenced by TraCIServer::TraCIServer().


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