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

#include <Vehicle.h>

Static Public Member Functions

static void addSubscriptionFilterCFManeuver (double downstreamDist=INVALID_DOUBLE_VALUE, double upstreamDist=INVALID_DOUBLE_VALUE)
 
static void addSubscriptionFilterDownstreamDistance (double dist)
 
static void addSubscriptionFilterFieldOfVision (double openingAngle)
 
static void addSubscriptionFilterLanes (const std::vector< int > &lanes, bool noOpposite=false, double downstreamDist=INVALID_DOUBLE_VALUE, double upstreamDist=INVALID_DOUBLE_VALUE)
 
static void addSubscriptionFilterLateralDistance (double lateralDist, double downstreamDist=INVALID_DOUBLE_VALUE, double upstreamDist=INVALID_DOUBLE_VALUE)
 
static void addSubscriptionFilterLCManeuver (int direction=INVALID_INT_VALUE, bool noOpposite=false, double downstreamDist=INVALID_DOUBLE_VALUE, double upstreamDist=INVALID_DOUBLE_VALUE)
 
static void addSubscriptionFilterLeadFollow (const std::vector< int > &lanes)
 
static void addSubscriptionFilterNoOpposite ()
 
static void addSubscriptionFilterTurn (double downstreamDist=INVALID_DOUBLE_VALUE, double upstreamDist=INVALID_DOUBLE_VALUE)
 
static void addSubscriptionFilterUpstreamDistance (double dist)
 
static void addSubscriptionFilterVClass (const std::vector< std::string > &vClasses)
 
static void addSubscriptionFilterVType (const std::vector< std::string > &vTypes)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static std::shared_ptr< VariableWrappermakeWrapper ()
 
static void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container. More...
 
LIBSUMO_VEHICLE_TYPE_SETTER static LIBSUMO_SUBSCRIPTION_API void subscribeLeader (const std::string &vehicleID, double dist=0., double beginTime=INVALID_DOUBLE_VALUE, double endTime=INVALID_DOUBLE_VALUE)
 
Value retrieval
static std::vector< std::string > getIDList ()
 
static int getIDCount ()
 
static double getSpeed (const std::string &vehicleID)
 
static double getLateralSpeed (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 std::pair< std::string, double > getFollower (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 std::vector< TraCINextStopDatagetStops (const std::string &vehicleID, int limit=0)
 
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 &param)
 
static LIBSUMO_GET_PARAMETER_WITH_KEY_API std::vector< std::pair< std::string, double > > getNeighbors (const std::string &vehicleID, const int mode)
 
static double getFollowSpeed (const std::string &vehicleID, double speed, double gap, double leaderSpeed, double leaderMaxDecel, const std::string &leaderID="")
 
static double getSecureGap (const std::string &vehicleID, double speed, double leaderSpeed, double leaderMaxDecel, const std::string &leaderID="")
 
static double getStopSpeed (const std::string &vehicleID, double speed, double gap)
 
static double getStopDelay (const std::string &vehicleID)
 
static double getStopArrivalDelay (const std::string &vehicleID)
 
static std::vector< std::string > getTaxiFleet (int taxiState=0)
 
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 replaceStop (const std::string &vehicleID, int nextStopIndex, 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 &vehID, 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 indexOffset, 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=INVALID_DOUBLE_VALUE, const std::string &referenceVehID="")
 
static void deactivateGapControl (const std::string &vehicleID)
 
static void requestToC (const std::string &vehID, double leadTime)
 
static void setSpeed (const std::string &vehicleID, double speed)
 
static void setPreviousSpeed (const std::string &vehicleID, double prevspeed)
 
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::string &edgeID)
 
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, const bool currentTravelTimes=true)
 
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, int reason=MOVE_AUTOMATIC)
 
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 &param, const std::string &value)
 
static void highlight (const std::string &vehicleID, const TraCIColor &col=TraCIColor(255, 0, 0, 255), double size=-1, const int alphaMax=-1, const double duration=-1, const int type=0)
 
static void dispatchTaxi (const std::string &vehicleID, const std::vector< std::string > &reservations)
 

Private Member Functions

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

Static Private Member Functions

static TraCINextStopData buildStopData (const SUMOVehicleParameter::Stop &stopPar)
 
static SUMOVehicleParameter::Stop buildStopParameters (const std::string &edgeOrStoppingPlaceID, double pos, int laneIndex, double startPos, int flags, double duration, double until)
 
