Eclipse SUMO - Simulation of Urban MObility
|
APIs for getting/setting vehicle type values via TraCI. More...
#include <TraCIServerAPI_VehicleType.h>
Static Public Member Functions | |
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_VehicleType & | operator= (const TraCIServerAPI_VehicleType &s) |
invalidated assignment operator More... | |
TraCIServerAPI_VehicleType (const TraCIServerAPI_VehicleType &s) | |
invalidated copy constructor More... | |
APIs for getting/setting vehicle type values via TraCI.
Definition at line 35 of file TraCIServerAPI_VehicleType.h.
|
private |
invalidated copy constructor
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xa5: Get Vehicle Type Variable)
[in] | server | The TraCI-server-instance which schedules this request |
[in] | inputStorage | The storage to read the command from |
[out] | outputStorage | The storage to write the result to |
Definition at line 40 of file TraCIServerAPI_VehicleType.cpp.
References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, TraCIServer::getWrapperStorage(), TraCIServer::initWrapper(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_VEHICLETYPE_VARIABLE, libsumo::RTYPE_OK, toHex(), TraCIServer::writeErrorStatusCmd(), TraCIServer::writeResponseWithLength(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().
|
static |
Processes a set value command (Command 0xc5: Change Vehicle Type State)
[in] | server | The TraCI-server-instance which schedules this request |
[in] | inputStorage | The storage to read the command from |
[out] | outputStorage | The storage to write the result to |
Definition at line 61 of file TraCIServerAPI_VehicleType.cpp.
References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::COPY, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::RTYPE_OK, setVariable(), toHex(), libsumo::VAR_ACCEL, libsumo::VAR_ACTIONSTEPLENGTH, libsumo::VAR_APPARENT_DECEL, libsumo::VAR_BOARDING_DURATION, libsumo::VAR_COLOR, libsumo::VAR_DECEL, libsumo::VAR_EMERGENCY_DECEL, libsumo::VAR_EMISSIONCLASS, libsumo::VAR_HEIGHT, libsumo::VAR_IMPATIENCE, libsumo::VAR_IMPERFECTION, libsumo::VAR_LATALIGNMENT, libsumo::VAR_LENGTH, libsumo::VAR_MAXSPEED, libsumo::VAR_MAXSPEED_LAT, libsumo::VAR_MINGAP, libsumo::VAR_MINGAP_LAT, libsumo::VAR_PARAMETER, libsumo::VAR_SCALE, libsumo::VAR_SHAPECLASS, libsumo::VAR_SPEED_DEVIATION, libsumo::VAR_SPEED_FACTOR, libsumo::VAR_TAU, libsumo::VAR_VEHICLECLASS, libsumo::VAR_WIDTH, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().
|
static |
Processes a set value for the given type.
Definition at line 109 of file TraCIServerAPI_VehicleType.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::COPY, tcpip::Storage::readInt(), TraCIServer::readTypeCheckingColor(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::TYPE_COMPOUND, libsumo::VAR_ACCEL, libsumo::VAR_ACTIONSTEPLENGTH, libsumo::VAR_APPARENT_DECEL, libsumo::VAR_BOARDING_DURATION, libsumo::VAR_COLOR, libsumo::VAR_DECEL, libsumo::VAR_EMERGENCY_DECEL, libsumo::VAR_EMISSIONCLASS, libsumo::VAR_HEIGHT, libsumo::VAR_IMPATIENCE, libsumo::VAR_IMPERFECTION, libsumo::VAR_LATALIGNMENT, libsumo::VAR_LENGTH, libsumo::VAR_MAXSPEED, libsumo::VAR_MAXSPEED_LAT, libsumo::VAR_MINGAP, libsumo::VAR_MINGAP_LAT, libsumo::VAR_PARAMETER, libsumo::VAR_SCALE, libsumo::VAR_SHAPECLASS, libsumo::VAR_SPEED_DEVIATION, libsumo::VAR_SPEED_FACTOR, libsumo::VAR_TAU, libsumo::VAR_VEHICLECLASS, libsumo::VAR_WIDTH, and TraCIServer::writeErrorStatusCmd().
Referenced by TraCIServerAPI_Person::processSet(), TraCIServerAPI_Vehicle::processSet(), and processSet().