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

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

#include <TraCIServerAPI_Edge.h>

Static Public Member Functions

static bool processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xaa: Get Edge Variable)
 
static bool processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xca: Change Edge State)
 

Private Member Functions

TraCIServerAPI_Edgeoperator= (const TraCIServerAPI_Edge &s)
 invalidated assignment operator
 
 TraCIServerAPI_Edge (const TraCIServerAPI_Edge &s)
 invalidated copy constructor
 

Detailed Description

APIs for getting/setting edge values via TraCI.

Definition at line 35 of file TraCIServerAPI_Edge.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_Edge()

TraCIServerAPI_Edge::TraCIServerAPI_Edge ( const TraCIServerAPI_Edge s)
private

invalidated copy constructor

Member Function Documentation

◆ operator=()

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

invalidated assignment operator

◆ processGet()

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

Processes a get value command (Command 0xaa: Get Edge 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 47 of file TraCIServerAPI_Edge.cpp.

References libsumo::CMD_GET_EDGE_VARIABLE, TraCIServer::getWrapperStorage(), TraCIServer::initWrapper(), tcpip::Storage::readString(), libsumo::StorageHelper::readTypedDouble(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_EDGE_VARIABLE, libsumo::RTYPE_OK, toHex(), libsumo::VAR_EDGE_EFFORT, libsumo::VAR_EDGE_TRAVELTIME, TraCIServer::writeErrorStatusCmd(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), and libsumo::StorageHelper::writeTypedDouble().

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

◆ processSet()

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

Processes a set value command (Command 0xca: Change Edge 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 81 of file TraCIServerAPI_Edge.cpp.

References libsumo::CMD_SET_EDGE_VARIABLE, libsumo::LANE_ALLOWED, libsumo::LANE_DISALLOWED, libsumo::StorageHelper::readCompound(), tcpip::Storage::readString(), libsumo::StorageHelper::readTypedDouble(), libsumo::StorageHelper::readTypedString(), libsumo::StorageHelper::readTypedStringList(), tcpip::Storage::readUnsignedByte(), libsumo::RTYPE_OK, toHex(), libsumo::VAR_EDGE_EFFORT, libsumo::VAR_EDGE_TRAVELTIME, libsumo::VAR_FRICTION, libsumo::VAR_MAXSPEED, 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: