|
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 597 of file TraCIAPI.h.
|
inline |
Definition at line 599 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 600 of file TraCIAPI.h.
|
private |
invalidated copy constructor
| SUMOReal TraCIAPI::VehicleTypeScope::getAccel | ( | const std::string & | typeID | ) | const |
Definition at line 1358 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_ACCEL.
| TraCIAPI::TraCIColor TraCIAPI::VehicleTypeScope::getColor | ( | const std::string & | typeID | ) | const |
Definition at line 1403 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_COLOR.
| SUMOReal TraCIAPI::VehicleTypeScope::getDecel | ( | const std::string & | typeID | ) | const |
Definition at line 1363 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_DECEL.
| std::string TraCIAPI::VehicleTypeScope::getEmissionClass | ( | const std::string & | typeID | ) | const |
Definition at line 1383 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_EMISSIONCLASS.
| std::vector< std::string > TraCIAPI::VehicleTypeScope::getIDList | ( | ) | const |
Definition at line 1333 of file TraCIAPI.cpp.
References CMD_GET_VEHICLETYPE_VARIABLE, and ID_LIST.
| SUMOReal TraCIAPI::VehicleTypeScope::getImperfection | ( | const std::string & | typeID | ) | const |
Definition at line 1368 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_IMPERFECTION.
| SUMOReal TraCIAPI::VehicleTypeScope::getLength | ( | const std::string & | typeID | ) | const |
Definition at line 1338 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_LENGTH.
| SUMOReal TraCIAPI::VehicleTypeScope::getMaxSpeed | ( | const std::string & | typeID | ) | const |
Definition at line 1343 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_MAXSPEED.
| SUMOReal TraCIAPI::VehicleTypeScope::getMinGap | ( | const std::string & | typeID | ) | const |
Definition at line 1393 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_MINGAP.
| std::string TraCIAPI::VehicleTypeScope::getShapeClass | ( | const std::string & | typeID | ) | const |
Definition at line 1388 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_SHAPECLASS.
| SUMOReal TraCIAPI::VehicleTypeScope::getSpeedDeviation | ( | const std::string & | typeID | ) | const |
Definition at line 1353 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_SPEED_DEVIATION.
| SUMOReal TraCIAPI::VehicleTypeScope::getSpeedFactor | ( | const std::string & | typeID | ) | const |
Definition at line 1348 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_SPEED_FACTOR.
| SUMOReal TraCIAPI::VehicleTypeScope::getTau | ( | const std::string & | typeID | ) | const |
Definition at line 1373 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 1378 of file TraCIAPI.cpp.
References CMD_GET_TL_VARIABLE, and VAR_VEHICLECLASS.
| SUMOReal TraCIAPI::VehicleTypeScope::getWidth | ( | const std::string & | typeID | ) | const |
Definition at line 1398 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 1482 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 1514 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 1490 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 1450 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 1498 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 1410 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 1418 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 1466 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 1474 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 1442 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 1434 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 1506 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 1426 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 1458 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 188 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::getIDList().