static bool isOnInit (const std::string &vehicleID)
 
static bool isVisible (const SUMOVehicle *veh)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 49 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 &  vehID,
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 1058 of file Vehicle.cpp.

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

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ addSubscriptionFilterCFManeuver()

void Vehicle::addSubscriptionFilterCFManeuver ( double  downstreamDist = INVALID_DOUBLE_VALUE,
double  upstreamDist = INVALID_DOUBLE_VALUE 
)
static

◆ addSubscriptionFilterDownstreamDistance()

void Vehicle::addSubscriptionFilterDownstreamDistance ( double  dist)
static

Definition at line 2003 of file Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), libsumo::Subscription::filterDownstreamDist, and libsumo::SUBS_FILTER_DOWNSTREAM_DIST.

Referenced by addSubscriptionFilterCFManeuver(), addSubscriptionFilterLanes(), addSubscriptionFilterLateralDistance(), addSubscriptionFilterLCManeuver(), and addSubscriptionFilterTurn().

Here is the caller graph for this function:

◆ addSubscriptionFilterFieldOfVision()

void Vehicle::addSubscriptionFilterFieldOfVision ( double  openingAngle)
static

◆ addSubscriptionFilterLanes()

void Vehicle::addSubscriptionFilterLanes ( const std::vector< int > &  lanes,
bool  noOpposite = false,
double  downstreamDist = INVALID_DOUBLE_VALUE,
double  upstreamDist = INVALID_DOUBLE_VALUE 
)
static

Definition at line 1979 of file Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterNoOpposite(), addSubscriptionFilterUpstreamDistance(), libsumo::Subscription::filterLanes, libsumo::INVALID_DOUBLE_VALUE, and libsumo::SUBS_FILTER_LANES.

Referenced by addSubscriptionFilterLeadFollow().

Here is the caller graph for this function:

◆ addSubscriptionFilterLateralDistance()

void Vehicle::addSubscriptionFilterLateralDistance ( double  lateralDist,
double  downstreamDist = INVALID_DOUBLE_VALUE,
double  upstreamDist = INVALID_DOUBLE_VALUE 
)
static

◆ addSubscriptionFilterLCManeuver()

void Vehicle::addSubscriptionFilterLCManeuver ( int  direction = INVALID_INT_VALUE,
bool  noOpposite = false,
double  downstreamDist = INVALID_DOUBLE_VALUE,
double  upstreamDist = INVALID_DOUBLE_VALUE 
)
static

◆ addSubscriptionFilterLeadFollow()

void Vehicle::addSubscriptionFilterLeadFollow ( const std::vector< int > &  lanes)
static

Definition at line 2059 of file Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), addSubscriptionFilterLanes(), and libsumo::SUBS_FILTER_LEAD_FOLLOW.

Referenced by addSubscriptionFilterCFManeuver(), and addSubscriptionFilterLCManeuver().

Here is the caller graph for this function:

◆ addSubscriptionFilterNoOpposite()

void Vehicle::addSubscriptionFilterNoOpposite ( )
static

Definition at line 1997 of file Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), and libsumo::SUBS_FILTER_NOOPPOSITE.

Referenced by addSubscriptionFilterLanes(), and addSubscriptionFilterLCManeuver().

Here is the caller graph for this function:

◆ addSubscriptionFilterTurn()

void Vehicle::addSubscriptionFilterTurn ( double  downstreamDist = INVALID_DOUBLE_VALUE,
double  upstreamDist = INVALID_DOUBLE_VALUE 
)
static

◆ addSubscriptionFilterUpstreamDistance()

void Vehicle::addSubscriptionFilterUpstreamDistance ( double  dist)
static

Definition at line 2012 of file Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), libsumo::Subscription::filterUpstreamDist, and libsumo::SUBS_FILTER_UPSTREAM_DIST.

Referenced by addSubscriptionFilterCFManeuver(), addSubscriptionFilterLanes(), addSubscriptionFilterLateralDistance(), addSubscriptionFilterLCManeuver(), and addSubscriptionFilterTurn().

Here is the caller graph for this function:

◆ addSubscriptionFilterVClass()

void Vehicle::addSubscriptionFilterVClass ( const std::vector< std::string > &  vClasses)
static

◆ addSubscriptionFilterVType()

void Vehicle::addSubscriptionFilterVType ( const std::vector< std::string > &  vTypes)
static

◆ buildStopData()

◆ buildStopParameters()

SUMOVehicleParameter::Stop Vehicle::buildStopParameters ( const std::string &  edgeOrStoppingPlaceID,
double  pos,
int  laneIndex,
double  startPos,
int  flags,
double  duration,
double  until 
)
staticprivate

◆ changeLane()

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

Definition at line 1009 of file Vehicle.cpp.

References MSVehicle::getInfluencer(), MSNet::getInstance(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setLaneTimeLine(), TIME2STEPS, and WRITE_ERROR.

Referenced by MSCFModel_CC::performAutoLaneChange(), and TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ changeLaneRelative()

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

Definition at line 1024 of file Vehicle.cpp.

References MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getLaneIndex(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setLaneTimeLine(), TIME2STEPS, WRITE_ERROR, and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ changeSublane()

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

Definition at line 1045 of file Vehicle.cpp.

References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setSublaneChange(), and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ changeTarget()

void Vehicle::changeTarget ( const std::string &  vehicleID,
const std::string &  edgeID 
)
static

◆ deactivateGapControl()

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

Definition at line 1335 of file Vehicle.cpp.

References MSVehicle::Influencer::deactivateGapController(), MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), MSVehicle::hasInfluencer(), and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ dispatchTaxi()

void Vehicle::dispatchTaxi ( const std::string &  vehicleID,
const std::vector< std::string > &  reservations 
)
static

Definition at line 1944 of file Vehicle.cpp.

References MSBaseVehicle::getDevice(), MSDevice_Taxi::getDispatchAlgorithm(), libsumo::Helper::getVehicle(), MSDispatch_TraCI::interpretDispatch(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, and VEHICLE.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ getAcceleration()

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

Definition at line 121 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getAccumulatedWaitingTime()

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

Definition at line 319 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), and libsumo::INVALID_DOUBLE_VALUE.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getAdaptedTraveltime()

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

Definition at line 326 of file Vehicle.cpp.

References libsumo::Helper::getEdge(), libsumo::Helper::getVehicle(), MSBaseVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, and MSEdgeWeightsStorage::retrieveExistingTravelTime().

Referenced by TraCIServerAPI_Vehicle::processGet().

Here is the caller graph for this function:

◆ getAllowedSpeed()

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

Definition at line 565 of file Vehicle.cpp.

References CALL_MICRO_FUN, MSBaseVehicle::getChosenSpeedFactor(), MSBaseVehicle::getEdge(), libsumo::Helper::getVehicle(), MSEdge::getVehicleMaxSpeed(), libsumo::INVALID_DOUBLE_VALUE, and MSBaseVehicle::isOnRoad().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getAngle()

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

Definition at line 151 of file Vehicle.cpp.

References SUMOVehicle::getAngle(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, isVisible(), and GeomHelper::naviDegree().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getBestLanes()

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

◆ getCO2Emission()

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

Definition at line 222 of file Vehicle.cpp.

References MSBaseVehicle::getCO2Emissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getCOEmission()

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

Definition at line 228 of file Vehicle.cpp.

References MSBaseVehicle::getCOEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getDistance()

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

Definition at line 516 of file Vehicle.cpp.

References MSBaseVehicle::getOdometer(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and MSBaseVehicle::isOnRoad().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getDrivingDistance()

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

◆ getDrivingDistance2D()

double Vehicle::getDrivingDistance2D ( const std::string &  vehicleID,
double  x,
double  y 
)
static

◆ getEffort()

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

Definition at line 335 of file Vehicle.cpp.

References libsumo::Helper::getEdge(), libsumo::Helper::getVehicle(), MSBaseVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, and MSEdgeWeightsStorage::retrieveExistingEffort().

Referenced by TraCIServerAPI_Vehicle::processGet().

Here is the caller graph for this function:

◆ getElectricityConsumption()

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

Definition at line 264 of file Vehicle.cpp.

References MSBaseVehicle::getElectricityConsumption(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getFollower()

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

Definition at line 299 of file Vehicle.cpp.

References MSBaseVehicle::getFollower(), libsumo::Helper::getVehicle(), and MSBaseVehicle::isOnRoad().

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

Here is the caller graph for this function:

◆ getFollowSpeed()

double Vehicle::getFollowSpeed ( const std::string &  vehicleID,
double  speed,
double  gap,
double  leaderSpeed,
double  leaderMaxDecel,
const std::string &  leaderID = "" 
)
static

Definition at line 704 of file Vehicle.cpp.

References MSCFModel::followSpeed(), MSVehicle::getCarFollowModel(), MSNet::getInstance(), MSVehicleControl::getVehicle(), libsumo::Helper::getVehicle(), MSNet::getVehicleControl(), libsumo::INVALID_DOUBLE_VALUE, and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processGet().

Here is the caller graph for this function:

◆ getFuelConsumption()

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

Definition at line 252 of file Vehicle.cpp.

References MSBaseVehicle::getFuelConsumption(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getHCEmission()

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

Definition at line 234 of file Vehicle.cpp.

References MSBaseVehicle::getHCEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getIDCount()

int Vehicle::getIDCount ( )
static

Definition at line 102 of file Vehicle.cpp.

References getIDList().

Referenced by handleVariable(), and libsumo_vehicle_getIDCount().

Here is the caller graph for this function:

◆ getIDList()

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

Definition at line 90 of file Vehicle.cpp.

References MSNet::getInstance(), MSNet::getVehicleControl(), isVisible(), MSVehicleControl::loadedVehBegin(), and MSVehicleControl::loadedVehEnd().

Referenced by getIDCount(), and handleVariable().

Here is the caller graph for this function:

◆ getLaneChangeMode()

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

Definition at line 585 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), and libsumo::INVALID_INT_VALUE.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getLaneChangeState()

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

Definition at line 610 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), MSBaseVehicle::isOnRoad(), and LCA_UNKNOWN.

Referenced by MSCFModel_CC::performAutoLaneChange(), and TraCIServerAPI_Vehicle::processGet().

Here is the caller graph for this function:

◆ getLaneID()

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

Definition at line 172 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), and MSBaseVehicle::isOnRoad().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getLaneIndex()

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

Definition at line 179 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), libsumo::INVALID_INT_VALUE, and MSBaseVehicle::isOnRoad().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getLanePosition()

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

Definition at line 210 of file Vehicle.cpp.

References SUMOTrafficObject::getPositionOnLane(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and MSBaseVehicle::isOnRoad().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getLastActionTime()

◆ getLateralLanePosition()

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

Definition at line 216 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and MSBaseVehicle::isOnRoad().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getLateralSpeed()

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

Definition at line 114 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getLeader()

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

Definition at line 285 of file Vehicle.cpp.

References MSBaseVehicle::getLeader(), libsumo::Helper::getVehicle(), and MSBaseVehicle::isOnRoad().

Referenced by MSCFModel_CC::getRadarMeasurements(), handleVariable(), and TraCIServerAPI_Vehicle::processGet().

Here is the caller graph for this function:

◆ getLine()

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

Definition at line 598 of file Vehicle.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getNeighbors()

std::vector< std::pair< std::string, double > > Vehicle::getNeighbors ( const std::string &  vehicleID,
const int  mode 
)
static

Definition at line 633 of file Vehicle.cpp.

References DEBUG_COND, MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::getLeaders(), libsumo::Helper::getVehicle(), LCA_BLOCKED_BY_LEFT_FOLLOWER, LCA_BLOCKED_BY_LEFT_LEADER, LCA_BLOCKED_BY_RIGHT_FOLLOWER, and LCA_BLOCKED_BY_RIGHT_LEADER.

Referenced by TraCIServerAPI_Vehicle::processGet().

Here is the caller graph for this function:

◆ getNextStops()

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

Definition at line 458 of file Vehicle.cpp.

References getStops().

◆ getNextTLS()

◆ getNoiseEmission()

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

Definition at line 258 of file Vehicle.cpp.

References MSBaseVehicle::getHarmonoise_NoiseEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getNOxEmission()

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

Definition at line 246 of file Vehicle.cpp.

References MSBaseVehicle::getNOxEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getParameter()

std::string Vehicle::getParameter ( const std::string &  vehicleID,
const std::string &  param 
)
static

Definition at line 618 of file Vehicle.cpp.

References MSBaseVehicle::getPrefixedParameter(), libsumo::Helper::getVehicle(), and LIBSUMO_GET_PARAMETER_WITH_KEY_IMPLEMENTATION.

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

Here is the caller graph for this function:

◆ getPersonIDList()

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

Definition at line 280 of file Vehicle.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getPersonNumber()

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

Definition at line 270 of file Vehicle.cpp.

References MSVehicleType::getPersonCapacity(), MSBaseVehicle::getPersonNumber(), libsumo::Helper::getVehicle(), and libsumo::Helper::getVehicleType().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getPMxEmission()

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

Definition at line 240 of file Vehicle.cpp.

References MSBaseVehicle::getPMxEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getPosition()

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

Definition at line 135 of file Vehicle.cpp.

References SUMOTrafficObject::getPosition(), libsumo::Helper::getVehicle(), isVisible(), and libsumo::Helper::makeTraCIPosition().

Referenced by getPosition3D(), handleVariable(), and storeShape().

Here is the caller graph for this function:

◆ getPosition3D()

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

Definition at line 145 of file Vehicle.cpp.

References getPosition().

◆ getRoadID()

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

Definition at line 165 of file Vehicle.cpp.

References CALL_MICRO_FUN, MSBaseVehicle::getEdge(), Named::getID(), libsumo::Helper::getVehicle(), and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getRoute()

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

Definition at line 351 of file Vehicle.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getRouteID()

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

Definition at line 192 of file Vehicle.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getRouteIndex()

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

Definition at line 198 of file Vehicle.cpp.

References getParameter(), MSBaseVehicle::getRoutePosition(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasDeparted(), libsumo::INVALID_INT_VALUE, and libsumo::Helper::makeTraCIColor().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getRoutingMode()

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

Definition at line 592 of file Vehicle.cpp.

References MSBaseVehicle::getBaseInfluencer(), MSBaseVehicle::BaseInfluencer::getRoutingMode(), and libsumo::Helper::getVehicle().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getSecureGap()

double Vehicle::getSecureGap ( const std::string &  vehicleID,
double  speed,
double  leaderSpeed,
double  leaderMaxDecel,
const std::string &  leaderID = "" 
)
static

Definition at line 717 of file Vehicle.cpp.

References MSVehicle::getCarFollowModel(), MSNet::getInstance(), MSCFModel::getSecureGap(), MSVehicleControl::getVehicle(), libsumo::Helper::getVehicle(), MSNet::getVehicleControl(), libsumo::INVALID_DOUBLE_VALUE, and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processGet().

Here is the caller graph for this function:

◆ getSignals()

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

Definition at line 363 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), and MSVehicle::VEH_SIGNAL_NONE.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getSlope()

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

Definition at line 158 of file Vehicle.cpp.

References SUMOTrafficObject::getSlope(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and MSBaseVehicle::isOnRoad().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getSpeed()

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

Definition at line 108 of file Vehicle.cpp.

References SUMOTrafficObject::getSpeed(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getSpeedMode()

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

Definition at line 578 of file Vehicle.cpp.

References CALL_MICRO_FUN, libsumo::Helper::getVehicle(), and libsumo::INVALID_INT_VALUE.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getSpeedWithoutTraCI()

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

Definition at line 128 of file Vehicle.cpp.

References CALL_MICRO_FUN, SUMOTrafficObject::getSpeed(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getStopArrivalDelay()

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

Definition at line 746 of file Vehicle.cpp.

References MSBaseVehicle::getStopArrivalDelay(), libsumo::Helper::getVehicle(), INVALID_DOUBLE, and libsumo::INVALID_DOUBLE_VALUE.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getStopDelay()

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

Definition at line 741 of file Vehicle.cpp.

References MSBaseVehicle::getStopDelay(), and libsumo::Helper::getVehicle().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getStops()

std::vector< TraCINextStopData > Vehicle::getStops ( const std::string &  vehicleID,
int  limit = 0 
)
static

Definition at line 463 of file Vehicle.cpp.

References buildStopData(), libsumo::TraCINextStopData::duration, MSBaseVehicle::getPastStops(), MSBaseVehicle::getStops(), libsumo::Helper::getVehicle(), MAX2(), and STEPS2TIME.

Referenced by getNextStops(), and TraCIServerAPI_Vehicle::writeNextStops().

Here is the caller graph for this function:

◆ getStopSpeed()

double Vehicle::getStopSpeed ( const std::string &  vehicleID,
double  speed,
double  gap 
)
static

Definition at line 730 of file Vehicle.cpp.

References MSVehicle::getCarFollowModel(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, MSCFModel::stopSpeed(), and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processGet().

Here is the caller graph for this function:

◆ getStopState()

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

Definition at line 492 of file Vehicle.cpp.

References MSStop::busstop, MSStop::chargingStation, MSStop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, MSVehicle::getNextStop(), libsumo::Helper::getVehicle(), MSBaseVehicle::isStopped(), SUMOVehicleParameter::Stop::parking, MSStop::parkingarea, MSStop::pars, MSStop::reached, SUMOVehicleParameter::Stop::triggered, and WRITE_WARNING.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getTaxiFleet()

std::vector< std::string > Vehicle::getTaxiFleet ( int  taxiState = 0)
static

◆ getTypeID()

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

Definition at line 186 of file Vehicle.cpp.

References MSVehicleType::getID(), and libsumo::Helper::getVehicleType().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getVia()

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

Definition at line 604 of file Vehicle.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getWaitingTime()

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

Definition at line 313 of file Vehicle.cpp.

References libsumo::Helper::getVehicle(), and STEPS2TIME.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ handleVariable()

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

Definition at line 2132 of file Vehicle.cpp.

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

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

Here is the caller graph for this function:

◆ highlight()

void Vehicle::highlight ( const std::string &  vehicleID,
const TraCIColor col = TraCIColor(255, 0, 0, 255),
double  size = -1,
const int  alphaMax = -1,
const double  duration = -1,
const int  type = 0 
)
static

◆ isOnInit()

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

Definition at line 83 of file Vehicle.cpp.

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

Referenced by changeTarget(), rerouteEffort(), and rerouteTraveltime().

Here is the caller graph for this function:

◆ isRouteValid()

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

Definition at line 344 of file Vehicle.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ isVisible()

bool Vehicle::isVisible ( const SUMOVehicle veh)
staticprivate

Definition at line 77 of file Vehicle.cpp.

References SUMOVehicle::isOnRoad(), SUMOVehicle::isParking(), and SUMOVehicle::wasRemoteControlled().

Referenced by getAcceleration(), getAngle(), getCO2Emission(), getCOEmission(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getIDList(), getLateralSpeed(), getNoiseEmission(), getNOxEmission(), getPMxEmission(), getPosition(), getRoadID(), getSpeed(), and getSpeedWithoutTraCI().

Here is the caller graph for this function:

◆ makeWrapper()

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

◆ moveTo()

void Vehicle::moveTo ( const std::string &  vehicleID,
const std::string &  laneID,
double  position,
int  reason = MOVE_AUTOMATIC 
)
static

◆ moveToXY()

void Vehicle::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

◆ openGap()

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

Definition at line 1311 of file Vehicle.cpp.

References MSVehicle::Influencer::activateGapController(), MSVehicleType::getCarFollowModel(), MSCFModel::getHeadwayTime(), MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), MSBaseVehicle::getVehicleType(), WRITE_ERROR, and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ remove()

◆ replaceStop()

void Vehicle::replaceStop ( const std::string &  vehicleID,
int  nextStopIndex,
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

Definition at line 917 of file Vehicle.cpp.

References buildStopParameters(), libsumo::Helper::getVehicle(), MSVehicle::replaceStop(), and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ requestToC()

void Vehicle::requestToC ( const std::string &  vehID,
double  leadTime 
)
static

Definition at line 1349 of file Vehicle.cpp.

References setParameter(), and toString().

◆ rerouteEffort()

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

Definition at line 1537 of file Vehicle.cpp.

References MSNet::getInstance(), MSBaseVehicle::getRNGIndex(), libsumo::Helper::getVehicle(), isOnInit(), and MSBaseVehicle::reroute().

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ rerouteParkingArea()

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

Definition at line 943 of file Vehicle.cpp.

References libsumo::Helper::getVehicle(), MSVehicle::rerouteParkingArea(), and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ rerouteTraveltime()

void Vehicle::rerouteTraveltime ( const std::string &  vehicleID,
const bool  currentTravelTimes = true 
)
static

Definition at line 1528 of file Vehicle.cpp.

References MSBaseVehicle::getBaseInfluencer(), MSNet::getInstance(), MSBaseVehicle::getRNGIndex(), MSBaseVehicle::BaseInfluencer::getRouterTT(), MSBaseVehicle::getVClass(), libsumo::Helper::getVehicle(), isOnInit(), MSBaseVehicle::reroute(), and UNUSED_PARAMETER.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ resume()

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

Definition at line 958 of file Vehicle.cpp.

References MSStop::duration, MSStop::edge, Named::getID(), MSVehicle::getNextStop(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasStops(), MSStop::pars, MSStop::reached, MSVehicle::resumeFromStopping(), SUMOVehicleParameter::Stop::startPos, and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ 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

Definition at line 1476 of file Vehicle.cpp.

References MSEdgeWeightsStorage::addTravelTime(), MSEdge::dictionary(), libsumo::Helper::getVehicle(), MSBaseVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, MSEdgeWeightsStorage::knowsTravelTime(), and MSEdgeWeightsStorage::removeTravelTime().

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ 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

Definition at line 1502 of file Vehicle.cpp.

References MSEdgeWeightsStorage::addEffort(), MSEdge::dictionary(), libsumo::Helper::getVehicle(), MSBaseVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, MSEdgeWeightsStorage::knowsEffort(), and MSEdgeWeightsStorage::removeEffort().

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setLaneChangeMode()

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

Definition at line 1395 of file Vehicle.cpp.

References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setLaneChangeMode(), and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setLine()

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

Definition at line 1707 of file Vehicle.cpp.

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

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setParameter()

void Vehicle::setParameter ( const std::string &  vehicleID,
const std::string &  param,
const std::string &  value 
)
static

◆ setPreviousSpeed()

void Vehicle::setPreviousSpeed ( const std::string &  vehicleID,
double  prevspeed 
)
static

Definition at line 1371 of file Vehicle.cpp.

References libsumo::Helper::getVehicle(), MSVehicle::setPreviousSpeed(), and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setRoute() [1/2]

void Vehicle::setRoute ( const std::string &  vehicleID,
const std::string &  edgeID 
)
static

Definition at line 1441 of file Vehicle.cpp.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setRoute() [2/2]

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

Definition at line 1421 of file Vehicle.cpp.

References MSRoute::dictionary(), MSGlobals::gCheckRoutes, Named::getID(), SUMOTrafficObject::getLane(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasValidRoute(), MSBaseVehicle::replaceRoute(), and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setRoutingMode()

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

Definition at line 1407 of file Vehicle.cpp.

References MSBaseVehicle::getBaseInfluencer(), libsumo::Helper::getVehicle(), and MSBaseVehicle::BaseInfluencer::setRoutingMode().

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setSignals()

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

Definition at line 1545 of file Vehicle.cpp.

References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setSignals(), MSVehicle::switchOffSignal(), MSVehicle::switchOnSignal(), and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setSpeed()

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

Definition at line 1354 of file Vehicle.cpp.

References DELTA_T, MSVehicle::getInfluencer(), MSNet::getInstance(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setSpeedTimeLine(), SUMOTime_MAX, and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setSpeedMode()

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

Definition at line 1383 of file Vehicle.cpp.

References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setSpeedMode(), and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ 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

Definition at line 893 of file Vehicle.cpp.

References MSVehicle::addTraciStop(), buildStopParameters(), libsumo::Helper::getVehicle(), and WRITE_WARNING.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setType()

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

Definition at line 1412 of file Vehicle.cpp.

References MSNet::getInstance(), libsumo::Helper::getVehicle(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), and MSBaseVehicle::replaceVehicleType().

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ setVia()

◆ slowDown()

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

Definition at line 1296 of file Vehicle.cpp.

References MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getSpeed(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setSpeedTimeLine(), TIME2STEPS, and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

◆ 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 2120 of file Vehicle.cpp.

References getPosition(), and libsumo::Helper::getVehicle().

◆ subscribeLeader()

void Vehicle::subscribeLeader ( const std::string &  vehicleID,
double  dist = 0.,
double  beginTime = INVALID_DOUBLE_VALUE,
double  endTime = INVALID_DOUBLE_VALUE 
)
static

Definition at line 1972 of file Vehicle.cpp.

References libsumo::Helper::addSubscriptionParam(), and libsumo::VAR_LEADER.

◆ updateBestLanes()

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

Definition at line 1463 of file Vehicle.cpp.

References libsumo::Helper::getVehicle(), MSVehicle::updateBestLanes(), and WRITE_ERROR.

Referenced by TraCIServerAPI_Vehicle::processSet().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Vehicle::myContextSubscriptionResults
staticprivate

Definition at line 251 of file Vehicle.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Vehicle::mySubscriptionResults
staticprivate

Definition at line 250 of file Vehicle.h.

Referenced by makeWrapper().


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