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.
static bool processGet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa5: Get Vehicle Type Variable)
static bool processSet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc5: Change Vehicle Type State)
static bool setVariable (const int cmd, const int variable, const int valueDataType, MSVehicleType &v, traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value for the given type.

Private Member Functions

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

Detailed Description

APIs for getting/setting vehicle type values via TraCI.

Definition at line 48 of file TraCIServerAPI_VehicleType.h.


Constructor & Destructor Documentation

invalidated copy constructor


Member Function Documentation

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

invalidated assignment operator

bool TraCIServerAPI_VehicleType::processSet ( traci::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 170 of file TraCIServerAPI_VehicleType.cpp.

References CMD_SET_VEHICLETYPE_VARIABLE, MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RTYPE_ERR, RTYPE_OK, 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, and traci::TraCIServer::writeStatusCmd().

Referenced by traci::TraCIServer::TraCIServer().

bool TraCIServerAPI_VehicleType::setVariable ( const int  cmd,
const int  variable,
const int  valueDataType,
MSVehicleType v,
traci::TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
) [static]

The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines