![]() |
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 |
libsumo::SubscriptionResults & | getModifiableContextSubscriptionResults (const std::string &objID) |
libsumo::SubscriptionResults & | getModifiableSubscriptionResults () |
std::string | getParameter (const std::string &objectID, const std::string &key) const |
retrieve generic paramter More... | |
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 More... | |
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 | |
std::vector< std::string > | getIDList () const |
int | getIDCount () const |
double | getSpeed (const std::string &vehicleID) const |
double | getLateralSpeed (const std::string &vehicleID) const |
double | getAcceleration (const std::string &vehicleID) 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 | getSpeedMode (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 |
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 |
int | getRoutingMode (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) 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 | 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 | 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 |
Protected Attributes | |
int | myCmdGetID |
int | myCmdSetID |
int | myContextSubscribeID |
libsumo::ContextSubscriptionResults | myContextSubscriptionResults |
TraCIAPI & | myParent |
The parent TraCI client which offers the connection. More... | |
int | mySubscribeID |
libsumo::SubscriptionResults | mySubscriptionResults |
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 |
VehicleScope & | operator= (const VehicleScope &src) |
invalidated assignment operator More... | |
VehicleScope (const VehicleScope &src) | |
invalidated copy constructor More... | |
Scope for interaction with vehicles.
Definition at line 662 of file TraCIAPI.h.
Definition at line 667 of file TraCIAPI.h.
|
inline |
Definition at line 664 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 665 of file TraCIAPI.h.
|
private |
invalidated copy constructor
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 2781 of file TraCIAPI.cpp.
References libsumo::ADD_FULL, libsumo::CMD_SET_VEHICLE_VARIABLE, TraCIAPI::toString(), libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
private |
Definition at line 3269 of file TraCIAPI.cpp.
References libsumo::CMD_ADD_SUBSCRIPTION_FILTER, tcpip::Storage::writeByte(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleScope::addSubscriptionFilterCFManeuver | ( | double | downstreamDist = -1 , |
double | upstreamDist = -1 |
||
) | const |
Definition at line 3184 of file TraCIAPI.cpp.
void TraCIAPI::VehicleScope::addSubscriptionFilterDownstreamDistance | ( | double | dist | ) | const |
Definition at line 3173 of file TraCIAPI.cpp.
References libsumo::FILTER_TYPE_DOWNSTREAM_DIST.
|
private |
Definition at line 3243 of file TraCIAPI.cpp.
References libsumo::CMD_ADD_SUBSCRIPTION_FILTER.
|
private |
Definition at line 3249 of file TraCIAPI.cpp.
References libsumo::CMD_ADD_SUBSCRIPTION_FILTER, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleScope::addSubscriptionFilterLanes | ( | const std::vector< int > & | lanes, |
bool | noOpposite = false , |
||
double | downstreamDist = -1 , |
||
double | upstreamDist = -1 |
||
) | const |
Definition at line 3152 of file TraCIAPI.cpp.
References libsumo::FILTER_TYPE_LANES.
void TraCIAPI::VehicleScope::addSubscriptionFilterLCManeuver | ( | int | direction, |
bool | noOpposite = false , |
||
double | downstreamDist = -1 , |
||
double | upstreamDist = -1 |
||
) | const |
Definition at line 3195 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::addSubscriptionFilterLeadFollow | ( | const std::vector< int > & | lanes | ) | const |
Definition at line 3213 of file TraCIAPI.cpp.
References libsumo::FILTER_TYPE_LANES, and libsumo::FILTER_TYPE_LEAD_FOLLOW.
void TraCIAPI::VehicleScope::addSubscriptionFilterNoOpposite | ( | ) | const |
Definition at line 3168 of file TraCIAPI.cpp.
References libsumo::FILTER_TYPE_NOOPPOSITE.
|
private |
Definition at line 3259 of file TraCIAPI.cpp.
References libsumo::CMD_ADD_SUBSCRIPTION_FILTER, libsumo::TYPE_STRINGLIST, tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleScope::addSubscriptionFilterTurn | ( | double | downstreamDist = -1 , |
double | upstreamDist = -1 |
||
) | const |
Definition at line 3219 of file TraCIAPI.cpp.
References libsumo::FILTER_TYPE_TURN.
void TraCIAPI::VehicleScope::addSubscriptionFilterUpstreamDistance | ( | double | dist | ) | const |
Definition at line 3178 of file TraCIAPI.cpp.
References libsumo::FILTER_TYPE_UPSTREAM_DIST.
void TraCIAPI::VehicleScope::addSubscriptionFilterVClass | ( | const std::vector< std::string > & | vClasses | ) | const |
Definition at line 3231 of file TraCIAPI.cpp.
References libsumo::FILTER_TYPE_VCLASS.
void TraCIAPI::VehicleScope::addSubscriptionFilterVType | ( | const std::vector< std::string > & | vTypes | ) | const |
Definition at line 3237 of file TraCIAPI.cpp.
References libsumo::FILTER_TYPE_VTYPE.
void TraCIAPI::VehicleScope::changeLane | ( | const std::string & | vehicleID, |
int | laneIndex, | ||
double | duration | ||
) | const |
Definition at line 2862 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGELANE, libsumo::CMD_SET_VEHICLE_VARIABLE, 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 2876 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGELANE, libsumo::CMD_SET_VEHICLE_VARIABLE, 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 2892 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGESUBLANE, libsumo::CMD_SET_VEHICLE_VARIABLE, 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 2852 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGETARGET, libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3667 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
double TraCIAPI::VehicleScope::getAccel | ( | const std::string & | vehicleID | ) | const |
Definition at line 2676 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ACCEL.
double TraCIAPI::VehicleScope::getAcceleration | ( | const std::string & | vehicleID | ) | const |
Definition at line 2399 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ACCELERATION.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getAccumulatedWaitingTime | ( | const std::string & | vehicleID | ) | const |
Definition at line 2731 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ACCUMULATED_WAITING_TIME.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3651 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
double TraCIAPI::VehicleScope::getAllowedSpeed | ( | const std::string & | vehicleID | ) | const |
Definition at line 2736 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ALLOWED_SPEED.
|
inherited |
Definition at line 3635 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
double TraCIAPI::VehicleScope::getAngle | ( | const std::string & | vehicleID | ) | const |
Definition at line 2419 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ANGLE.
double TraCIAPI::VehicleScope::getApparentDecel | ( | const std::string & | vehicleID | ) | const |
std::vector< libsumo::TraCIBestLanesData > TraCIAPI::VehicleScope::getBestLanes | ( | const std::string & | vehicleID | ) | const |
Definition at line 2591 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, libsumo::TraCIBestLanesData::occupation, libsumo::TYPE_COMPOUND, and libsumo::VAR_BEST_LANES.
double TraCIAPI::VehicleScope::getCO2Emission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2485 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_CO2EMISSION.
double TraCIAPI::VehicleScope::getCOEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2490 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_COEMISSION.
libsumo::TraCIColor TraCIAPI::VehicleScope::getColor | ( | const std::string & | vehicleID | ) | const |
Definition at line 2460 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_COLOR.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3657 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
double TraCIAPI::VehicleScope::getDecel | ( | const std::string & | vehicleID | ) | const |
Definition at line 2681 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_DECEL.
double TraCIAPI::VehicleScope::getDistance | ( | const std::string & | vehicleID | ) | const |
Definition at line 2470 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_DISTANCE.
double TraCIAPI::VehicleScope::getElectricityConsumption | ( | const std::string & | vehicleID | ) | const |
Definition at line 2520 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, 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 2552 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_EMISSIONCLASS.
double TraCIAPI::VehicleScope::getFuelConsumption | ( | const std::string & | vehicleID | ) | const |
Definition at line 2510 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_FUELCONSUMPTION.
double TraCIAPI::VehicleScope::getHCEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2495 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_HCEMISSION.
double TraCIAPI::VehicleScope::getHeight | ( | const std::string & | veihcleID | ) | const |
Definition at line 2726 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_HEIGHT.
int TraCIAPI::VehicleScope::getIDCount | ( | ) | const |
Definition at line 2384 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::ID_COUNT.
Referenced by TraCITestClient::testAPI().
std::vector< std::string > TraCIAPI::VehicleScope::getIDList | ( | ) | const |
Definition at line 2379 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::TRACI_ID_LIST.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getImperfection | ( | const std::string & | vehicleID | ) | const |
Definition at line 2691 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_IMPERFECTION.
std::pair< int, int > TraCIAPI::VehicleScope::getLaneChangeState | ( | const std::string & | vehicleID, |
int | direction | ||
) | const |
Definition at line 2648 of file TraCIAPI.cpp.
References libsumo::CMD_CHANGELANE, libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::INVALID_INT_VALUE, libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, tcpip::Storage::writeByte(), and tcpip::Storage::writeInt().
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::VehicleScope::getLaneID | ( | const std::string & | vehicleID | ) | const |
Definition at line 2429 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_LANE_ID.
Referenced by TraCITestClient::testAPI().
int TraCIAPI::VehicleScope::getLaneIndex | ( | const std::string & | vehicleID | ) | const |
Definition at line 2434 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_LANE_INDEX.
double TraCIAPI::VehicleScope::getLanePosition | ( | const std::string & | vehicleID | ) | const |
Definition at line 2465 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_LANEPOSITION.
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::VehicleScope::getLateralAlignment | ( | const std::string & | vehicleID | ) | const |
Definition at line 2776 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_LATALIGNMENT.
double TraCIAPI::VehicleScope::getLateralLanePosition | ( | const std::string & | vehicleID | ) | const |
Definition at line 2480 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_LANEPOSITION_LAT.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getLateralSpeed | ( | const std::string & | vehicleID | ) | const |
Definition at line 2394 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SPEED_LAT.
Referenced by TraCITestClient::testAPI().
std::pair< std::string, double > TraCIAPI::VehicleScope::getLeader | ( | const std::string & | vehicleID, |
double | dist | ||
) | const |
Definition at line 2630 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::INVALID_DOUBLE_VALUE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::VAR_LEADER, tcpip::Storage::writeByte(), and tcpip::Storage::writeDouble().
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getLength | ( | const std::string & | vehicleID | ) | const |
Definition at line 2721 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_LENGTH.
std::string TraCIAPI::VehicleScope::getLine | ( | const std::string & | vehicleID | ) | const |
Definition at line 2542 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_LINE.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getMaxSpeed | ( | const std::string & | vehicleID | ) | const |
Definition at line 2404 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_MAXSPEED.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getMaxSpeedLat | ( | const std::string & | vehicleID | ) | const |
Definition at line 2766 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_MAXSPEED_LAT.
double TraCIAPI::VehicleScope::getMinGap | ( | const std::string & | vehicleID | ) | const |
Definition at line 2711 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_MINGAP.
double TraCIAPI::VehicleScope::getMinGapLat | ( | const std::string & | vehicleID | ) | const |
Definition at line 2771 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_MINGAP_LAT.
|
inherited |
Definition at line 3680 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3674 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
std::vector< libsumo::TraCINextTLSData > TraCIAPI::VehicleScope::getNextTLS | ( | const std::string & | vehID | ) | const |
Definition at line 2562 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::TraCINextTLSData::dist, libsumo::TraCINextTLSData::id, libsumo::TraCINextTLSData::state, libsumo::TraCINextTLSData::tlIndex, libsumo::TYPE_COMPOUND, and libsumo::VAR_NEXT_TLS.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getNoiseEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2515 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_NOISEEMISSION.
double TraCIAPI::VehicleScope::getNOxEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2505 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_NOXEMISSION.
|
inherited |
retrieve generic paramter
Definition at line 3590 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
int TraCIAPI::VehicleScope::getPersonCapacity | ( | const std::string & | vehicleID | ) | const |
Definition at line 2746 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_PERSON_CAPACITY.
Referenced by TraCITestClient::testAPI().
std::vector< std::string > TraCIAPI::VehicleScope::getPersonIDList | ( | const std::string & | vehicleID | ) | const |
Definition at line 2751 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::LAST_STEP_PERSON_ID_LIST.
int TraCIAPI::VehicleScope::getPersonNumber | ( | const std::string & | vehicleID | ) | const |
Definition at line 2741 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_PERSON_NUMBER.
double TraCIAPI::VehicleScope::getPMxEmission | ( | const std::string & | vehicleID | ) | const |
Definition at line 2500 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_PMXEMISSION.
libsumo::TraCIPosition TraCIAPI::VehicleScope::getPosition | ( | const std::string & | vehicleID | ) | const |
Definition at line 2409 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_POSITION.
libsumo::TraCIPosition TraCIAPI::VehicleScope::getPosition3D | ( | const std::string & | vehicleID | ) | const |
Definition at line 2414 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_POSITION3D.
std::string TraCIAPI::VehicleScope::getRoadID | ( | const std::string & | vehicleID | ) | const |
Definition at line 2424 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ROAD_ID.
Referenced by TraCITestClient::testAPI().
std::vector< std::string > TraCIAPI::VehicleScope::getRoute | ( | const std::string & | vehicleID | ) | const |
Definition at line 2455 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_EDGES.
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::VehicleScope::getRouteID | ( | const std::string & | vehicleID | ) | const |
Definition at line 2444 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ROUTE_ID.
Referenced by TraCITestClient::testAPI().
int TraCIAPI::VehicleScope::getRouteIndex | ( | const std::string & | vehicleID | ) | const |
Definition at line 2449 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ROUTE_INDEX.
int TraCIAPI::VehicleScope::getRoutingMode | ( | const std::string & | vehicleID | ) | const |
Definition at line 2671 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ROUTING_MODE.
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::VehicleScope::getShapeClass | ( | const std::string & | vehicleID | ) | const |
Definition at line 2557 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SHAPECLASS.
Referenced by TraCITestClient::testAPI().
int TraCIAPI::VehicleScope::getSignals | ( | const std::string & | vehicleID | ) | const |
Definition at line 2475 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SIGNALS.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getSlope | ( | const std::string & | vehicleID | ) | const |
Definition at line 2536 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SLOPE.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getSpeed | ( | const std::string & | vehicleID | ) | const |
Definition at line 2389 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SPEED.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getSpeedDeviation | ( | const std::string & | vehicleID | ) | const |
Definition at line 2701 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SPEED_DEVIATION.
double TraCIAPI::VehicleScope::getSpeedFactor | ( | const std::string & | vehicleID | ) | const |
Definition at line 2696 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SPEED_FACTOR.
int TraCIAPI::VehicleScope::getSpeedMode | ( | const std::string & | vehicleID | ) | const |
Definition at line 2530 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SPEEDSETMODE.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getSpeedWithoutTraCI | ( | const std::string & | vehicleID | ) | const |
Definition at line 2756 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_SPEED_WITHOUT_TRACI.
int TraCIAPI::VehicleScope::getStopState | ( | const std::string & | vehicleID | ) | const |
Definition at line 2666 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_STOPSTATE.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3641 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
double TraCIAPI::VehicleScope::getTau | ( | const std::string & | vehicleID | ) | const |
Definition at line 2686 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_TAU.
std::string TraCIAPI::VehicleScope::getTypeID | ( | const std::string & | vehicleID | ) | const |
Definition at line 2439 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_TYPE.
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::VehicleScope::getVehicleClass | ( | const std::string & | vehicleID | ) | const |
Definition at line 2706 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_VEHICLECLASS.
std::vector< std::string > TraCIAPI::VehicleScope::getVia | ( | const std::string & | vehicleID | ) | const |
Definition at line 2547 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_VIA.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getWaitingTime | ( | const std::string & | vehicleID | ) | const |
Definition at line 2525 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_WAITING_TIME.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::VehicleScope::getWidth | ( | const std::string & | vehicleID | ) | const |
Definition at line 2716 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_WIDTH.
bool TraCIAPI::VehicleScope::isRouteValid | ( | const std::string & | vehicleID | ) | const |
Definition at line 2761 of file TraCIAPI.cpp.
References libsumo::CMD_GET_VEHICLE_VARIABLE, and libsumo::VAR_ROUTE_VALID.
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::moveTo | ( | const std::string & | vehicleID, |
const std::string & | laneID, | ||
double | position | ||
) | const |
Definition at line 2942 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_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().
Referenced by TraCITestClient::testAPI().
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 2955 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::MOVE_TO_XY, 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().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::openGap | ( | const std::string & | vehicleID, |
double | newTau, | ||
double | duration, | ||
double | changeRate, | ||
double | maxDecel | ||
) | const |
Definition at line 2990 of file TraCIAPI.cpp.
References libsumo::CMD_OPENGAP, libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
|
private |
invalidated assignment operator
void TraCIAPI::VehicleScope::remove | ( | const std::string & | vehicleID, |
char | reason = libsumo::REMOVE_VAPORIZED |
||
) | const |
Definition at line 2841 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::REMOVE, libsumo::TYPE_BYTE, and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::rerouteTraveltime | ( | const std::string & | vehicleID, |
bool | currentTravelTimes = true |
||
) | const |
Definition at line 2925 of file TraCIAPI.cpp.
References libsumo::CMD_REROUTE_TRAVELTIME, libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_COMPOUND, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setColor | ( | const std::string & | vehicleID, |
const libsumo::TraCIColor & | c | ||
) | const |
Definition at line 3082 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TraCIColor::g, libsumo::TraCIColor::r, libsumo::TYPE_COLOR, libsumo::VAR_COLOR, and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setEmissionClass | ( | const std::string & | vehicleID, |
const std::string & | clazz | ||
) | const |
Definition at line 3143 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_EMISSIONCLASS, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::VehicleScope::setLine | ( | const std::string & | vehicleID, |
const std::string & | line | ||
) | const |
Definition at line 3094 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_LINE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setMaxSpeed | ( | const std::string & | vehicleID, |
double | speed | ||
) | const |
Definition at line 3073 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_MAXSPEED, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
inherited |
set generic paramter
Definition at line 3599 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(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
void TraCIAPI::VehicleScope::setRoute | ( | const std::string & | vehicleID, |
const std::vector< std::string > & | edge | ||
) | const |
Definition at line 2912 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_STRINGLIST, libsumo::VAR_ROUTE, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setRouteID | ( | const std::string & | vehicleID, |
const std::string & | routeID | ||
) | const |
Definition at line 2902 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_ROUTE_ID, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setRoutingMode | ( | const std::string & | vehicleID, |
int | routingMode | ||
) | const |
Definition at line 3124 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_INTEGER, libsumo::VAR_ROUTING_MODE, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setShapeClass | ( | const std::string & | vehicleID, |
const std::string & | clazz | ||
) | const |
Definition at line 3133 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_SHAPECLASS, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setSignals | ( | const std::string & | vehicleID, |
int | signals | ||
) | const |
Definition at line 3115 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_INTEGER, libsumo::VAR_SIGNALS, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setSpeed | ( | const std::string & | vehicleID, |
double | speed | ||
) | const |
Definition at line 3013 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, 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 3064 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_SPEED_FACTOR, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setSpeedMode | ( | const std::string & | vehicleID, |
int | mode | ||
) | const |
Definition at line 3022 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, 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 3031 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::CMD_STOP, 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::VehicleScope::setType | ( | const std::string & | vehicleID, |
const std::string & | typeID | ||
) | const |
Definition at line 3055 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_TYPE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::setVia | ( | const std::string & | vehicleID, |
const std::vector< std::string > & | via | ||
) | const |
Definition at line 3103 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::TYPE_STRINGLIST, libsumo::VAR_VIA, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::VehicleScope::slowDown | ( | const std::string & | vehicleID, |
double | speed, | ||
double | duration | ||
) | const |
Definition at line 2977 of file TraCIAPI.cpp.
References libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::CMD_SLOWDOWN, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
Definition at line 3613 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3625 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
protectedinherited |
Definition at line 146 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 147 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 149 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 151 of file TraCIAPI.h.
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 145 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 148 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 150 of file TraCIAPI.h.