![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Scope for interaction with vehicles. More...
#include <TraCIAPI.h>
Public Types | |
| enum | VehicleSignal { SIGNAL_BLINKER_RIGHT = 1 , SIGNAL_BLINKER_LEFT = 2 , SIGNAL_BLINKER_EMERGENCY = 4 , SIGNAL_BRAKELIGHT = 8 , SIGNAL_FRONTLIGHT = 16 , SIGNAL_FOGLIGHT = 32 , SIGNAL_HIGHBEAM = 64 , SIGNAL_BACKDRIVE = 128 , SIGNAL_WIPER = 256 , SIGNAL_DOOR_OPEN_LEFT = 512 , SIGNAL_DOOR_OPEN_RIGHT = 1024 , SIGNAL_EMERGENCY_BLUE = 2048 , SIGNAL_EMERGENCY_RED = 4096 , SIGNAL_EMERGENCY_YELLOW = 8192 , SIGNAL_RESET = -1 } |
Public Member Functions | |
| void | clearSubscriptionResults () |
| const libsumo::ContextSubscriptionResults | getAllContextSubscriptionResults () const |
| const libsumo::SubscriptionResults | getAllSubscriptionResults () const |
| const libsumo::SubscriptionResults | getContextSubscriptionResults (const std::string &objID) const |
| int | getIDCount () const |
| std::vector< std::string > | getIDList () const |
| libsumo::SubscriptionResults & | getModifiableContextSubscriptionResults (const std::string &objID) |
| libsumo::SubscriptionResults & | getModifiableSubscriptionResults () |
| 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 | |
| const libsumo::TraCIResults | getSubscriptionResults (const std::string &objID) const |
| void | setParameter (const std::string &objectID, const std::string &key, const std::string &value) const |
| set generic paramter | |
| 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 |
| VehicleScope (TraCIAPI &parent) | |
| virtual | ~VehicleScope () |
vehicle value retrieval | |
| double | getSpeed (const std::string &vehicleID) const |
| double | getLateralSpeed (const std::string &vehicleID) const |
| double | getAcceleration (const std::string &vehicleID) const |
| double | getFollowSpeed (const std::string &vehicleID, double speed, double gap, double leaderSpeed, double leaderMaxDecel, const std::string &leaderID="") const |
| double | getSecureGap (const std::string &vehicleID, double speed, double leaderSpeed, double leaderMaxDecel, const std::string &leaderID="") const |
| double | getStopSpeed (const std::string &vehicleID, double speed, double gap) const |
| libsumo::TraCIPosition | getPosition (const std::string &vehicleID) const |
| libsumo::TraCIPosition | getPosition3D (const std::string &vehicleID) const |
| double | getAngle (const std::string &vehicleID) const |
| std::string | getRoadID (const std::string &vehicleID) const |
| std::string | getLaneID (const std::string &vehicleID) const |
| int | getLaneIndex (const std::string &vehicleID) const |
| std::string | getTypeID (const std::string &vehicleID) const |
| std::string | getRouteID (const std::string &vehicleID) const |
| int | getRouteIndex (const std::string &vehicleID) const |
| std::vector< std::string > | getRoute (const std::string &vehicleID) const |
| libsumo::TraCIColor | getColor (const std::string &vehicleID) const |
| double | getLanePosition (const std::string &vehicleID) const |
| double | getDistance (const std::string &vehicleID) const |
| int | getSignals (const std::string &vehicleID) const |
| double | getCO2Emission (const std::string &vehicleID) const |
| double | getCOEmission (const std::string &vehicleID) const |
| double | getHCEmission (const std::string &vehicleID) const |
| double | getPMxEmission (const std::string &vehicleID) const |
| double | getNOxEmission (const std::string &vehicleID) const |
| double | getFuelConsumption (const std::string &vehicleID) const |
| double | getNoiseEmission (const std::string &vehicleID) const |
| double | getElectricityConsumption (const std::string &vehicleID) const |
| int | getStopState (const std::string &vehicleID) const |
| double | getWaitingTime (const std::string &vehicleID) const |
| double | getAccumulatedWaitingTime (const std::string &vehicleID) const |
| int | getLaneChangeMode (const std::string &vehicleID) const |
| int | getSpeedMode (const std::string &vehicleID) const |
| double | getSlope (const std::string &vehicleID) const |
| double | getAllowedSpeed (const std::string &vehicleID) const |
| int | getPersonNumber (const std::string &vehicleID) const |
| std::vector< std::string > | getPersonIDList (const std::string &vehicleID) const |
| double | getSpeedWithoutTraCI (const std::string &vehicleID) const |
| bool | isRouteValid (const std::string &vehicleID) const |
| double | getLateralLanePosition (const std::string &vehicleID) const |
| double | getSpeedFactor (const std::string &vehicleID) const |
| std::string | getLine (const std::string &vehicleID) const |
| std::vector< std::string > | getVia (const std::string &vehicleID) const |
| std::vector< libsumo::TraCINextTLSData > | getNextTLS (const std::string &vehID) const |
| std::vector< libsumo::TraCIBestLanesData > | getBestLanes (const std::string &vehicleID) const |
| std::pair< std::string, double > | getLeader (const std::string &vehicleID, double dist) const |
| std::pair< std::string, double > | getFollower (const std::string &vehicleID, double dist) const |
| int | getRoutingMode (const std::string &vehicleID) const |
| double | getStopDelay (const std::string &vehicleID) const |
| double | getStopArrivalDelay (const std::string &vehicleID) const |
| std::pair< int, int > | getLaneChangeState (const std::string &vehicleID, int direction) const |
vehicle type value retrieval shortcuts | |
| double | getLength (const std::string &vehicleID) const |
| double | getMaxSpeed (const std::string &vehicleID) const |
| double | getAccel (const std::string &vehicleID) const |
| double | getDecel (const std::string &vehicleID) const |
| double | getEmergencyDecel (const std::string &vehicleID) const |
| double | getApparentDecel (const std::string &vehicleID) const |
| double | getTau (const std::string &vehicleID) const |
| double | getImperfection (const std::string &vehicleID) const |
| double | getSpeedDeviation (const std::string &vehicleID) const |
| double | getMinGap (const std::string &vehicleID) const |
| double | getWidth (const std::string &vehicleID) const |
| double | getHeight (const std::string &veihcleID) const |
| double | getMaxSpeedLat (const std::string &vehicleID) const |
| double | getMinGapLat (const std::string &vehicleID) const |
| int | getPersonCapacity (const std::string &vehicleID) const |
| std::string | getVehicleClass (const std::string &vehicleID) const |
| std::string | getEmissionClass (const std::string &vehicleID) const |
| std::string | getShapeClass (const std::string &vehicleID) const |
| std::string | getLateralAlignment (const std::string &vehicleID) const |
vehicle state changing | |
| void | add (const std::string &vehicleID, const std::string &routeID, const std::string &typeID="DEFAULT_VEHTYPE", std::string depart="-1", const std::string &departLane="first", const std::string &departPos="base", const std::string &departSpeed="0", const std::string &arrivalLane="current", const std::string &arrivalPos="max", const std::string &arrivalSpeed="current", const std::string &fromTaz="", const std::string &toTaz="", const std::string &line="", int personCapacity=0, int personNumber=0) const |
| void | changeTarget (const std::string &vehicleID, const std::string &edgeID) const |
| void | changeLane (const std::string &vehicleID, int laneIndex, double duration) const |
| void | changeLaneRelative (const std::string &vehicleID, int laneChange, double duration) const |
| void | changeSublane (const std::string &vehicleID, double latDist) const |
| void | setRouteID (const std::string &vehicleID, const std::string &routeID) const |
| void | setRoute (const std::string &vehicleID, const std::vector< std::string > &edge) const |
| void | rerouteTraveltime (const std::string &vehicleID, bool currentTravelTimes=true) const |
| void | moveTo (const std::string &vehicleID, const std::string &laneID, double position, int reason=libsumo::MOVE_TELEPORT) const |
| void | moveToXY (const std::string &vehicleID, const std::string &edgeID, const int lane, const double x, const double y, const double angle, const int keepRoute) const |
| void | slowDown (const std::string &vehicleID, double speed, double duration) const |
| void | openGap (const std::string &vehicleID, double newTau, double duration, double changeRate, double maxDecel) const |
| void | setSpeed (const std::string &vehicleID, double speed) const |
| void | setAcceleration (const std::string &vehicleID, double accel, double duration) const |
| void | setPreviousSpeed (const std::string &vehicleID, double prevSpeed, double prevAcceleration=std::numeric_limits< int >::min()) const |
| void | setLaneChangeMode (const std::string &vehicleID, int mode) const |
| void | setSpeedMode (const std::string &vehicleID, int mode) const |
| void | setStop (const std::string vehicleID, const std::string edgeID, const double endPos=1., const int laneIndex=0, const double duration=std::numeric_limits< double >::max(), const int flags=0, const double startPos=std::numeric_limits< int >::min(), const double until=-1) const |
| void | setType (const std::string &vehicleID, const std::string &typeID) const |
| void | remove (const std::string &vehicleID, char reason=libsumo::REMOVE_VAPORIZED) const |
| void | setColor (const std::string &vehicleID, const libsumo::TraCIColor &c) const |
| void | setLine (const std::string &vehicleID, const std::string &line) const |
| void | setVia (const std::string &vehicleID, const std::vector< std::string > &via) const |
| void | setSignals (const std::string &vehicleID, int signals) const |
| void | setRoutingMode (const std::string &vehicleID, int routingMode) const |
vehicle type attribute changing shortcuts | |
| void | setShapeClass (const std::string &vehicleID, const std::string &clazz) const |
| void | setEmissionClass (const std::string &vehicleID, const std::string &clazz) const |
| void | setSpeedFactor (const std::string &vehicleID, double factor) const |
| void | setMinGap (const std::string &vehicleID, double minGap) const |
| void | setMaxSpeed (const std::string &vehicleID, double speed) const |
subscription filtering | |
| void | addSubscriptionFilterLanes (const std::vector< int > &lanes, bool noOpposite=false, double downstreamDist=-1, double upstreamDist=-1) const |
| void | addSubscriptionFilterNoOpposite () const |
| void | addSubscriptionFilterDownstreamDistance (double dist) const |
| void | addSubscriptionFilterUpstreamDistance (double dist) const |
| void | addSubscriptionFilterCFManeuver (double downstreamDist=-1, double upstreamDist=-1) const |
| void | addSubscriptionFilterLCManeuver (int direction, bool noOpposite=false, double downstreamDist=-1, double upstreamDist=-1) const |
| void | addSubscriptionFilterLeadFollow (const std::vector< int > &lanes) const |
| void | addSubscriptionFilterTurn (double downstreamDist=-1, double upstreamDist=-1) const |
| void | addSubscriptionFilterVClass (const std::vector< std::string > &vClasses) const |
| void | addSubscriptionFilterVType (const std::vector< std::string > &vTypes) const |
| void | addSubscriptionFilterFieldOfVision (double angle) const |
| void | addSubscriptionFilterLateralDistance (double lateralDist, double downstreamDist=-1, double foeDistToJunction=-1) 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 Member Functions | |
| void | addSubscriptionFilterByteList (int filterType, const std::vector< int > &vals) const |
| void | addSubscriptionFilterEmpty (int filterType) const |
| void | addSubscriptionFilterFloat (int filterType, double val) const |
| void | addSubscriptionFilterStringList (int filterType, const std::vector< std::string > &vals) const |
Private Attributes | |
| int | myCmdGetID |
| int | myCmdSetID |
| int | myContextSubscribeID |
| libsumo::ContextSubscriptionResults | myContextSubscriptionResults |
| int | mySubscribeID |
| libsumo::SubscriptionResults | mySubscriptionResults |
Scope for interaction with vehicles.
Definition at line 556 of file TraCIAPI.h.
Definition at line 561 of file TraCIAPI.h.
|
inline |
Definition at line 558 of file TraCIAPI.h.
References TraCIAPI::TraCIAPI(), and TraCIAPI::TraCIScopeWrapper::TraCIScopeWrapper().
|
inlinevirtual |
Definition at line 559 of file TraCIAPI.h.
| void TraCIAPI::VehicleScope::add | ( | const std::string & | vehicleID, |
| const std::string & | routeID, | ||
| const std::string & | typeID = "DEFAULT_VEHTYPE", | ||
| std::string | depart = "-1", | ||
| const std::string & | departLane = "first", | ||
| const std::string & | departPos = "base", | ||
| const std::string & | departSpeed = "0", | ||
| const std::string & | arrivalLane = "current", | ||
| const std::string & | arrivalPos = "max", | ||
| const std::string & | arrivalSpeed = "current", | ||
| const std::string & | fromTaz = "", | ||
| const std::string & | toTaz = "", | ||
| const std::string & | line = "", | ||
| int | personCapacity = 0, | ||
| int | personNumber = 0 ) const |
Definition at line 2648 of file TraCIAPI.cpp.
References libsumo::ADD_FULL, libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, TraCIAPI::toString(), libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
private |
Definition at line 3195 of file TraCIAPI.cpp.
References libsumo::CMD_ADD_SUBSCRIPTION_FILTER, TraCIAPI::TraCIScopeWrapper::myParent, tcpip::Storage::writeByte(), and tcpip::Storage::writeUnsignedByte().
Referenced by addSubscriptionFilterLanes(), and addSubscriptionFilterLeadFollow().
| void TraCIAPI::VehicleScope::addSubscriptionFilterCFManeuver | ( | double | downstreamDist = -1, |
| double | upstreamDist = -1 ) const |
Definition at line 3097 of file TraCIAPI.cpp.
References addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterLeadFollow(), and addSubscriptionFilterUpstreamDistance().
| void TraCIAPI::VehicleScope::addSubscriptionFilterDownstreamDistance | ( | double | dist | ) | const |
Definition at line 3086 of file TraCIAPI.cpp.
References addSubscriptionFilterFloat(), and libsumo::FILTER_TYPE_DOWNSTREAM_DIST.
Referenced by addSubscriptionFilterCFManeuver(), addSubscriptionFilterLanes(), addSubscriptionFilterLateralDistance(), addSubscriptionFilterLCManeuver(), and addSubscriptionFilterTurn().
|
private |
Definition at line 3169 of file TraCIAPI.cpp.
References libsumo::CMD_ADD_SUBSCRIPTION_FILTER, and TraCIAPI::TraCIScopeWrapper::myParent.
Referenced by addSubscriptionFilterLeadFollow(), and addSubscriptionFilterNoOpposite().
| void TraCIAPI::VehicleScope::addSubscriptionFilterFieldOfVision | ( | double | angle | ) | const |
Definition at line 3153 of file TraCIAPI.cpp.
References addSubscriptionFilterFloat(), and libsumo::FILTER_TYPE_FIELD_OF_VISION.
|
private |
Definition at line 3175 of file TraCIAPI.cpp.
References libsumo::CMD_ADD_SUBSCRIPTION_FILTER, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterFieldOfVision(), addSubscriptionFilterLateralDistance(), addSubscriptionFilterTurn(), and addSubscriptionFilterUpstreamDistance().
| void TraCIAPI::VehicleScope::addSubscriptionFilterLanes | ( | const std::vector< int > & | lanes, |
| bool | noOpposite = false, | ||
| double | downstreamDist = -1, | ||
| double | upstreamDist = -1 ) const |
Definition at line 3065 of file TraCIAPI.cpp.
References addSubscriptionFilterByteList(), addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterNoOpposite(), addSubscriptionFilterUpstreamDistance(), and libsumo::FILTER_TYPE_LANES.
| void TraCIAPI::VehicleScope::addSubscriptionFilterLateralDistance | ( | double | lateralDist, |
| double | downstreamDist = -1, | ||
| double | foeDistToJunction = -1 ) const |
Definition at line 3158 of file TraCIAPI.cpp.
References addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterFloat(), addSubscriptionFilterUpstreamDistance(), and libsumo::FILTER_TYPE_LATERAL_DIST.
| void TraCIAPI::VehicleScope::addSubscriptionFilterLCManeuver | ( | int | direction, |
| bool | noOpposite = false, | ||
| double | downstreamDist = -1, | ||
| double | upstreamDist = -1 ) const |
Definition at line 3108 of file TraCIAPI.cpp.
References addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterLeadFollow(), addSubscriptionFilterNoOpposite(), and addSubscriptionFilterUpstreamDistance().
| void TraCIAPI::VehicleScope::addSubscriptionFilterLeadFollow | ( | const std::vector< int > & | lanes | ) | const |
Definition at line 3126 of file TraCIAPI.cpp.
References addSubscriptionFilterByteList(), addSubscriptionFilterEmpty(), libsumo::FILTER_TYPE_LANES, and libsumo::FILTER_TYPE_LEAD_FOLLOW.
Referenced by addSubscriptionFilterCFManeuver(), and addSubscriptionFilterLCManeuver().
| void TraCIAPI::VehicleScope::addSubscriptionFilterNoOpposite | ( | ) | const |
Definition at line 3081 of file TraCIAPI.cpp.
References addSubscriptionFilterEmpty(), and libsumo::FILTER_TYPE_NOOPPOSITE.
Referenced by addSubscriptionFilterLanes(), and addSubscriptionFilterLCManeuver().
|
private |
Definition at line 3185 of file TraCIAPI.cpp.
References libsumo::CMD_ADD_SUBSCRIPTION_FILTER, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRINGLIST, tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by addSubscriptionFilterVClass(), and addSubscriptionFilterVType().
| void TraCIAPI::VehicleScope::addSubscriptionFilterTurn | ( | double | downstreamDist = -1, |
| double | upstreamDist = -1 ) const |
Definition at line 3132 of file TraCIAPI.cpp.
References addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterFloat(), and libsumo::FILTER_TYPE_TURN.
| void TraCIAPI::VehicleScope::addSubscriptionFilterUpstreamDistance | ( | double | dist | ) | const |
Definition at line 3091 of file TraCIAPI.cpp.
References addSubscriptionFilterFloat(), and libsumo::FILTER_TYPE_UPSTREAM_DIST.
Referenced by addSubscriptionFilterCFManeuver(), addSubscriptionFilterLanes(), addSubscriptionFilterLateralDistance(), and addSubscriptionFilterLCManeuver().
| void TraCIAPI::VehicleScope::addSubscriptionFilterVClass | ( | const std::vector< std::string > & | vClasses | ) | const |
Definition at line 3141 of file TraCIAPI.cpp.
References addSubscriptionFilterStringList(), and libsumo::FILTER_TYPE_VCLASS.
| void TraCIAPI::VehicleScope::addSubscriptionFilterVType | ( | const std::vector< std::string > & | vTypes | ) | const |
Definition at line 3147 of file TraCIAPI.cpp.
References addSubscriptionFilterStringList(), and libsumo::FILTER_TYPE_VTYPE.
| void TraCIAPI::VehicleScope::changeLane | ( | const std::string & | vehicleID, |
| int | laneIndex, | ||
| double | duration ) const |
Definition at line 2729 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGELANE, libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_BYTE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::changeLaneRelative | ( | const std::string & | vehicleID, |
| int | laneChange, | ||
| double | duration ) const |
Definition at line 2743 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGELANE, libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_BYTE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::changeSublane | ( | const std::string & | vehicleID, |
| double | latDist ) const |
Definition at line 2759 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGESUBLANE, libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::changeTarget | ( | const std::string & | vehicleID, |
| const std::string & | edgeID ) const |
Definition at line 2719 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGETARGET, libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
Definition at line 3899 of file TraCIAPI.cpp.
References myContextSubscriptionResults, and mySubscriptionResults.
| double TraCIAPI::VehicleScope::getAccel | ( | const std::string & | vehicleID | ) | const |
Definition at line 2543 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_ACCEL.
| double TraCIAPI::VehicleScope::getAcceleration | ( | const std::string & | vehicleID | ) | const |
Definition at line 2183 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_ACCELERATION.
| double TraCIAPI::VehicleScope::getAccumulatedWaitingTime | ( | const std::string & | vehicleID | ) | const |
Definition at line 2598 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_ACCUMULATED_WAITING_TIME.
|
inherited |
Definition at line 3883 of file TraCIAPI.cpp.
References myContextSubscriptionResults.
| double TraCIAPI::VehicleScope::getAllowedSpeed | ( | const std::string & | vehicleID | ) | const |
Definition at line 2603 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_ALLOWED_SPEED.
|
inherited |
Definition at line 3867 of file TraCIAPI.cpp.
References mySubscriptionResults.
| double TraCIAPI::VehicleScope::getAngle | ( | const std::string & | vehicleID | ) | const |
Definition at line 2251 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_ANGLE.
| double TraCIAPI::VehicleScope::getApparentDecel | ( | const std::string & | vehicleID | ) | const |
References TraCIAPI::edge, TraCIAPI::lane, libsumo::MOVE_TELEPORT, and libsumo::REMOVE_VAPORIZED.
| std::vector< libsumo::TraCIBestLanesData > TraCIAPI::VehicleScope::getBestLanes | ( | const std::string & | vehicleID | ) | const |
Definition at line 2429 of file TraCIAPI.cpp.
References libsumo::TraCIBestLanesData::allowsContinuation, libsumo::TraCIBestLanesData::bestLaneOffset, libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::TraCIBestLanesData::continuationLanes, libsumo::TraCIBestLanesData::laneID, libsumo::TraCIBestLanesData::length, TraCIAPI::TraCIScopeWrapper::myParent, n, libsumo::TraCIBestLanesData::occupation, libsumo::TYPE_COMPOUND, and libsumo::VAR_BEST_LANES.
|
protectedinherited |
Definition at line 3569 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, myCmdGetID, myParent, and libsumo::TYPE_BYTE.
| double TraCIAPI::VehicleScope::getCO2Emission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2317 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_CO2EMISSION.
| double TraCIAPI::VehicleScope::getCOEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2322 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_COEMISSION.
|
protectedinherited |
Definition at line 3685 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::TraCIColor::g, myCmdGetID, myParent, libsumo::TraCIColor::r, and libsumo::TYPE_COLOR.
Referenced by TraCIAPI::PersonScope::getColor(), TraCIAPI::POIScope::getColor(), TraCIAPI::PolygonScope::getColor(), TraCIAPI::VehicleScope::getColor(), and TraCIAPI::VehicleTypeScope::getColor().
| libsumo::TraCIColor TraCIAPI::VehicleScope::getColor | ( | const std::string & | vehicleID | ) | const |
Definition at line 2292 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getCol(), and libsumo::VAR_COLOR.
|
inherited |
Definition at line 3889 of file TraCIAPI.cpp.
References myContextSubscriptionResults.
| double TraCIAPI::VehicleScope::getDecel | ( | const std::string & | vehicleID | ) | const |
Definition at line 2548 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_DECEL.
| double TraCIAPI::VehicleScope::getDistance | ( | const std::string & | vehicleID | ) | const |
Definition at line 2302 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_DISTANCE.
|
protectedinherited |
Definition at line 3590 of file TraCIAPI.cpp.
References libsumo::INVALID_DOUBLE_VALUE, myCmdGetID, myParent, and libsumo::TYPE_DOUBLE.
Referenced by TraCIAPI::VehicleScope::getAccel(), TraCIAPI::VehicleTypeScope::getAccel(), TraCIAPI::VehicleScope::getAcceleration(), TraCIAPI::VehicleScope::getAccumulatedWaitingTime(), TraCIAPI::EdgeScope::getAdaptedTraveltime(), TraCIAPI::VehicleScope::getAllowedSpeed(), TraCIAPI::PersonScope::getAngle(), TraCIAPI::POIScope::getAngle(), TraCIAPI::VehicleScope::getAngle(), TraCIAPI::VehicleTypeScope::getApparentDecel(), TraCIAPI::EdgeScope::getCO2Emission(), TraCIAPI::LaneScope::getCO2Emission(), TraCIAPI::VehicleScope::getCO2Emission(), TraCIAPI::EdgeScope::getCOEmission(), TraCIAPI::LaneScope::getCOEmission(), TraCIAPI::VehicleScope::getCOEmission(), TraCIAPI::VehicleScope::getDecel(), TraCIAPI::VehicleTypeScope::getDecel(), TraCIAPI::SimulationScope::getDeltaT(), TraCIAPI::VehicleScope::getDistance(), TraCIAPI::EdgeScope::getEffort(), TraCIAPI::EdgeScope::getElectricityConsumption(), TraCIAPI::LaneScope::getElectricityConsumption(), TraCIAPI::VehicleScope::getElectricityConsumption(), TraCIAPI::VehicleTypeScope::getEmergencyDecel(), TraCIAPI::VehicleScope::getFollowSpeed(), TraCIAPI::EdgeScope::getFuelConsumption(), TraCIAPI::LaneScope::getFuelConsumption(), TraCIAPI::VehicleScope::getFuelConsumption(), TraCIAPI::EdgeScope::getHCEmission(), TraCIAPI::LaneScope::getHCEmission(), TraCIAPI::VehicleScope::getHCEmission(), TraCIAPI::POIScope::getHeight(), TraCIAPI::VehicleScope::getHeight(), TraCIAPI::VehicleTypeScope::getHeight(), TraCIAPI::VehicleScope::getImperfection(), TraCIAPI::VehicleTypeScope::getImperfection(), TraCIAPI::PersonScope::getLanePosition(), TraCIAPI::VehicleScope::getLanePosition(), TraCIAPI::EdgeScope::getLastStepLength(), TraCIAPI::LaneScope::getLastStepLength(), TraCIAPI::InductionLoopScope::getLastStepMeanLength(), TraCIAPI::EdgeScope::getLastStepMeanSpeed(), TraCIAPI::InductionLoopScope::getLastStepMeanSpeed(), TraCIAPI::LaneScope::getLastStepMeanSpeed(), TraCIAPI::MeMeScope::getLastStepMeanSpeed(), TraCIAPI::EdgeScope::getLastStepOccupancy(), TraCIAPI::InductionLoopScope::getLastStepOccupancy(), TraCIAPI::LaneScope::getLastStepOccupancy(), TraCIAPI::VehicleScope::getLateralLanePosition(), TraCIAPI::VehicleScope::getLateralSpeed(), TraCIAPI::LaneScope::getLength(), TraCIAPI::PersonScope::getLength(), TraCIAPI::VehicleScope::getLength(), TraCIAPI::VehicleTypeScope::getLength(), TraCIAPI::PolygonScope::getLineWidth(), TraCIAPI::LaneScope::getMaxSpeed(), TraCIAPI::VehicleScope::getMaxSpeed(), TraCIAPI::VehicleTypeScope::getMaxSpeed(), TraCIAPI::VehicleScope::getMaxSpeedLat(), TraCIAPI::VehicleTypeScope::getMaxSpeedLat(), TraCIAPI::VehicleScope::getMinGap(), TraCIAPI::VehicleTypeScope::getMinGap(), TraCIAPI::VehicleScope::getMinGapLat(), TraCIAPI::VehicleTypeScope::getMinGapLat(), TraCIAPI::TrafficLightScope::getNextSwitch(), TraCIAPI::EdgeScope::getNoiseEmission(), TraCIAPI::LaneScope::getNoiseEmission(), TraCIAPI::VehicleScope::getNoiseEmission(), TraCIAPI::EdgeScope::getNOxEmission(), TraCIAPI::LaneScope::getNOxEmission(), TraCIAPI::VehicleScope::getNOxEmission(), TraCIAPI::TrafficLightScope::getPhaseDuration(), TraCIAPI::EdgeScope::getPMxEmission(), TraCIAPI::LaneScope::getPMxEmission(), TraCIAPI::VehicleScope::getPMxEmission(), TraCIAPI::InductionLoopScope::getPosition(), TraCIAPI::VehicleScope::getSecureGap(), TraCIAPI::PersonScope::getSlope(), TraCIAPI::VehicleScope::getSlope(), TraCIAPI::PersonScope::getSpeed(), TraCIAPI::VehicleScope::getSpeed(), TraCIAPI::VehicleScope::getSpeedDeviation(), TraCIAPI::VehicleTypeScope::getSpeedDeviation(), TraCIAPI::PersonScope::getSpeedFactor(), TraCIAPI::VehicleScope::getSpeedFactor(), TraCIAPI::VehicleTypeScope::getSpeedFactor(), TraCIAPI::VehicleScope::getSpeedWithoutTraCI(), TraCIAPI::VehicleScope::getStopArrivalDelay(), TraCIAPI::VehicleScope::getStopDelay(), TraCIAPI::VehicleScope::getStopSpeed(), TraCIAPI::VehicleScope::getTau(), TraCIAPI::VehicleTypeScope::getTau(), TraCIAPI::SimulationScope::getTime(), TraCIAPI::InductionLoopScope::getTimeSinceDetection(), TraCIAPI::EdgeScope::getTraveltime(), TraCIAPI::LaneScope::getTraveltime(), TraCIAPI::PersonScope::getWaitingTime(), TraCIAPI::VehicleScope::getWaitingTime(), TraCIAPI::LaneScope::getWidth(), TraCIAPI::POIScope::getWidth(), TraCIAPI::VehicleScope::getWidth(), TraCIAPI::VehicleTypeScope::getWidth(), and TraCIAPI::GUIScope::getZoom().
|
protectedinherited |
Definition at line 3671 of file TraCIAPI.cpp.
References myCmdGetID, myParent, and libsumo::TYPE_DOUBLELIST.
Referenced by TraCIAPI::MeMeScope::getEntryPositions(), and TraCIAPI::MeMeScope::getExitPositions().
| double TraCIAPI::VehicleScope::getElectricityConsumption | ( | const std::string & | vehicleID | ) | const |
Definition at line 2352 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_ELECTRICITYCONSUMPTION.
| double TraCIAPI::VehicleScope::getEmergencyDecel | ( | const std::string & | vehicleID | ) | const |
| std::string TraCIAPI::VehicleScope::getEmissionClass | ( | const std::string & | vehicleID | ) | const |
Definition at line 2390 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_EMISSIONCLASS.
| std::pair< std::string, double > TraCIAPI::VehicleScope::getFollower | ( | const std::string & | vehicleID, |
| double | dist ) const |
Definition at line 2486 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::INVALID_DOUBLE_VALUE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::VAR_FOLLOWER, tcpip::Storage::writeByte(), and tcpip::Storage::writeDouble().
| double TraCIAPI::VehicleScope::getFollowSpeed | ( | const std::string & | vehicleID, |
| double | speed, | ||
| double | gap, | ||
| double | leaderSpeed, | ||
| double | leaderMaxDecel, | ||
| const std::string & | leaderID = "" ) const |
Definition at line 2188 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_STRING, libsumo::VAR_FOLLOW_SPEED, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| double TraCIAPI::VehicleScope::getFuelConsumption | ( | const std::string & | vehicleID | ) | const |
Definition at line 2342 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_FUELCONSUMPTION.
| double TraCIAPI::VehicleScope::getHCEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2327 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_HCEMISSION.
| double TraCIAPI::VehicleScope::getHeight | ( | const std::string & | veihcleID | ) | const |
Definition at line 2593 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_HEIGHT.
|
inherited |
Definition at line 3754 of file TraCIAPI.cpp.
References getInt(), and libsumo::ID_COUNT.
|
inherited |
Definition at line 3748 of file TraCIAPI.cpp.
References getStringVector(), and libsumo::TRACI_ID_LIST.
| double TraCIAPI::VehicleScope::getImperfection | ( | const std::string & | vehicleID | ) | const |
Definition at line 2558 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_IMPERFECTION.
|
protectedinherited |
Definition at line 3580 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, myCmdGetID, myParent, and libsumo::TYPE_INTEGER.
Referenced by TraCIAPI::SimulationScope::getArrivedNumber(), TraCIAPI::SimulationScope::getArrivedPersonNumber(), TraCIAPI::SimulationScope::getBusStopWaiting(), TraCIAPI::SimulationScope::getCurrentTime(), TraCIAPI::SimulationScope::getDepartedNumber(), TraCIAPI::SimulationScope::getDepartedPersonNumber(), TraCIAPI::SimulationScope::getEndingTeleportNumber(), TraCIAPI::PolygonScope::getFilled(), getIDCount(), TraCIAPI::InductionLoopScope::getIntervalVehicleNumber(), TraCIAPI::VehicleScope::getLaneChangeMode(), TraCIAPI::VehicleScope::getLaneIndex(), TraCIAPI::EdgeScope::getLaneNumber(), TraCIAPI::EdgeScope::getLastStepHaltingNumber(), TraCIAPI::LaneScope::getLastStepHaltingNumber(), TraCIAPI::MeMeScope::getLastStepHaltingNumber(), TraCIAPI::EdgeScope::getLastStepVehicleNumber(), TraCIAPI::InductionLoopScope::getLastStepVehicleNumber(), TraCIAPI::LaneScope::getLastStepVehicleNumber(), TraCIAPI::MeMeScope::getLastStepVehicleNumber(), TraCIAPI::LaneScope::getLinkNumber(), TraCIAPI::SimulationScope::getLoadedNumber(), TraCIAPI::SimulationScope::getMinExpectedNumber(), TraCIAPI::VehicleScope::getPersonCapacity(), TraCIAPI::VehicleTypeScope::getPersonCapacity(), TraCIAPI::VehicleScope::getPersonNumber(), TraCIAPI::TrafficLightScope::getPhase(), TraCIAPI::PersonScope::getRemainingStages(), TraCIAPI::VehicleScope::getRouteIndex(), TraCIAPI::VehicleScope::getRoutingMode(), TraCIAPI::TrafficLightScope::getServedPersonCount(), TraCIAPI::VehicleScope::getSignals(), TraCIAPI::VehicleScope::getSpeedMode(), TraCIAPI::SimulationScope::getStartingTeleportNumber(), TraCIAPI::VehicleScope::getStopState(), and TraCIAPI::VehicleScope::isRouteValid().
| int TraCIAPI::VehicleScope::getLaneChangeMode | ( | const std::string & | vehicleID | ) | const |
Definition at line 2362 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_LANECHANGE_MODE.
| std::pair< int, int > TraCIAPI::VehicleScope::getLaneChangeState | ( | const std::string & | vehicleID, |
| int | direction ) const |
Definition at line 2504 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGELANE, libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::INVALID_INT_VALUE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().
| std::string TraCIAPI::VehicleScope::getLaneID | ( | const std::string & | vehicleID | ) | const |
Definition at line 2261 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_LANE_ID.
| int TraCIAPI::VehicleScope::getLaneIndex | ( | const std::string & | vehicleID | ) | const |
Definition at line 2266 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_LANE_INDEX.
| double TraCIAPI::VehicleScope::getLanePosition | ( | const std::string & | vehicleID | ) | const |
Definition at line 2297 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_LANEPOSITION.
| std::string TraCIAPI::VehicleScope::getLateralAlignment | ( | const std::string & | vehicleID | ) | const |
Definition at line 2643 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_LATALIGNMENT.
| double TraCIAPI::VehicleScope::getLateralLanePosition | ( | const std::string & | vehicleID | ) | const |
Definition at line 2312 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_LANEPOSITION_LAT.
| double TraCIAPI::VehicleScope::getLateralSpeed | ( | const std::string & | vehicleID | ) | const |
Definition at line 2178 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_SPEED_LAT.
| std::pair< std::string, double > TraCIAPI::VehicleScope::getLeader | ( | const std::string & | vehicleID, |
| double | dist ) const |
Definition at line 2468 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::INVALID_DOUBLE_VALUE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::VAR_LEADER, tcpip::Storage::writeByte(), and tcpip::Storage::writeDouble().
| double TraCIAPI::VehicleScope::getLength | ( | const std::string & | vehicleID | ) | const |
Definition at line 2588 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_LENGTH.
| std::string TraCIAPI::VehicleScope::getLine | ( | const std::string & | vehicleID | ) | const |
Definition at line 2380 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_LINE.
| double TraCIAPI::VehicleScope::getMaxSpeed | ( | const std::string & | vehicleID | ) | const |
Definition at line 2236 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_MAXSPEED.
| double TraCIAPI::VehicleScope::getMaxSpeedLat | ( | const std::string & | vehicleID | ) | const |
Definition at line 2633 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_MAXSPEED_LAT.
| double TraCIAPI::VehicleScope::getMinGap | ( | const std::string & | vehicleID | ) | const |
Definition at line 2578 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_MINGAP.
| double TraCIAPI::VehicleScope::getMinGapLat | ( | const std::string & | vehicleID | ) | const |
Definition at line 2638 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_MINGAP_LAT.
|
inherited |
Definition at line 3912 of file TraCIAPI.cpp.
References myContextSubscriptionResults.
|
inherited |
Definition at line 3906 of file TraCIAPI.cpp.
References mySubscriptionResults.
| std::vector< libsumo::TraCINextTLSData > TraCIAPI::VehicleScope::getNextTLS | ( | const std::string & | vehID | ) | const |
Definition at line 2400 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::TraCINextTLSData::dist, libsumo::TraCINextTLSData::id, TraCIAPI::TraCIScopeWrapper::myParent, n, libsumo::TraCINextTLSData::state, libsumo::TraCINextTLSData::tlIndex, libsumo::TYPE_COMPOUND, and libsumo::VAR_NEXT_TLS.
| double TraCIAPI::VehicleScope::getNoiseEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2347 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_NOISEEMISSION.
| double TraCIAPI::VehicleScope::getNOxEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2337 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_NOXEMISSION.
|
inherited |
retrieve generic parameter
Definition at line 3760 of file TraCIAPI.cpp.
References getString(), libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
|
inherited |
retrieve generic parameter and return (key, value) tuple
Definition at line 3769 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdGetID, myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER_WITH_KEY, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| int TraCIAPI::VehicleScope::getPersonCapacity | ( | const std::string & | vehicleID | ) | const |
Definition at line 2613 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_PERSON_CAPACITY.
| std::vector< std::string > TraCIAPI::VehicleScope::getPersonIDList | ( | const std::string & | vehicleID | ) | const |
Definition at line 2618 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getStringVector(), and libsumo::LAST_STEP_PERSON_ID_LIST.
| int TraCIAPI::VehicleScope::getPersonNumber | ( | const std::string & | vehicleID | ) | const |
Definition at line 2608 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_PERSON_NUMBER.
| double TraCIAPI::VehicleScope::getPMxEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2332 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_PMXEMISSION.
|
protectedinherited |
Definition at line 3600 of file TraCIAPI.cpp.
References myCmdGetID, myParent, libsumo::TYPE_POLYGON, libsumo::TraCIPositionVector::value, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
Referenced by TraCIAPI::GUIScope::getBoundary(), TraCIAPI::SimulationScope::getNetBoundary(), TraCIAPI::JunctionScope::getShape(), TraCIAPI::LaneScope::getShape(), and TraCIAPI::PolygonScope::getShape().
|
protectedinherited |
Definition at line 3621 of file TraCIAPI.cpp.
References myCmdGetID, myParent, libsumo::POSITION_2D, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
Referenced by TraCIAPI::GUIScope::getOffset(), TraCIAPI::JunctionScope::getPosition(), TraCIAPI::PersonScope::getPosition(), TraCIAPI::POIScope::getPosition(), and TraCIAPI::VehicleScope::getPosition().
|
protectedinherited |
Definition at line 3634 of file TraCIAPI.cpp.
References myCmdGetID, myParent, libsumo::POSITION_3D, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
Referenced by TraCIAPI::PersonScope::getPosition3D(), and TraCIAPI::VehicleScope::getPosition3D().
| libsumo::TraCIPosition TraCIAPI::VehicleScope::getPosition | ( | const std::string & | vehicleID | ) | const |
Definition at line 2241 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getPos(), and libsumo::VAR_POSITION.
| libsumo::TraCIPosition TraCIAPI::VehicleScope::getPosition3D | ( | const std::string & | vehicleID | ) | const |
Definition at line 2246 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getPos3D(), and libsumo::VAR_POSITION3D.
| std::string TraCIAPI::VehicleScope::getRoadID | ( | const std::string & | vehicleID | ) | const |
Definition at line 2256 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_ROAD_ID.
| std::vector< std::string > TraCIAPI::VehicleScope::getRoute | ( | const std::string & | vehicleID | ) | const |
Definition at line 2287 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getStringVector(), and libsumo::VAR_EDGES.
| std::string TraCIAPI::VehicleScope::getRouteID | ( | const std::string & | vehicleID | ) | const |
Definition at line 2276 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_ROUTE_ID.
| int TraCIAPI::VehicleScope::getRouteIndex | ( | const std::string & | vehicleID | ) | const |
Definition at line 2281 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_ROUTE_INDEX.
| int TraCIAPI::VehicleScope::getRoutingMode | ( | const std::string & | vehicleID | ) | const |
Definition at line 2527 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_ROUTING_MODE.
| double TraCIAPI::VehicleScope::getSecureGap | ( | const std::string & | vehicleID, |
| double | speed, | ||
| double | leaderSpeed, | ||
| double | leaderMaxDecel, | ||
| const std::string & | leaderID = "" ) const |
Definition at line 2207 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_STRING, libsumo::VAR_SECURE_GAP, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| std::string TraCIAPI::VehicleScope::getShapeClass | ( | const std::string & | vehicleID | ) | const |
Definition at line 2395 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_SHAPECLASS.
| int TraCIAPI::VehicleScope::getSignals | ( | const std::string & | vehicleID | ) | const |
Definition at line 2307 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_SIGNALS.
| double TraCIAPI::VehicleScope::getSlope | ( | const std::string & | vehicleID | ) | const |
Definition at line 2374 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_SLOPE.
| double TraCIAPI::VehicleScope::getSpeed | ( | const std::string & | vehicleID | ) | const |
Definition at line 2173 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_SPEED.
| double TraCIAPI::VehicleScope::getSpeedDeviation | ( | const std::string & | vehicleID | ) | const |
Definition at line 2568 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_SPEED_DEVIATION.
| double TraCIAPI::VehicleScope::getSpeedFactor | ( | const std::string & | vehicleID | ) | const |
Definition at line 2563 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_SPEED_FACTOR.
| int TraCIAPI::VehicleScope::getSpeedMode | ( | const std::string & | vehicleID | ) | const |
Definition at line 2368 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_SPEEDSETMODE.
| double TraCIAPI::VehicleScope::getSpeedWithoutTraCI | ( | const std::string & | vehicleID | ) | const |
Definition at line 2623 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_SPEED_WITHOUT_TRACI.
| double TraCIAPI::VehicleScope::getStopArrivalDelay | ( | const std::string & | vehicleID | ) | const |
Definition at line 2537 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_STOP_ARRIVALDELAY.
| double TraCIAPI::VehicleScope::getStopDelay | ( | const std::string & | vehicleID | ) | const |
Definition at line 2532 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_STOP_DELAY.
| double TraCIAPI::VehicleScope::getStopSpeed | ( | const std::string & | vehicleID, |
| double | speed, | ||
| double | gap ) const |
Definition at line 2223 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::VAR_STOP_SPEED, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| int TraCIAPI::VehicleScope::getStopState | ( | const std::string & | vehicleID | ) | const |
Definition at line 2522 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_STOPSTATE.
|
protectedinherited |
Definition at line 3647 of file TraCIAPI.cpp.
References myCmdGetID, myParent, and libsumo::TYPE_STRING.
Referenced by TraCIAPI::LaneScope::getEdgeID(), TraCIAPI::VehicleScope::getEmissionClass(), TraCIAPI::VehicleTypeScope::getEmissionClass(), TraCIAPI::POIScope::getImageFile(), TraCIAPI::InductionLoopScope::getLaneID(), TraCIAPI::PersonScope::getLaneID(), TraCIAPI::VehicleScope::getLaneID(), TraCIAPI::VehicleScope::getLateralAlignment(), TraCIAPI::VehicleTypeScope::getLateralAlignment(), TraCIAPI::VehicleScope::getLine(), TraCIAPI::PersonScope::getNextEdge(), TraCIAPI::SimulationScope::getOption(), getParameter(), TraCIAPI::TrafficLightScope::getPhaseName(), TraCIAPI::TrafficLightScope::getProgram(), TraCIAPI::TrafficLightScope::getRedYellowGreenState(), TraCIAPI::PersonScope::getRoadID(), TraCIAPI::VehicleScope::getRoadID(), TraCIAPI::VehicleScope::getRouteID(), TraCIAPI::GUIScope::getSchema(), TraCIAPI::VehicleScope::getShapeClass(), TraCIAPI::VehicleTypeScope::getShapeClass(), TraCIAPI::EdgeScope::getStreetName(), TraCIAPI::POIScope::getType(), TraCIAPI::PolygonScope::getType(), TraCIAPI::PersonScope::getTypeID(), TraCIAPI::VehicleScope::getTypeID(), TraCIAPI::PersonScope::getVehicle(), TraCIAPI::VehicleScope::getVehicleClass(), and TraCIAPI::VehicleTypeScope::getVehicleClass().
|
protectedinherited |
Definition at line 3657 of file TraCIAPI.cpp.
References myCmdGetID, myParent, and libsumo::TYPE_STRINGLIST.
Referenced by TraCIAPI::LaneScope::getAllowed(), TraCIAPI::SimulationScope::getArrivedIDList(), TraCIAPI::SimulationScope::getArrivedPersonIDList(), TraCIAPI::SimulationScope::getBusStopWaitingIDList(), TraCIAPI::TrafficLightScope::getControlledLanes(), TraCIAPI::SimulationScope::getDepartedIDList(), TraCIAPI::SimulationScope::getDepartedPersonIDList(), TraCIAPI::LaneScope::getDisallowed(), TraCIAPI::PersonScope::getEdges(), TraCIAPI::RouteScope::getEdges(), TraCIAPI::SimulationScope::getEndingTeleportIDList(), TraCIAPI::MeMeScope::getEntryLanes(), TraCIAPI::MeMeScope::getExitLanes(), getIDList(), TraCIAPI::EdgeScope::getLastStepVehicleIDs(), TraCIAPI::InductionLoopScope::getLastStepVehicleIDs(), TraCIAPI::LaneScope::getLastStepVehicleIDs(), TraCIAPI::MeMeScope::getLastStepVehicleIDs(), TraCIAPI::SimulationScope::getLoadedIDList(), TraCIAPI::VehicleScope::getPersonIDList(), TraCIAPI::VehicleScope::getRoute(), TraCIAPI::SimulationScope::getStartingTeleportIDList(), and TraCIAPI::VehicleScope::getVia().
|
inherited |
Definition at line 3873 of file TraCIAPI.cpp.
References mySubscriptionResults.
| double TraCIAPI::VehicleScope::getTau | ( | const std::string & | vehicleID | ) | const |
Definition at line 2553 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_TAU.
|
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, myCmdGetID, myParent, libsumo::TraCIStage::travelTime, libsumo::TraCIStage::type, libsumo::TYPE_COMPOUND, and libsumo::TraCIStage::vType.
Referenced by TraCIAPI::SimulationScope::findRoute(), and TraCIAPI::PersonScope::getStage().
| std::string TraCIAPI::VehicleScope::getTypeID | ( | const std::string & | vehicleID | ) | const |
Definition at line 2271 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_TYPE.
|
protectedinherited |
Definition at line 3559 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, myCmdGetID, myParent, and libsumo::TYPE_UBYTE.
| std::string TraCIAPI::VehicleScope::getVehicleClass | ( | const std::string & | vehicleID | ) | const |
Definition at line 2573 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_VEHICLECLASS.
| std::vector< std::string > TraCIAPI::VehicleScope::getVia | ( | const std::string & | vehicleID | ) | const |
Definition at line 2385 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getStringVector(), and libsumo::VAR_VIA.
| double TraCIAPI::VehicleScope::getWaitingTime | ( | const std::string & | vehicleID | ) | const |
Definition at line 2357 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_WAITING_TIME.
| double TraCIAPI::VehicleScope::getWidth | ( | const std::string & | vehicleID | ) | const |
Definition at line 2583 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_WIDTH.
| bool TraCIAPI::VehicleScope::isRouteValid | ( | const std::string & | vehicleID | ) | const |
Definition at line 2628 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getInt(), and libsumo::VAR_ROUTE_VALID.
| void TraCIAPI::VehicleScope::moveTo | ( | const std::string & | vehicleID, |
| const std::string & | laneID, | ||
| double | position, | ||
| int | reason = libsumo::MOVE_TELEPORT ) const |
Definition at line 2809 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::VAR_MOVE_TO, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::moveToXY | ( | const std::string & | vehicleID, |
| const std::string & | edgeID, | ||
| const int | lane, | ||
| const double | x, | ||
| const double | y, | ||
| const double | angle, | ||
| const int | keepRoute ) const |
Definition at line 2824 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::lane, libsumo::MOVE_TO_XY, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_BYTE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::openGap | ( | const std::string & | vehicleID, |
| double | newTau, | ||
| double | duration, | ||
| double | changeRate, | ||
| double | maxDecel ) const |
Definition at line 2859 of file TraCIAPI.cpp.
References libsumo::CMD_OPENGAP, libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::remove | ( | const std::string & | vehicleID, |
| char | reason = libsumo::REMOVE_VAPORIZED ) const |
Definition at line 2708 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::REMOVE, libsumo::TYPE_BYTE, and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::rerouteTraveltime | ( | const std::string & | vehicleID, |
| bool | currentTravelTimes = true ) const |
Definition at line 2792 of file TraCIAPI.cpp.
References libsumo::CMD_REROUTE_TRAVELTIME, libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setAcceleration | ( | const std::string & | vehicleID, |
| double | accel, | ||
| double | duration ) const |
Definition at line 2891 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::VAR_ACCELERATION, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setColor | ( | const std::string & | vehicleID, |
| const libsumo::TraCIColor & | c ) const |
Definition at line 2995 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TraCIColor::g, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TraCIColor::r, libsumo::TYPE_COLOR, libsumo::VAR_COLOR, and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3812 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIAPI::POIScope::setAngle(), TraCIAPI::POIScope::setHeight(), TraCIAPI::LaneScope::setLength(), TraCIAPI::EdgeScope::setMaxSpeed(), TraCIAPI::LaneScope::setMaxSpeed(), TraCIAPI::POIScope::setWidth(), and TraCIAPI::GUIScope::setZoom().
| void TraCIAPI::VehicleScope::setEmissionClass | ( | const std::string & | vehicleID, |
| const std::string & | clazz ) const |
Definition at line 3056 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRING, libsumo::VAR_EMISSIONCLASS, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3802 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setLaneChangeMode | ( | const std::string & | vehicleID, |
| int | mode ) const |
Definition at line 2917 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_INTEGER, libsumo::VAR_LANECHANGE_MODE, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().
| void TraCIAPI::VehicleScope::setLine | ( | const std::string & | vehicleID, |
| const std::string & | line ) const |
Definition at line 3007 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRING, libsumo::VAR_LINE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setMaxSpeed | ( | const std::string & | vehicleID, |
| double | speed ) const |
Definition at line 2986 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_DOUBLE, libsumo::VAR_MAXSPEED, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setMinGap | ( | const std::string & | vehicleID, |
| double | minGap ) const |
Definition at line 2977 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_DOUBLE, libsumo::VAR_MINGAP, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
set generic paramter
Definition at line 3788 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setPreviousSpeed | ( | const std::string & | vehicleID, |
| double | prevSpeed, | ||
| double | prevAcceleration = std::numeric_limits<int>::min() ) const |
Definition at line 2904 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::VAR_PREV_SPEED, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setRoute | ( | const std::string & | vehicleID, |
| const std::vector< std::string > & | edge ) const |
Definition at line 2779 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRINGLIST, libsumo::VAR_ROUTE, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setRouteID | ( | const std::string & | vehicleID, |
| const std::string & | routeID ) const |
Definition at line 2769 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRING, libsumo::VAR_ROUTE_ID, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setRoutingMode | ( | const std::string & | vehicleID, |
| int | routingMode ) const |
Definition at line 3037 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_INTEGER, libsumo::VAR_ROUTING_MODE, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setShapeClass | ( | const std::string & | vehicleID, |
| const std::string & | clazz ) const |
Definition at line 3046 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRING, libsumo::VAR_SHAPECLASS, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setSignals | ( | const std::string & | vehicleID, |
| int | signals ) const |
Definition at line 3028 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_INTEGER, libsumo::VAR_SIGNALS, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setSpeed | ( | const std::string & | vehicleID, |
| double | speed ) const |
Definition at line 2882 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_DOUBLE, libsumo::VAR_SPEED, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setSpeedFactor | ( | const std::string & | vehicleID, |
| double | factor ) const |
Definition at line 2968 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_DOUBLE, libsumo::VAR_SPEED_FACTOR, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setSpeedMode | ( | const std::string & | vehicleID, |
| int | mode ) const |
Definition at line 2926 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_INTEGER, libsumo::VAR_SPEEDSETMODE, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().
| void TraCIAPI::VehicleScope::setStop | ( | const std::string | vehicleID, |
| const std::string | edgeID, | ||
| const double | endPos = 1., | ||
| const int | laneIndex = 0, | ||
| const double | duration = std::numeric_limits<double>::max(), | ||
| const int | flags = 0, | ||
| const double | startPos = std::numeric_limits<int>::min(), | ||
| const double | until = -1 ) const |
Definition at line 2935 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::CMD_STOP, TraCIAPI::TraCIScopeWrapper::myParent, 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().
|
protectedinherited |
Definition at line 3822 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIAPI::POIScope::setImageFile(), TraCIAPI::GUIScope::setSchema(), TraCIAPI::POIScope::setType(), and TraCIAPI::GUIScope::trackVehicle().
|
protectedinherited |
Definition at line 3832 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_STRINGLIST, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIAPI::LaneScope::setAllowed(), and TraCIAPI::LaneScope::setDisallowed().
| void TraCIAPI::VehicleScope::setType | ( | const std::string & | vehicleID, |
| const std::string & | typeID ) const |
Definition at line 2959 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRING, libsumo::VAR_TYPE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::setVia | ( | const std::string & | vehicleID, |
| const std::vector< std::string > & | via ) const |
Definition at line 3016 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_STRINGLIST, libsumo::VAR_VIA, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::VehicleScope::slowDown | ( | const std::string & | vehicleID, |
| double | speed, | ||
| double | duration ) const |
Definition at line 2846 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::CMD_SLOWDOWN, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
Definition at line 3845 of file TraCIAPI.cpp.
References myParent, and mySubscribeID.
|
inherited |
Definition at line 3857 of file TraCIAPI.cpp.
References myContextSubscribeID, and myParent.
|
privateinherited |
Definition at line 154 of file TraCIAPI.h.
Referenced by getByte(), getCol(), getDouble(), getDoubleVector(), getInt(), getParameterWithKey(), getPolygon(), getPos(), getPos3D(), getString(), getStringVector(), getTraCIStage(), getUnsignedByte(), and TraCIScopeWrapper().
|
privateinherited |
Definition at line 155 of file TraCIAPI.h.
Referenced by setDouble(), setInt(), setParameter(), setString(), setStringVector(), and TraCIScopeWrapper().
|
privateinherited |
Definition at line 157 of file TraCIAPI.h.
Referenced by subscribeContext(), and TraCIScopeWrapper().
|
privateinherited |
Definition at line 159 of file TraCIAPI.h.
Referenced by clearSubscriptionResults(), getAllContextSubscriptionResults(), getContextSubscriptionResults(), and getModifiableContextSubscriptionResults().
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 151 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::adaptTraveltime(), TraCIAPI::PersonScope::add(), TraCIAPI::POIScope::add(), TraCIAPI::PolygonScope::add(), TraCIAPI::RouteScope::add(), TraCIAPI::VehicleScope::add(), TraCIAPI::VehicleScope::addSubscriptionFilterByteList(), TraCIAPI::VehicleScope::addSubscriptionFilterEmpty(), TraCIAPI::VehicleScope::addSubscriptionFilterFloat(), TraCIAPI::VehicleScope::addSubscriptionFilterStringList(), TraCIAPI::PersonScope::appendDrivingStage(), TraCIAPI::PersonScope::appendStage(), TraCIAPI::PersonScope::appendWaitingStage(), TraCIAPI::PersonScope::appendWalkingStage(), TraCIAPI::VehicleScope::changeLane(), TraCIAPI::VehicleScope::changeLaneRelative(), TraCIAPI::VehicleScope::changeSublane(), TraCIAPI::VehicleScope::changeTarget(), TraCIAPI::SimulationScope::convert2D(), TraCIAPI::SimulationScope::convert3D(), TraCIAPI::SimulationScope::convertGeo(), TraCIAPI::SimulationScope::convertRoad(), TraCIAPI::VehicleTypeScope::copy(), TraCIAPI::TrafficLightScope::getAllProgramLogics(), TraCIAPI::VehicleScope::getBestLanes(), getByte(), getCol(), TraCIAPI::TrafficLightScope::getControlledLinks(), TraCIAPI::SimulationScope::getDistance2D(), TraCIAPI::SimulationScope::getDistanceRoad(), getDouble(), getDoubleVector(), TraCIAPI::LaneScope::getFoes(), TraCIAPI::VehicleScope::getFollower(), getInt(), TraCIAPI::VehicleScope::getLaneChangeState(), TraCIAPI::VehicleScope::getLeader(), TraCIAPI::LaneScope::getLinks(), TraCIAPI::VehicleScope::getNextTLS(), getParameterWithKey(), getPolygon(), getPos(), getPos3D(), getString(), getStringVector(), getTraCIStage(), getUnsignedByte(), TraCIAPI::InductionLoopScope::getVehicleData(), TraCIAPI::SimulationScope::loadState(), TraCIAPI::PersonScope::moveTo(), TraCIAPI::VehicleScope::moveTo(), TraCIAPI::PersonScope::moveToXY(), TraCIAPI::VehicleScope::moveToXY(), TraCIAPI::VehicleScope::openGap(), TraCIAPI::POIScope::remove(), TraCIAPI::PolygonScope::remove(), TraCIAPI::VehicleScope::remove(), TraCIAPI::PersonScope::removeStage(), TraCIAPI::PersonScope::rerouteTraveltime(), TraCIAPI::VehicleScope::rerouteTraveltime(), TraCIAPI::SimulationScope::saveState(), TraCIAPI::GUIScope::screenshot(), TraCIAPI::VehicleTypeScope::setAccel(), TraCIAPI::VehicleScope::setAcceleration(), TraCIAPI::VehicleTypeScope::setApparentDecel(), TraCIAPI::GUIScope::setBoundary(), TraCIAPI::PersonScope::setColor(), TraCIAPI::POIScope::setColor(), TraCIAPI::PolygonScope::setColor(), TraCIAPI::VehicleScope::setColor(), TraCIAPI::VehicleTypeScope::setColor(), TraCIAPI::VehicleTypeScope::setDecel(), setDouble(), TraCIAPI::EdgeScope::setEffort(), TraCIAPI::VehicleTypeScope::setEmergencyDecel(), TraCIAPI::VehicleScope::setEmissionClass(), TraCIAPI::VehicleTypeScope::setEmissionClass(), TraCIAPI::PersonScope::setHeight(), TraCIAPI::VehicleTypeScope::setHeight(), TraCIAPI::VehicleTypeScope::setImperfection(), setInt(), TraCIAPI::VehicleScope::setLaneChangeMode(), TraCIAPI::VehicleTypeScope::setLateralAlignment(), TraCIAPI::PersonScope::setLength(), TraCIAPI::VehicleTypeScope::setLength(), TraCIAPI::VehicleScope::setLine(), TraCIAPI::PolygonScope::setLineWidth(), TraCIAPI::VehicleScope::setMaxSpeed(), TraCIAPI::VehicleTypeScope::setMaxSpeed(), TraCIAPI::VehicleTypeScope::setMaxSpeedLat(), TraCIAPI::PersonScope::setMinGap(), TraCIAPI::VehicleScope::setMinGap(), TraCIAPI::VehicleTypeScope::setMinGap(), TraCIAPI::VehicleTypeScope::setMinGapLat(), TraCIAPI::GUIScope::setOffset(), setParameter(), TraCIAPI::TrafficLightScope::setPhase(), TraCIAPI::TrafficLightScope::setPhaseDuration(), TraCIAPI::TrafficLightScope::setPhaseName(), TraCIAPI::POIScope::setPosition(), TraCIAPI::VehicleScope::setPreviousSpeed(), TraCIAPI::TrafficLightScope::setProgram(), TraCIAPI::TrafficLightScope::setProgramLogic(), TraCIAPI::TrafficLightScope::setRedYellowGreenState(), TraCIAPI::VehicleScope::setRoute(), TraCIAPI::VehicleScope::setRouteID(), TraCIAPI::VehicleScope::setRoutingMode(), TraCIAPI::PolygonScope::setShape(), TraCIAPI::VehicleScope::setShapeClass(), TraCIAPI::VehicleTypeScope::setShapeClass(), TraCIAPI::VehicleScope::setSignals(), TraCIAPI::PersonScope::setSpeed(), TraCIAPI::VehicleScope::setSpeed(), TraCIAPI::VehicleTypeScope::setSpeedDeviation(), TraCIAPI::PersonScope::setSpeedFactor(), TraCIAPI::VehicleScope::setSpeedFactor(), TraCIAPI::VehicleTypeScope::setSpeedFactor(), TraCIAPI::VehicleScope::setSpeedMode(), TraCIAPI::VehicleScope::setStop(), setString(), setStringVector(), TraCIAPI::VehicleTypeScope::setTau(), TraCIAPI::PersonScope::setType(), TraCIAPI::PolygonScope::setType(), TraCIAPI::VehicleScope::setType(), TraCIAPI::VehicleTypeScope::setVehicleClass(), TraCIAPI::VehicleScope::setVia(), TraCIAPI::PersonScope::setWidth(), TraCIAPI::VehicleTypeScope::setWidth(), TraCIAPI::VehicleScope::slowDown(), subscribe(), subscribeContext(), TraCIScopeWrapper(), and TraCIAPI::SimulationScope::writeMessage().
|
privateinherited |
Definition at line 156 of file TraCIAPI.h.
Referenced by subscribe(), and TraCIScopeWrapper().
|
privateinherited |
Definition at line 158 of file TraCIAPI.h.
Referenced by clearSubscriptionResults(), getAllSubscriptionResults(), getModifiableSubscriptionResults(), and getSubscriptionResults().