![]() |
SUMO - Simulation of Urban MObility
|
Scope for interaction with vehicle types. More...
#include <TraCIAPI.h>
Public Member Functions | |
SUMOReal | getAccel (const std::string &typeID) const |
TraCIColor | getColor (const std::string &typeID) const |
SUMOReal | getDecel (const std::string &typeID) const |
std::string | getEmissionClass (const std::string &typeID) const |
std::vector< std::string > | getIDList () const |
SUMOReal | getImperfection (const std::string &typeID) const |
SUMOReal | getLength (const std::string &typeID) const |
SUMOReal | getMaxSpeed (const std::string &typeID) const |
SUMOReal | getMinGap (const std::string &typeID) const |
std::string | getShapeClass (const std::string &typeID) const |
SUMOReal | getSpeedDeviation (const std::string &typeID) const |
SUMOReal | getSpeedFactor (const std::string &typeID) const |
SUMOReal | getTau (const std::string &typeID) const |
std::string | getVehicleClass (const std::string &typeID) const |
SUMOReal | getWidth (const std::string &typeID) const |
void | setAccel (const std::string &typeID, SUMOReal accel) const |
void | setColor (const std::string &typeID, const TraCIColor &c) const |
void | setDecel (const std::string &typeID, SUMOReal decel) const |
void | setEmissionClass (const std::string &typeID, const std::string &clazz) const |
void | setImperfection (const std::string &typeID, SUMOReal imperfection) const |
void | setLength (const std::string &typeID, SUMOReal length) const |
void | setMaxSpeed (const std::string &typeID, SUMOReal speed) const |
void | setMinGap (const std::string &typeID, SUMOReal minGap) const |
void | setShapeClass (const std::string &typeID, const std::string &clazz) const |
void | setSpeedDeviation (const std::string &typeID, SUMOReal deviation) const |
void | setSpeedFactor (const std::string &typeID, SUMOReal factor) const |
void | setTau (const std::string &typeID, SUMOReal tau) const |
void | setVehicleClass (const std::string &typeID, const std::string &clazz) const |
void | setWidth (const std::string &typeID, SUMOReal width) const |
VehicleTypeScope (TraCIAPI &parent) | |
virtual | ~VehicleTypeScope () |
Protected Attributes | |
TraCIAPI & | myParent |
The parent TraCI client which offers the connection. More... | |
Private Member Functions | |
VehicleTypeScope & | operator= (const VehicleTypeScope &src) |
invalidated assignment operator More... | |
VehicleTypeScope (const VehicleTypeScope &src) | |
invalidated copy constructor More... | |
Scope for interaction with vehicle types.
Definition at line 601 of file TraCIAPI.h.
|
inline |
Definition at line 603 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 604 of file TraCIAPI.h.
References TraCIAPI::getColor(), and SUMOReal.
|
private |
invalidated copy constructor
SUMOReal TraCIAPI::VehicleTypeScope::getAccel | ( | const std::string & | typeID | ) | const |
Definition at line 1372 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_ACCEL.
TraCIAPI::TraCIColor TraCIAPI::VehicleTypeScope::getColor | ( | const std::string & | typeID | ) | const |
Definition at line 1417 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_COLOR.
SUMOReal TraCIAPI::VehicleTypeScope::getDecel | ( | const std::string & | typeID | ) | const |
Definition at line 1377 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_DECEL.
std::string TraCIAPI::VehicleTypeScope::getEmissionClass | ( | const std::string & | typeID | ) | const |
Definition at line 1397 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_EMISSIONCLASS.
std::vector< std::string > TraCIAPI::VehicleTypeScope::getIDList | ( | ) | const |
Definition at line 1347 of file TraCIAPI.cpp.
References CMD_GET_VEHICLETYPE_VARIABLE, ID_LIST, and SUMOReal.
SUMOReal TraCIAPI::VehicleTypeScope::getImperfection | ( | const std::string & | typeID | ) | const |
Definition at line 1382 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_IMPERFECTION.
SUMOReal TraCIAPI::VehicleTypeScope::getLength | ( | const std::string & | typeID | ) | const |
Definition at line 1352 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_LENGTH.
SUMOReal TraCIAPI::VehicleTypeScope::getMaxSpeed | ( | const std::string & | typeID | ) | const |
Definition at line 1357 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_MAXSPEED.
SUMOReal TraCIAPI::VehicleTypeScope::getMinGap | ( | const std::string & | typeID | ) | const |
Definition at line 1407 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_MINGAP.
std::string TraCIAPI::VehicleTypeScope::getShapeClass | ( | const std::string & | typeID | ) | const |
Definition at line 1402 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_SHAPECLASS.
SUMOReal TraCIAPI::VehicleTypeScope::getSpeedDeviation | ( | const std::string & | typeID | ) | const |
Definition at line 1367 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_SPEED_DEVIATION.
SUMOReal TraCIAPI::VehicleTypeScope::getSpeedFactor | ( | const std::string & | typeID | ) | const |
Definition at line 1362 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, SUMOReal, and VAR_SPEED_FACTOR.
SUMOReal TraCIAPI::VehicleTypeScope::getTau | ( | const std::string & | typeID | ) | const |
Definition at line 1387 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_TAU.
std::string TraCIAPI::VehicleTypeScope::getVehicleClass | ( | const std::string & | typeID | ) | const |
Definition at line 1392 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_VEHICLECLASS.
SUMOReal TraCIAPI::VehicleTypeScope::getWidth | ( | const std::string & | typeID | ) | const |
Definition at line 1412 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_WIDTH.
|
private |
invalidated assignment operator
void TraCIAPI::VehicleTypeScope::setAccel | ( | const std::string & | typeID, |
SUMOReal | accel | ||
) | const |
Definition at line 1496 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_ACCEL, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setColor | ( | const std::string & | typeID, |
const TraCIColor & | c | ||
) | const |
Definition at line 1528 of file TraCIAPI.cpp.
References TraCIAPI::TraCIColor::a, TraCIAPI::TraCIColor::b, CMD_SET_VEHICLETYPE_VARIABLE, TraCIAPI::TraCIColor::g, TraCIAPI::TraCIColor::r, TYPE_COLOR, VAR_COLOR, and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setDecel | ( | const std::string & | typeID, |
SUMOReal | decel | ||
) | const |
Definition at line 1504 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_DECEL, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setEmissionClass | ( | const std::string & | typeID, |
const std::string & | clazz | ||
) | const |
Definition at line 1464 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_STRING, VAR_EMISSIONCLASS, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setImperfection | ( | const std::string & | typeID, |
SUMOReal | imperfection | ||
) | const |
Definition at line 1512 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_IMPERFECTION, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setLength | ( | const std::string & | typeID, |
SUMOReal | length | ||
) | const |
Definition at line 1424 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_LENGTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setMaxSpeed | ( | const std::string & | typeID, |
SUMOReal | speed | ||
) | const |
Definition at line 1432 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_MAXSPEED, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setMinGap | ( | const std::string & | typeID, |
SUMOReal | minGap | ||
) | const |
Definition at line 1480 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_MINGAP, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setShapeClass | ( | const std::string & | typeID, |
const std::string & | clazz | ||
) | const |
Definition at line 1488 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_STRING, VAR_SHAPECLASS, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setSpeedDeviation | ( | const std::string & | typeID, |
SUMOReal | deviation | ||
) | const |
Definition at line 1456 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_SPEED_DEVIATION, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setSpeedFactor | ( | const std::string & | typeID, |
SUMOReal | factor | ||
) | const |
Definition at line 1448 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_SPEED_FACTOR, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setTau | ( | const std::string & | typeID, |
SUMOReal | tau | ||
) | const |
Definition at line 1520 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_TAU, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setVehicleClass | ( | const std::string & | typeID, |
const std::string & | clazz | ||
) | const |
Definition at line 1440 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_STRING, VAR_VEHICLECLASS, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleTypeScope::setWidth | ( | const std::string & | typeID, |
SUMOReal | width | ||
) | const |
Definition at line 1472 of file TraCIAPI.cpp.
References CMD_SET_VEHICLETYPE_VARIABLE, TYPE_DOUBLE, VAR_WIDTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 192 of file TraCIAPI.h.