Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_Calibrator Class Reference

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

#include <TraCIServerAPI_Calibrator.h>

Static Public Member Functions

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

Private Member Functions

TraCIServerAPI_Calibratoroperator= (const TraCIServerAPI_Calibrator &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_Calibrator (const TraCIServerAPI_Calibrator &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting Calibrator values via TraCI.

Definition at line 34 of file TraCIServerAPI_Calibrator.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_Calibrator()

TraCIServerAPI_Calibrator::TraCIServerAPI_Calibrator ( const TraCIServerAPI_Calibrator s)
private

invalidated copy constructor

Member Function Documentation

◆ operator=()

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

invalidated assignment operator

◆ processGet()

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

Processes a get value command (Command 0xa6: Get Calibrator 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

length

Definition at line 34 of file TraCIServerAPI_Calibrator.cpp.

References libsumo::CMD_GET_CALIBRATOR_VARIABLE, TraCIServer::getWrapperStorage(), libsumo::Calibrator::handleVariable(), TraCIServer::initWrapper(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_CALIBRATOR_VARIABLE, libsumo::RTYPE_OK, toHex(), libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

◆ processSet()

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

Processes a set value command (Command 0xc6: Change Calibrator 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 78 of file TraCIServerAPI_Calibrator.cpp.

References libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::CMD_SET_CALIBRATOR_VARIABLE, libsumo::CMD_SET_FLOW, tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::RTYPE_OK, libsumo::Calibrator::setFlow(), toHex(), libsumo::TYPE_COMPOUND, 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: