|
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 | 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_VehicleType & | operator= (const TraCIServerAPI_VehicleType &s) |
| invalidated assignment operator | |
| TraCIServerAPI_VehicleType (const TraCIServerAPI_VehicleType &s) | |
| invalidated copy constructor | |
APIs for getting/setting vehicle type values via TraCI.
Definition at line 46 of file TraCIServerAPI_VehicleType.h.
| TraCIServerAPI_VehicleType::TraCIServerAPI_VehicleType | ( | const TraCIServerAPI_VehicleType & | s | ) | [private] |
invalidated copy constructor
| bool TraCIServerAPI_VehicleType::getVariable | ( | const int | variable, |
| const MSVehicleType & | v, | ||
| tcpip::Storage & | tempMsg | ||
| ) | [static] |
Processes a value request for the given type.
| [in] | variable | The type variable asked for |
| [in] | v | The vehicle type to get the value from |
| [out] | tempMsg | The storage to write the result to |
Definition at line 100 of file TraCIServerAPI_VehicleType.cpp.
References RGBColor::blue(), MSVehicleType::getCarFollowModel(), MSVehicleType::getColor(), MSVehicleType::getEmissionClass(), MSVehicleType::getGuiShape(), MSVehicleType::getGuiWidth(), MSCFModel::getHeadwayTime(), MSCFModel::getImperfection(), MSVehicleType::getLength(), MSCFModel::getMaxAccel(), MSCFModel::getMaxDecel(), MSVehicleType::getMaxSpeed(), MSVehicleType::getMinGap(), MSVehicleType::getSpeedDeviation(), MSVehicleType::getSpeedFactor(), MSVehicleType::getVehicleClass(), getVehicleEmissionTypeName(), getVehicleShapeName(), RGBColor::green(), RGBColor::red(), toString(), TYPE_COLOR, TYPE_DOUBLE, TYPE_STRING, 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, and VAR_WIDTH.
Referenced by TraCIServerAPI_Vehicle::processGet().
| TraCIServerAPI_VehicleType& TraCIServerAPI_VehicleType::operator= | ( | const TraCIServerAPI_VehicleType & | s | ) | [private] |
invalidated assignment operator
| bool TraCIServerAPI_VehicleType::processGet | ( | traci::TraCIServer & | server, |
| tcpip::Storage & | inputStorage, | ||
| tcpip::Storage & | outputStorage | ||
| ) | [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 55 of file TraCIServerAPI_VehicleType.cpp.
References CMD_GET_VEHICLETYPE_VARIABLE, MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), ID_COUNT, ID_LIST, MSVehicleControl::insertVTypeIDs(), RESPONSE_GET_VEHICLETYPE_VARIABLE, RTYPE_ERR, RTYPE_OK, TYPE_INTEGER, TYPE_STRINGLIST, 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, traci::TraCIServer::writeResponseWithLength(), and traci::TraCIServer::writeStatusCmd().
| 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)
| [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 168 of file TraCIServerAPI_VehicleType.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), 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().
| 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] |
Processes a set value for the given type.
| [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 204 of file TraCIServerAPI_VehicleType.cpp.
References MSVehicleType::getCarFollowModel(), getVehicleClassID(), getVehicleEmissionTypeID(), getVehicleShapeID(), RTYPE_ERR, MSVehicleType::setColor(), MSVehicleType::setEmissionClass(), MSCFModel::setHeadwayTime(), MSCFModel::setImperfection(), MSVehicleType::setLength(), MSCFModel::setMaxAccel(), MSCFModel::setMaxDecel(), MSVehicleType::setMaxSpeed(), MSVehicleType::setMinGap(), MSVehicleType::setShape(), MSVehicleType::setSpeedDeviation(), MSVehicleType::setSpeedFactor(), MSVehicleType::setVClass(), MSVehicleType::setWidth(), SUMOReal, TYPE_COLOR, TYPE_DOUBLE, TYPE_STRING, 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 TraCIServerAPI_Vehicle::processSet().