SUMO - Simulation of Urban MObility
TraCIServerAPI_VehicleType Class Reference

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

#include <TraCIServerAPI_VehicleType.h>

Static Public Member Functions

static bool getVariable (const int variable, const MSVehicleType &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, MSVehicleType &v, 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 ( const TraCIServerAPI_VehicleType s)
private

invalidated copy constructor

Member Function Documentation

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

invalidated assignment operator

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 162 of file TraCIServerAPI_VehicleType.cpp.

References CMD_SET_VEHICLETYPE_VARIABLE, MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RTYPE_OK, setVariable(), VAR_ACCEL, VAR_COLOR, VAR_DECEL, VAR_EMISSIONCLASS, VAR_IMPERFECTION, VAR_LENGTH, VAR_MAXSPEED, VAR_MINGAP, VAR_SHAPECLASS, VAR_SPEED_DEVIATION, VAR_SPEED_FACTOR, VAR_TAU, VAR_VEHICLECLASS, VAR_WIDTH, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().

Referenced by TraCIServer::TraCIServer().


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