SUMO - Simulation of Urban MObility
TraCIServerAPI_VehicleType Class Reference

APIs for getting/setting vehicle type values via TraCI. More...

#include <TraCIServerAPI_VehicleType.h>

Collaboration diagram for TraCIServerAPI_VehicleType:
Collaboration graph

Static Public Member Functions

static bool getVariable (const int variable, const std::string &v, tcpip::Storage &tempMsg)
 Processes a value request for the given type. More...
 
static bool processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa5: Get Vehicle Type Variable) More...
 
static bool processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc5: Change Vehicle Type State) More...
 
static bool setVariable (const int cmd, const int variable, const std::string &id, TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value for the given type. More...
 

Private Member Functions

TraCIServerAPI_VehicleTypeoperator= (const TraCIServerAPI_VehicleType &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_VehicleType (const TraCIServerAPI_VehicleType &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting vehicle type values via TraCI.

Definition at line 48 of file TraCIServerAPI_VehicleType.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_VehicleType()

TraCIServerAPI_VehicleType::TraCIServerAPI_VehicleType ( const TraCIServerAPI_VehicleType s)
private

invalidated copy constructor

Member Function Documentation

◆ getVariable()

bool TraCIServerAPI_VehicleType::getVariable ( const int  variable,
const std::string &  v,
tcpip::Storage tempMsg 
)
static

◆ operator=()

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

invalidated assignment operator

◆ processGet()

◆ processSet()

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

Processes a set value command (Command 0xc5: Change Vehicle Type 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 218 of file TraCIServerAPI_VehicleType.cpp.

References CMD_SET_VEHICLETYPE_VARIABLE, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RTYPE_OK, setVariable(), toHex(), VAR_ACCEL, VAR_COLOR, VAR_DECEL, VAR_EMISSIONCLASS, VAR_HEIGHT, VAR_IMPERFECTION, VAR_LATALIGNMENT, VAR_LENGTH, VAR_MAXSPEED, VAR_MAXSPEED_LAT, VAR_MINGAP, VAR_MINGAP_LAT, VAR_PARAMETER, VAR_SHAPECLASS, VAR_SPEED_DEVIATION, VAR_SPEED_FACTOR, VAR_TAU, VAR_VEHICLECLASS, VAR_WIDTH, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().

Referenced by TraCIServer::TraCIServer().

◆ setVariable()

bool TraCIServerAPI_VehicleType::setVariable ( const int  cmd,
const int  variable,
const std::string &  id,
TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

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