SUMO - Simulation of Urban MObility
libsumo::Vehicle Class Reference

#include <Vehicle.h>

Collaboration diagram for libsumo::Vehicle:
Collaboration graph

Static Public Member Functions

static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static std::shared_ptr< VariableWrappermakeWrapper ()
 
LIBSUMO_VEHICLE_TYPE_SETTER static LIBSUMO_SUBSCRIPTION_API void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container. More...
 
Value retrieval
static std::vector< std::string > getIDList ()
 
static int getIDCount ()
 
static double getSpeed (const std::string &vehicleID)
 
static double getAcceleration (const std::string &vehicleID)
 
static double getSpeedWithoutTraCI (const std::string &vehicleID)
 
static TraCIPosition getPosition (const std::string &vehicleID, const bool includeZ=false)
 
static TraCIPosition getPosition3D (const std::string &vehicleID)
 
static double getAngle (const std::string &vehicleID)
 
static double getSlope (const std::string &vehicleID)
 
static std::string getRoadID (const std::string &vehicleID)
 
static std::string getLaneID (const std::string &vehicleID)
 
static int getLaneIndex (const std::string &vehicleID)
 
static std::string getTypeID (const std::string &vehicleID)
 
static std::string getRouteID (const std::string &vehicleID)
 
static int getRouteIndex (const std::string &vehicleID)
 
static double getLanePosition (const std::string &vehicleID)
 
static double getLateralLanePosition (const std::string &vehicleID)
 
static double getCO2Emission (const std::string &vehicleID)
 
static double getCOEmission (const std::string &vehicleID)
 
static double getHCEmission (const std::string &vehicleID)
 
static double getPMxEmission (const std::string &vehicleID)
 
static double getNOxEmission (const std::string &vehicleID)
 
static double getFuelConsumption (const std::string &vehicleID)
 
static double getNoiseEmission (const std::string &vehicleID)
 
static double getElectricityConsumption (const std::string &vehicleID)
 
static int getPersonNumber (const std::string &vehicleID)
 
static std::vector< std::string > getPersonIDList (const std::string &vehicleID)
 
static std::pair< std::string, double > getLeader (const std::string &vehicleID, double dist=0.)
 
static double getWaitingTime (const std::string &vehicleID)
 
static double getAccumulatedWaitingTime (const std::string &vehicleID)
 
static double getAdaptedTraveltime (const std::string &vehicleID, double time, const std::string &edgeID)
 
static double getEffort (const std::string &vehicleID, double time, const std::string &edgeID)
 
static bool isRouteValid (const std::string &vehicleID)
 
static std::vector< std::string > getRoute (const std::string &vehicleID)
 
static int getSignals (const std::string &vehicleID)
 
static std::vector< TraCIBestLanesDatagetBestLanes (const std::string &vehicleID)
 
static std::vector< TraCINextTLSDatagetNextTLS (const std::string &vehicleID)
 
static std::vector< TraCINextStopDatagetNextStops (const std::string &vehicleID)
 
static int getStopState (const std::string &vehicleID)
 
static double getDistance (const std::string &vehicleID)
 
static double getDrivingDistance (const std::string &vehicleID, const std::string &edgeID, double position, int laneIndex=0)
 
static double getDrivingDistance2D (const std::string &vehicleID, double x, double y)
 
static double getAllowedSpeed (const std::string &vehicleID)
 
static int getSpeedMode (const std::string &vehicleID)
 
static int getLaneChangeMode (const std::string &vehicleID)
 
static int getRoutingMode (const std::string &vehicleID)
 
static std::string getLine (const std::string &vehicleID)
 
static std::vector< std::string > getVia (const std::string &vehicleID)
 
static std::pair< int, int > getLaneChangeState (const std::string &vehicleID, int direction)
 
static double getLastActionTime (const std::string &vehicleID)
 
static std::string getParameter (const std::string &vehicleID, const std::string &key)
 
static const MSVehicleTypegetVehicleType (const std::string &vehicleID)
 
State Changing
static void setStop (const std::string &vehicleID, const std::string &edgeID, double pos=1., int laneIndex=0, double duration=INVALID_DOUBLE_VALUE, int flags=STOP_DEFAULT, double startPos=INVALID_DOUBLE_VALUE, double until=INVALID_DOUBLE_VALUE)
 
static void rerouteParkingArea (const std::string &vehicleID, const std::string &parkingAreaID)
 
static void resume (const std::string &vehicleID)
 
static void add (const std::string &vehicleID, const std::string &routeID, const std::string &typeID="DEFAULT_VEHTYPE", const std::string &depart="now", 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=4, int personNumber=0)
 
static void changeTarget (const std::string &vehicleID, const std::string &edgeID)
 
static void changeLane (const std::string &vehicleID, int laneIndex, double duration)
 
static void changeLaneRelative (const std::string &vehicleID, int laneChange, double duration)
 
static void changeSublane (const std::string &vehicleID, double latDist)
 
static void slowDown (const std::string &vehicleID, double speed, double duration)
 
static void openGap (const std::string &vehicleID, double newTimeHeadway, double newSpaceHeadway, double duration, double changeRate, double maxDecel)
 
static void deactivateGapControl (const std::string &vehicleID)
 
static void setSpeed (const std::string &vehicleID, double speed)
 
static void setSpeedMode (const std::string &vehicleID, int speedMode)
 
static void setLaneChangeMode (const std::string &vehicleID, int laneChangeMode)
 
static void setRoutingMode (const std::string &vehicleID, int routingMode)
 
static void setType (const std::string &vehicleID, const std::string &typeID)
 
static void setRouteID (const std::string &vehicleID, const std::string &routeID)
 
static void setRoute (const std::string &vehicleID, const std::vector< std::string > &edgeIDs)
 
static void updateBestLanes (const std::string &vehicleID)
 
static void setAdaptedTraveltime (const std::string &vehicleID, const std::string &edgeID, double time=INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max())
 
static void setEffort (const std::string &vehicleID, const std::string &edgeID, double effort=INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max())
 
static void rerouteTraveltime (const std::string &vehicleID)
 
static void rerouteEffort (const std::string &vehicleID)
 
static void setSignals (const std::string &vehicleID, int signals)
 
static void moveTo (const std::string &vehicleID, const std::string &laneID, double position)
 
static void moveToXY (const std::string &vehicleID, const std::string &edgeID, const int laneIndex, const double x, const double y, double angle=INVALID_DOUBLE_VALUE, const int keepRoute=1)
 
static void remove (const std::string &vehicleID, char reason=REMOVE_VAPORIZED)
 
static void setLine (const std::string &vehicleID, const std::string &line)
 
static void setVia (const std::string &vehicleID, const std::vector< std::string > &via)
 
static void setParameter (const std::string &vehicleID, const std::string &key, const std::string &value)
 

Static Protected Member Functions

static MSVehiclegetVehicle (const std::string &id)
 

Private Member Functions

 Vehicle ()=delete
 invalidated standard constructor More...
 

Static Private Member Functions

static bool isOnInit (const std::string &vehicleID)
 
static bool isVisible (const SUMOVehicle *veh)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Friends

class Helper
 

Detailed Description

Definition at line 53 of file Vehicle.h.

Constructor & Destructor Documentation

◆ Vehicle()

libsumo::Vehicle::Vehicle ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ add()

void Vehicle::add ( const std::string &  vehicleID,
const std::string &  routeID,
const std::string &  typeID = "DEFAULT_VEHTYPE",
const std::string &  depart = "now",
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 = 4,
int  personNumber = 0 
)
static

Definition at line 879 of file Vehicle.cpp.

References libsumo::Route::add(), MSInsertionControl::add(), MSVehicleControl::addVehicle(), SUMOVehicleParameter::arrivalLane, SUMOVehicleParameter::arrivalLaneProcedure, SUMOVehicleParameter::arrivalPos, SUMOVehicleParameter::arrivalPosProcedure, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSVehicleControl::buildVehicle(), SUMOVehicleParameter::depart, DEPART_GIVEN, DEPART_NOW, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSRoute::dictionary(), EDGEFUNC_NORMAL, SUMOVehicleParameter::fromTaz, MSEdge::getAllEdges(), MSNet::getCurrentTimeStep(), MSRoute::getEdges(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicleControl::getVehicle(), MSVehicleType::getVehicleClass(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, SUMOVehicleParameter::line, SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::parseArrivalLane(), SUMOVehicleParameter::parseArrivalPos(), SUMOVehicleParameter::parseArrivalSpeed(), SUMOVehicleParameter::parseDepart(), SUMOVehicleParameter::parseDepartLane(), SUMOVehicleParameter::parseDepartPos(), SUMOVehicleParameter::parseDepartSpeed(), SUMOVehicleParameter::personNumber, SumoVehicleClassStrings, SUMOVehicleParameter::toTaz, VEHPARS_FORCE_REROUTE, and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

◆ changeLane()

void Vehicle::changeLane ( const std::string &  vehicleID,
int  laneIndex,
double  duration 
)
static

◆ changeLaneRelative()

void Vehicle::changeLaneRelative ( const std::string &  vehicleID,
int  laneChange,
double  duration 
)
static

◆ changeSublane()

void Vehicle::changeSublane ( const std::string &  vehicleID,
double  latDist 
)
static

◆ changeTarget()

◆ deactivateGapControl()

void Vehicle::deactivateGapControl ( const std::string &  vehicleID)
static

◆ getAcceleration()

double Vehicle::getAcceleration ( const std::string &  vehicleID)
static

Definition at line 111 of file Vehicle.cpp.

References MSVehicle::getAcceleration(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

◆ getAccumulatedWaitingTime()

double Vehicle::getAccumulatedWaitingTime ( const std::string &  vehicleID)
static

Definition at line 294 of file Vehicle.cpp.

References MSVehicle::getAccumulatedWaitingSeconds(), and getVehicle().

Referenced by handleVariable().

◆ getAdaptedTraveltime()

double Vehicle::getAdaptedTraveltime ( const std::string &  vehicleID,
double  time,
const std::string &  edgeID 
)
static

◆ getAllowedSpeed()

double Vehicle::getAllowedSpeed ( const std::string &  vehicleID)
static

◆ getAngle()

double Vehicle::getAngle ( const std::string &  vehicleID)
static

◆ getBestLanes()

◆ getCO2Emission()

double Vehicle::getCO2Emission ( const std::string &  vehicleID)
static

Definition at line 216 of file Vehicle.cpp.

References MSVehicle::getCO2Emissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

◆ getCOEmission()

double Vehicle::getCOEmission ( const std::string &  vehicleID)
static

Definition at line 222 of file Vehicle.cpp.

References MSVehicle::getCOEmissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

◆ getDistance()

◆ getDrivingDistance()

double Vehicle::getDrivingDistance ( const std::string &  vehicleID,
const std::string &  edgeID,
double  position,
int  laneIndex = 0 
)
static

◆ getDrivingDistance2D()

◆ getEffort()

double Vehicle::getEffort ( const std::string &  vehicleID,
double  time,
const std::string &  edgeID 
)
static

◆ getElectricityConsumption()

double Vehicle::getElectricityConsumption ( const std::string &  vehicleID)
static

◆ getFuelConsumption()

double Vehicle::getFuelConsumption ( const std::string &  vehicleID)
static

Definition at line 246 of file Vehicle.cpp.

References MSVehicle::getFuelConsumption(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

◆ getHCEmission()

double Vehicle::getHCEmission ( const std::string &  vehicleID)
static

Definition at line 228 of file Vehicle.cpp.

References MSVehicle::getHCEmissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

◆ getIDCount()

int Vehicle::getIDCount ( )
static

Definition at line 98 of file Vehicle.cpp.

References getIDList().

Referenced by handleVariable().

◆ getIDList()

std::vector< std::string > Vehicle::getIDList ( )
static

◆ getLaneChangeMode()

int Vehicle::getLaneChangeMode ( const std::string &  vehicleID)
static

◆ getLaneChangeState()

std::pair< int, int > Vehicle::getLaneChangeState ( const std::string &  vehicleID,
int  direction 
)
static

◆ getLaneID()

std::string Vehicle::getLaneID ( const std::string &  vehicleID)
static

Definition at line 166 of file Vehicle.cpp.

References Named::getID(), MSVehicle::getLane(), getVehicle(), and MSVehicle::isOnRoad().

Referenced by handleVariable().

◆ getLaneIndex()

int Vehicle::getLaneIndex ( const std::string &  vehicleID)
static

◆ getLanePosition()

double Vehicle::getLanePosition ( const std::string &  vehicleID)
static

◆ getLastActionTime()

◆ getLateralLanePosition()

double Vehicle::getLateralLanePosition ( const std::string &  vehicleID)
static

◆ getLeader()

std::pair< std::string, double > Vehicle::getLeader ( const std::string &  vehicleID,
double  dist = 0. 
)
static

◆ getLine()

std::string Vehicle::getLine ( const std::string &  vehicleID)
static

Definition at line 552 of file Vehicle.cpp.

References MSBaseVehicle::getParameter(), getVehicle(), and SUMOVehicleParameter::line.

Referenced by handleVariable().

◆ getNextStops()

◆ getNextTLS()

◆ getNoiseEmission()

double Vehicle::getNoiseEmission ( const std::string &  vehicleID)
static

◆ getNOxEmission()

double Vehicle::getNOxEmission ( const std::string &  vehicleID)
static

Definition at line 240 of file Vehicle.cpp.

References MSVehicle::getNOxEmissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

◆ getParameter()

◆ getPersonIDList()

std::vector< std::string > Vehicle::getPersonIDList ( const std::string &  vehicleID)
static

Definition at line 269 of file Vehicle.cpp.

References MSBaseVehicle::getPersonIDList(), and getVehicle().

Referenced by handleVariable().

◆ getPersonNumber()

int Vehicle::getPersonNumber ( const std::string &  vehicleID)
static

Definition at line 264 of file Vehicle.cpp.

References MSBaseVehicle::getPersonNumber(), and getVehicle().

Referenced by handleVariable().

◆ getPMxEmission()

double Vehicle::getPMxEmission ( const std::string &  vehicleID)
static

Definition at line 234 of file Vehicle.cpp.

References MSVehicle::getPMxEmissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

◆ getPosition()

TraCIPosition Vehicle::getPosition ( const std::string &  vehicleID,
const bool  includeZ = false 
)
static

◆ getPosition3D()

TraCIPosition Vehicle::getPosition3D ( const std::string &  vehicleID)
static

Definition at line 139 of file Vehicle.cpp.

References getPosition().

◆ getRoadID()

std::string Vehicle::getRoadID ( const std::string &  vehicleID)
static

Definition at line 159 of file Vehicle.cpp.

References MSLane::getEdge(), Named::getID(), MSVehicle::getLane(), getVehicle(), and isVisible().

Referenced by handleVariable().

◆ getRoute()

std::vector< std::string > Vehicle::getRoute ( const std::string &  vehicleID)
static

Definition at line 325 of file Vehicle.cpp.

References MSRoute::begin(), MSRoute::end(), MSBaseVehicle::getRoute(), and getVehicle().

Referenced by handleVariable().

◆ getRouteID()

std::string Vehicle::getRouteID ( const std::string &  vehicleID)
static

Definition at line 186 of file Vehicle.cpp.

References Named::getID(), MSBaseVehicle::getRoute(), and getVehicle().

Referenced by handleVariable().

◆ getRouteIndex()

int Vehicle::getRouteIndex ( const std::string &  vehicleID)
static

◆ getRoutingMode()

int Vehicle::getRoutingMode ( const std::string &  vehicleID)
static

◆ getSignals()

int Vehicle::getSignals ( const std::string &  vehicleID)
static

Definition at line 337 of file Vehicle.cpp.

References MSVehicle::getSignals(), and getVehicle().

Referenced by handleVariable().

◆ getSlope()

double Vehicle::getSlope ( const std::string &  vehicleID)
static

Definition at line 152 of file Vehicle.cpp.

References MSVehicle::getSlope(), getVehicle(), INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().

Referenced by handleVariable().

◆ getSpeed()

double Vehicle::getSpeed ( const std::string &  vehicleID)
static

Definition at line 104 of file Vehicle.cpp.

References MSVehicle::getSpeed(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

◆ getSpeedMode()

int Vehicle::getSpeedMode ( const std::string &  vehicleID)
static

◆ getSpeedWithoutTraCI()

double Vehicle::getSpeedWithoutTraCI ( const std::string &  vehicleID)
static

◆ getStopState()

◆ getTypeID()

std::string Vehicle::getTypeID ( const std::string &  vehicleID)
static

◆ getVehicle()

MSVehicle * Vehicle::getVehicle ( const std::string &  id)
staticprotected

Definition at line 60 of file Vehicle.cpp.

References MSNet::getInstance(), MSVehicleControl::getVehicle(), and MSNet::getVehicleControl().

Referenced by libsumo::Helper::applySubscriptionFilters(), changeLane(), changeLaneRelative(), changeSublane(), changeTarget(), deactivateGapControl(), getAcceleration(), getAccumulatedWaitingTime(), getAdaptedTraveltime(), getAllowedSpeed(), getAngle(), getBestLanes(), getCO2Emission(), getCOEmission(), getDistance(), getDrivingDistance(), getDrivingDistance2D(), getEffort(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getLaneChangeMode(), getLaneChangeState(), getLaneID(), getLaneIndex(), getLanePosition(), getLastActionTime(), getLateralLanePosition(), getLeader(), getLine(), getNextStops(), getNextTLS(), getNoiseEmission(), getNOxEmission(), getParameter(), getPersonIDList(), getPersonNumber(), getPMxEmission(), getPosition(), getRoadID(), getRoute(), getRouteID(), getRouteIndex(), getRoutingMode(), getSignals(), getSlope(), getSpeed(), getSpeedMode(), getSpeedWithoutTraCI(), getStopState(), getTypeID(), getVehicleType(), getVia(), getWaitingTime(), isRouteValid(), moveTo(), moveToXY(), openGap(), remove(), rerouteEffort(), rerouteParkingArea(), rerouteTraveltime(), resume(), setAdaptedTraveltime(), setEffort(), setLaneChangeMode(), setLine(), setParameter(), setRoute(), setRouteID(), setRoutingMode(), setSignals(), setSpeed(), setSpeedMode(), setStop(), setType(), setVia(), slowDown(), storeShape(), and updateBestLanes().

◆ getVehicleType()

◆ getVia()

std::vector< std::string > Vehicle::getVia ( const std::string &  vehicleID)
static

Definition at line 557 of file Vehicle.cpp.

References MSBaseVehicle::getParameter(), getVehicle(), and SUMOVehicleParameter::via.

Referenced by handleVariable().

◆ getWaitingTime()

double Vehicle::getWaitingTime ( const std::string &  vehicleID)
static

Definition at line 288 of file Vehicle.cpp.

References getVehicle(), and MSVehicle::getWaitingSeconds().

Referenced by handleVariable().

◆ handleVariable()

bool Vehicle::handleVariable ( const std::string &  objID,
const int  variable,
VariableWrapper wrapper 
)
static

Definition at line 1569 of file Vehicle.cpp.

References getAcceleration(), getAccumulatedWaitingTime(), getAllowedSpeed(), getAngle(), getCO2Emission(), getCOEmission(), getDistance(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getIDCount(), getIDList(), getLaneChangeMode(), getLaneID(), getLaneIndex(), getLanePosition(), getLastActionTime(), getLateralLanePosition(), getLine(), getNoiseEmission(), getNOxEmission(), getPersonIDList(), getPersonNumber(), getPMxEmission(), getPosition(), getRoadID(), getRoute(), getRouteID(), getRouteIndex(), getRoutingMode(), getSignals(), getSlope(), getSpeed(), getSpeedMode(), getSpeedWithoutTraCI(), getStopState(), getTypeID(), getVia(), getWaitingTime(), ID_COUNT, isRouteValid(), LAST_STEP_PERSON_ID_LIST, TRACI_ID_LIST, VAR_ACCELERATION, VAR_ACCUMULATED_WAITING_TIME, VAR_ALLOWED_SPEED, VAR_ANGLE, VAR_CO2EMISSION, VAR_COEMISSION, VAR_COLOR, VAR_DISTANCE, VAR_EDGES, VAR_ELECTRICITYCONSUMPTION, VAR_FUELCONSUMPTION, VAR_HCEMISSION, VAR_LANE_ID, VAR_LANE_INDEX, VAR_LANECHANGE_MODE, VAR_LANEPOSITION, VAR_LANEPOSITION_LAT, VAR_LASTACTIONTIME, VAR_LINE, VAR_NOISEEMISSION, VAR_NOXEMISSION, VAR_PERSON_NUMBER, VAR_PMXEMISSION, VAR_POSITION, VAR_POSITION3D, VAR_ROAD_ID, VAR_ROUTE_ID, VAR_ROUTE_INDEX, VAR_ROUTE_VALID, VAR_ROUTING_MODE, VAR_SIGNALS, VAR_SLOPE, VAR_SPEED, VAR_SPEED_FACTOR, VAR_SPEED_WITHOUT_TRACI, VAR_SPEEDSETMODE, VAR_STOPSTATE, VAR_TYPE, VAR_VIA, VAR_WAITING_TIME, libsumo::VariableWrapper::wrapColor(), libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapPosition(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().

Referenced by makeWrapper(), and TraCIServerAPI_Vehicle::processGet().

◆ isOnInit()

bool Vehicle::isOnInit ( const std::string &  vehicleID)
staticprivate

◆ isRouteValid()

bool Vehicle::isRouteValid ( const std::string &  vehicleID)
static

Definition at line 318 of file Vehicle.cpp.

References getVehicle(), and MSBaseVehicle::hasValidRoute().

Referenced by handleVariable().

◆ isVisible()

◆ makeWrapper()

std::shared_ptr< VariableWrapper > Vehicle::makeWrapper ( )
static

◆ moveTo()

◆ moveToXY()

◆ openGap()

void Vehicle::openGap ( const std::string &  vehicleID,
double  newTimeHeadway,
double  newSpaceHeadway,
double  duration,
double  changeRate,
double  maxDecel 
)
static

◆ remove()

◆ rerouteEffort()

void Vehicle::rerouteEffort ( const std::string &  vehicleID)
static

◆ rerouteParkingArea()

void Vehicle::rerouteParkingArea ( const std::string &  vehicleID,
const std::string &  parkingAreaID 
)
static

Definition at line 794 of file Vehicle.cpp.

References getVehicle(), and MSVehicle::rerouteParkingArea().

Referenced by TraCIServerAPI_Vehicle::processSet().

◆ rerouteTraveltime()

void Vehicle::rerouteTraveltime ( const std::string &  vehicleID)
static

◆ resume()

◆ setAdaptedTraveltime()

void Vehicle::setAdaptedTraveltime ( const std::string &  vehicleID,
const std::string &  edgeID,
double  time = INVALID_DOUBLE_VALUE,
double  begSeconds = 0,
double  endSeconds = std::numeric_limits<double>::max() 
)
static

◆ setEffort()

void Vehicle::setEffort ( const std::string &  vehicleID,
const std::string &  edgeID,
double  effort = INVALID_DOUBLE_VALUE,
double  begSeconds = 0,
double  endSeconds = std::numeric_limits<double>::max() 
)
static

◆ setLaneChangeMode()

void Vehicle::setLaneChangeMode ( const std::string &  vehicleID,
int  laneChangeMode 
)
static

◆ setLine()

void Vehicle::setLine ( const std::string &  vehicleID,
const std::string &  line 
)
static

◆ setParameter()

◆ setRoute()

void Vehicle::setRoute ( const std::string &  vehicleID,
const std::vector< std::string > &  edgeIDs 
)
static

◆ setRouteID()

void Vehicle::setRouteID ( const std::string &  vehicleID,
const std::string &  routeID 
)
static

◆ setRoutingMode()

void Vehicle::setRoutingMode ( const std::string &  vehicleID,
int  routingMode 
)
static

◆ setSignals()

void Vehicle::setSignals ( const std::string &  vehicleID,
int  signals 
)
static

◆ setSpeed()

void Vehicle::setSpeed ( const std::string &  vehicleID,
double  speed 
)
static

◆ setSpeedMode()

void Vehicle::setSpeedMode ( const std::string &  vehicleID,
int  speedMode 
)
static

◆ setStop()

void Vehicle::setStop ( const std::string &  vehicleID,
const std::string &  edgeID,
double  pos = 1.,
int  laneIndex = 0,
double  duration = INVALID_DOUBLE_VALUE,
int  flags = STOP_DEFAULT,
double  startPos = INVALID_DOUBLE_VALUE,
double  until = INVALID_DOUBLE_VALUE 
)
static

◆ setType()

void Vehicle::setType ( const std::string &  vehicleID,
const std::string &  typeID 
)
static

◆ setVia()

◆ slowDown()

void Vehicle::slowDown ( const std::string &  vehicleID,
double  speed,
double  duration 
)
static

◆ storeShape()

void Vehicle::storeShape ( const std::string &  id,
PositionVector shape 
)
static

Saves the shape of the requested object in the given container.

Parameters
idThe id of the poi to retrieve
shapeThe container to fill

Definition at line 1557 of file Vehicle.cpp.

References getPosition(), and getVehicle().

◆ updateBestLanes()

void Vehicle::updateBestLanes ( const std::string &  vehicleID)
static

Definition at line 1189 of file Vehicle.cpp.

References getVehicle(), and MSVehicle::updateBestLanes().

Referenced by TraCIServerAPI_Vehicle::processSet().

Friends And Related Function Documentation

◆ Helper

friend class Helper
friend

Definition at line 54 of file Vehicle.h.

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Vehicle::myContextSubscriptionResults
staticprivate

Definition at line 202 of file Vehicle.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Vehicle::mySubscriptionResults
staticprivate

Definition at line 201 of file Vehicle.h.

Referenced by makeWrapper().


The documentation for this class was generated from the following files: