![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Scope for interaction with vehicles. More...
#include <TraCIAPI.h>
Public Member Functions | |
| void | add (const std::string &personID, const std::string &edgeID, double pos, double depart=libsumo::DEPARTFLAG_NOW, const std::string typeID="DEFAULT_PEDTYPE") |
| void | appendDrivingStage (const std::string &personID, const std::string &toEdge, const std::string &lines, const std::string &stopID="") |
| void | appendStage (const std::string &personID, const libsumo::TraCIStage &stage) |
| void | appendWaitingStage (const std::string &personID, double duration, const std::string &description="waiting", const std::string &stopID="") |
| void | appendWalkingStage (const std::string &personID, const std::vector< std::string > &edges, double arrivalPos, double duration=-1, double speed=-1, const std::string &stopID="") |
| void | clearSubscriptionResults () |
| const libsumo::ContextSubscriptionResults | getAllContextSubscriptionResults () const |
| const libsumo::SubscriptionResults | getAllSubscriptionResults () const |
| double | getAngle (const std::string &personID) const |
| libsumo::TraCIColor | getColor (const std::string &personID) const |
| const libsumo::SubscriptionResults | getContextSubscriptionResults (const std::string &objID) const |
| std::vector< std::string > | getEdges (const std::string &personID, int nextStageIndex=0) const |
| int | getIDCount () const |
| std::vector< std::string > | getIDList () const |
| std::string | getLaneID (const std::string &personID) const |
| double | getLanePosition (const std::string &personID) const |
| libsumo::SubscriptionResults & | getModifiableContextSubscriptionResults (const std::string &objID) |
| libsumo::SubscriptionResults & | getModifiableSubscriptionResults () |
| std::string | getNextEdge (const std::string &personID) const |
| std::string | getParameter (const std::string &objectID, const std::string &key) const |
| retrieve generic parameter | |
| std::pair< std::string, std::string > | getParameterWithKey (const std::string &objectID, const std::string &key) const |
| retrieve generic parameter and return (key, value) tuple | |
| libsumo::TraCIPosition | getPosition (const std::string &personID) const |
| libsumo::TraCIPosition | getPosition3D (const std::string &personID) const |
| int | getRemainingStages (const std::string &personID) const |
| std::string | getRoadID (const std::string &personID) const |
| double | getSlope (const std::string &personID) const |
| double | getSpeed (const std::string &personID) const |
| double | getSpeedFactor (const std::string &personID) const |
| libsumo::TraCIStage | getStage (const std::string &personID, int nextStageIndex=0) const |
| const libsumo::TraCIResults | getSubscriptionResults (const std::string &objID) const |
| std::string | getTypeID (const std::string &personID) const |
| std::string | getVehicle (const std::string &personID) const |
| double | getWaitingTime (const std::string &personID) const |
| void | moveTo (const std::string &personID, const std::string &edgeID, double position) const |
| void | moveToXY (const std::string &personID, const std::string &edgeID, const double x, const double y, double angle, const int keepRoute) const |
| PersonScope (TraCIAPI &parent) | |
| void | removeStage (const std::string &personID, int nextStageIndex) const |
| void | removeStages (const std::string &personID) const |
| void | rerouteTraveltime (const std::string &personID) const |
| void | setColor (const std::string &personID, const libsumo::TraCIColor &c) const |
| void | setHeight (const std::string &personID, double height) const |
| void | setLength (const std::string &personID, double length) const |
| void | setMinGap (const std::string &personID, double minGap) const |
| void | setParameter (const std::string &objectID, const std::string &key, const std::string &value) const |
| set generic paramter | |
| void | setSpeed (const std::string &personID, double speed) const |
| void | setSpeedFactor (const std::string &personID, double factor) const |
| void | setType (const std::string &personID, const std::string &typeID) const |
| void | setWidth (const std::string &personID, double width) const |
| void | subscribe (const std::string &objID, const std::vector< int > &vars, double beginTime, double endTime) const |
| void | subscribeContext (const std::string &objID, int domain, double range, const std::vector< int > &vars, double beginTime, double endTime) const |
| virtual | ~PersonScope () |
vehicle type value retrieval shortcuts | |
| double | getLength (const std::string &personID) const |
Protected Member Functions | |
| int | getByte (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIColor | getCol (int var, const std::string &id, tcpip::Storage *add=0) const |
| double | getDouble (int var, const std::string &id, tcpip::Storage *add=0) const |
| std::vector< double > | getDoubleVector (int var, const std::string &id, tcpip::Storage *add=0) const |
| int | getInt (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIPositionVector | getPolygon (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIPosition | getPos (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIPosition | getPos3D (int var, const std::string &id, tcpip::Storage *add=0) const |
| std::string | getString (int var, const std::string &id, tcpip::Storage *add=0) const |
| std::vector< std::string > | getStringVector (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIStage | getTraCIStage (int var, const std::string &id, tcpip::Storage *add=0) const |
| int | getUnsignedByte (int var, const std::string &id, tcpip::Storage *add=0) const |
| void | setDouble (int var, const std::string &id, double value) const |
| void | setInt (int var, const std::string &id, int value) const |
| void | setString (int var, const std::string &id, const std::string &value) const |
| void | setStringVector (int var, const std::string &id, const std::vector< std::string > &value) const |
Protected Attributes | |
| TraCIAPI & | myParent |
| The parent TraCI client which offers the connection. | |
Private Attributes | |
| int | myCmdGetID |
| int | myCmdSetID |
| int | myContextSubscribeID |
| libsumo::ContextSubscriptionResults | myContextSubscriptionResults |
| int | mySubscribeID |
| libsumo::SubscriptionResults | mySubscriptionResults |
|
inline |
Definition at line 778 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 779 of file TraCIAPI.h.
| void TraCIAPI::PersonScope::add | ( | const std::string & | personID, |
| const std::string & | edgeID, | ||
| double | pos, | ||
| double | depart = libsumo::DEPARTFLAG_NOW, |
||
| const std::string | typeID = "DEFAULT_PEDTYPE" |
||
| ) |
Definition at line 3327 of file TraCIAPI.cpp.
References libsumo::ADD, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_STRING, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::appendDrivingStage | ( | const std::string & | personID, |
| const std::string & | toEdge, | ||
| const std::string & | lines, | ||
| const std::string & | stopID = "" |
||
| ) |
Definition at line 3418 of file TraCIAPI.cpp.
References libsumo::APPEND_STAGE, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::STAGE_DRIVING, libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::appendStage | ( | const std::string & | personID, |
| const libsumo::TraCIStage & | stage | ||
| ) |
Definition at line 3344 of file TraCIAPI.cpp.
References libsumo::APPEND_STAGE, libsumo::TraCIStage::arrivalPos, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TraCIStage::cost, libsumo::TraCIStage::depart, libsumo::TraCIStage::departPos, libsumo::TraCIStage::description, libsumo::TraCIStage::destStop, libsumo::TraCIStage::edges, libsumo::TraCIStage::intended, libsumo::TraCIStage::length, libsumo::TraCIStage::line, libsumo::TraCIStage::travelTime, libsumo::TraCIStage::type, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::TYPE_STRINGLIST, libsumo::TraCIStage::vType, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::appendWaitingStage | ( | const std::string & | personID, |
| double | duration, | ||
| const std::string & | description = "waiting", |
||
| const std::string & | stopID = "" |
||
| ) |
Definition at line 3380 of file TraCIAPI.cpp.
References libsumo::APPEND_STAGE, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::STAGE_WAITING, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::appendWalkingStage | ( | const std::string & | personID, |
| const std::vector< std::string > & | edges, | ||
| double | arrivalPos, | ||
| double | duration = -1, |
||
| double | speed = -1, |
||
| const std::string & | stopID = "" |
||
| ) |
Definition at line 3397 of file TraCIAPI.cpp.
References libsumo::APPEND_STAGE, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::STAGE_WALKING, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::TYPE_STRINGLIST, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3899 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3883 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3867 of file TraCIAPI.cpp.
| double TraCIAPI::PersonScope::getAngle | ( | const std::string & | personID | ) | const |
Definition at line 3225 of file TraCIAPI.cpp.
References libsumo::VAR_ANGLE.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3569 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_BYTE.
|
protectedinherited |
Definition at line 3685 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::TraCIColor::g, libsumo::TraCIColor::r, and libsumo::TYPE_COLOR.
| libsumo::TraCIColor TraCIAPI::PersonScope::getColor | ( | const std::string & | personID | ) | const |
Definition at line 3240 of file TraCIAPI.cpp.
References libsumo::VAR_COLOR.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3889 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3590 of file TraCIAPI.cpp.
References libsumo::INVALID_DOUBLE_VALUE, and libsumo::TYPE_DOUBLE.
Referenced by TraCIAPI::EdgeScope::getAdaptedTraveltime().
|
protectedinherited |
Definition at line 3671 of file TraCIAPI.cpp.
References libsumo::TYPE_DOUBLELIST.
| std::vector< std::string > TraCIAPI::PersonScope::getEdges | ( | const std::string & | personID, |
| int | nextStageIndex = 0 |
||
| ) | const |
Definition at line 3299 of file TraCIAPI.cpp.
References libsumo::TYPE_INTEGER, libsumo::VAR_EDGES, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3754 of file TraCIAPI.cpp.
References libsumo::ID_COUNT.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3748 of file TraCIAPI.cpp.
References libsumo::TRACI_ID_LIST.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3580 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_INTEGER.
| std::string TraCIAPI::PersonScope::getLaneID | ( | const std::string & | personID | ) | const |
Definition at line 3255 of file TraCIAPI.cpp.
References libsumo::VAR_LANE_ID.
Referenced by TraCITestClient::testAPI().
| double TraCIAPI::PersonScope::getLanePosition | ( | const std::string & | personID | ) | const |
Definition at line 3235 of file TraCIAPI.cpp.
References libsumo::VAR_LANEPOSITION.
Referenced by TraCITestClient::testAPI().
| double TraCIAPI::PersonScope::getLength | ( | const std::string & | personID | ) | const |
Definition at line 3245 of file TraCIAPI.cpp.
References libsumo::VAR_LENGTH.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3912 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3906 of file TraCIAPI.cpp.
| std::string TraCIAPI::PersonScope::getNextEdge | ( | const std::string & | personID | ) | const |
Definition at line 3275 of file TraCIAPI.cpp.
References libsumo::VAR_NEXT_EDGE.
Referenced by TraCITestClient::testAPI().
|
inherited |
retrieve generic parameter
Definition at line 3760 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI().
|
inherited |
retrieve generic parameter and return (key, value) tuple
Definition at line 3769 of file TraCIAPI.cpp.
References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER_WITH_KEY, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3600 of file TraCIAPI.cpp.
References libsumo::TYPE_POLYGON, libsumo::TraCIPositionVector::value, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
|
protectedinherited |
Definition at line 3621 of file TraCIAPI.cpp.
References libsumo::POSITION_2D, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
|
protectedinherited |
Definition at line 3634 of file TraCIAPI.cpp.
References libsumo::POSITION_3D, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
| libsumo::TraCIPosition TraCIAPI::PersonScope::getPosition | ( | const std::string & | personID | ) | const |
Definition at line 3215 of file TraCIAPI.cpp.
References libsumo::VAR_POSITION.
Referenced by TraCITestClient::testAPI().
| libsumo::TraCIPosition TraCIAPI::PersonScope::getPosition3D | ( | const std::string & | personID | ) | const |
Definition at line 3220 of file TraCIAPI.cpp.
References libsumo::VAR_POSITION3D.
Referenced by TraCITestClient::testAPI().
| int TraCIAPI::PersonScope::getRemainingStages | ( | const std::string & | personID | ) | const |
Definition at line 3286 of file TraCIAPI.cpp.
References libsumo::VAR_STAGES_REMAINING.
Referenced by TraCITestClient::testAPI().
| std::string TraCIAPI::PersonScope::getRoadID | ( | const std::string & | personID | ) | const |
Definition at line 3250 of file TraCIAPI.cpp.
References libsumo::VAR_ROAD_ID.
Referenced by TraCITestClient::testAPI().
| double TraCIAPI::PersonScope::getSlope | ( | const std::string & | personID | ) | const |
Definition at line 3230 of file TraCIAPI.cpp.
References libsumo::VAR_SLOPE.
Referenced by TraCITestClient::testAPI().
| double TraCIAPI::PersonScope::getSpeed | ( | const std::string & | personID | ) | const |
Definition at line 3210 of file TraCIAPI.cpp.
References libsumo::VAR_SPEED.
Referenced by TraCITestClient::testAPI().
| double TraCIAPI::PersonScope::getSpeedFactor | ( | const std::string & | personID | ) | const |
Definition at line 3265 of file TraCIAPI.cpp.
References libsumo::VAR_SPEED_FACTOR.
| libsumo::TraCIStage TraCIAPI::PersonScope::getStage | ( | const std::string & | personID, |
| int | nextStageIndex = 0 |
||
| ) | const |
Definition at line 3291 of file TraCIAPI.cpp.
References libsumo::TYPE_INTEGER, libsumo::VAR_STAGE, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3647 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING.
|
protectedinherited |
Definition at line 3657 of file TraCIAPI.cpp.
References libsumo::TYPE_STRINGLIST.
|
inherited |
Definition at line 3873 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3699 of file TraCIAPI.cpp.
References libsumo::TraCIStage::arrivalPos, libsumo::TraCIStage::cost, libsumo::TraCIStage::depart, libsumo::TraCIStage::departPos, libsumo::TraCIStage::description, libsumo::TraCIStage::destStop, libsumo::TraCIStage::edges, libsumo::TraCIStage::intended, libsumo::TraCIStage::length, libsumo::TraCIStage::line, libsumo::TraCIStage::travelTime, libsumo::TraCIStage::type, libsumo::TYPE_COMPOUND, and libsumo::TraCIStage::vType.
| std::string TraCIAPI::PersonScope::getTypeID | ( | const std::string & | personID | ) | const |
Definition at line 3260 of file TraCIAPI.cpp.
References libsumo::VAR_TYPE.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3559 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_UBYTE.
| std::string TraCIAPI::PersonScope::getVehicle | ( | const std::string & | personID | ) | const |
Definition at line 3281 of file TraCIAPI.cpp.
References libsumo::VAR_VEHICLE.
Referenced by TraCITestClient::testAPI().
| double TraCIAPI::PersonScope::getWaitingTime | ( | const std::string & | personID | ) | const |
Definition at line 3270 of file TraCIAPI.cpp.
References libsumo::VAR_WAITING_TIME.
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::moveTo | ( | const std::string & | personID, |
| const std::string & | edgeID, | ||
| double | position | ||
| ) | const |
Definition at line 3444 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_STRING, libsumo::VAR_MOVE_TO, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::PersonScope::moveToXY | ( | const std::string & | personID, |
| const std::string & | edgeID, | ||
| const double | x, | ||
| const double | y, | ||
| double | angle, | ||
| const int | keepRoute | ||
| ) | const |
Definition at line 3457 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::MOVE_TO_XY, libsumo::TYPE_BYTE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_STRING, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::PersonScope::removeStage | ( | const std::string & | personID, |
| int | nextStageIndex | ||
| ) | const |
Definition at line 3435 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::REMOVE_STAGE, libsumo::TYPE_INTEGER, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::removeStages | ( | const std::string & | personID | ) | const |
Definition at line 3307 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::rerouteTraveltime | ( | const std::string & | personID | ) | const |
Definition at line 3317 of file TraCIAPI.cpp.
References libsumo::CMD_REROUTE_TRAVELTIME, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_COMPOUND, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::setColor | ( | const std::string & | personID, |
| const libsumo::TraCIColor & | c | ||
| ) | const |
Definition at line 3542 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TraCIColor::g, libsumo::TraCIColor::r, libsumo::TYPE_COLOR, libsumo::VAR_COLOR, and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3812 of file TraCIAPI.cpp.
References libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::PersonScope::setHeight | ( | const std::string & | personID, |
| double | height | ||
| ) | const |
Definition at line 3523 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_HEIGHT, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3802 of file TraCIAPI.cpp.
References libsumo::TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::PersonScope::setLength | ( | const std::string & | personID, |
| double | length | ||
| ) | const |
Definition at line 3504 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_LENGTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::setMinGap | ( | const std::string & | personID, |
| double | minGap | ||
| ) | const |
Definition at line 3532 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_MINGAP, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
inherited |
set generic paramter
Definition at line 3788 of file TraCIAPI.cpp.
References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::setSpeed | ( | const std::string & | personID, |
| double | speed | ||
| ) | const |
Definition at line 3476 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_SPEED, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::setSpeedFactor | ( | const std::string & | personID, |
| double | factor | ||
| ) | const |
Definition at line 3495 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_SPEED_FACTOR, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3822 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3832 of file TraCIAPI.cpp.
References libsumo::TYPE_STRINGLIST, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::PersonScope::setType | ( | const std::string & | personID, |
| const std::string & | typeID | ||
| ) | const |
Definition at line 3486 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_TYPE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
| void TraCIAPI::PersonScope::setWidth | ( | const std::string & | personID, |
| double | width | ||
| ) | const |
Definition at line 3514 of file TraCIAPI.cpp.
References libsumo::CMD_SET_PERSON_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_WIDTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3845 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3857 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
privateinherited |
Definition at line 154 of file TraCIAPI.h.
|
privateinherited |
Definition at line 155 of file TraCIAPI.h.
|
privateinherited |
Definition at line 157 of file TraCIAPI.h.
|
privateinherited |
Definition at line 159 of file TraCIAPI.h.
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 151 of file TraCIAPI.h.
|
privateinherited |
Definition at line 156 of file TraCIAPI.h.
|
privateinherited |
Definition at line 158 of file TraCIAPI.h.