Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
LIBSUMO_NAMESPACE::Vehicle Class Reference

#include <Vehicle.h>

Static Public Member Functions

static void addSubscriptionFilterCFManeuver (double downstreamDist=libsumo::INVALID_DOUBLE_VALUE, double upstreamDist=libsumo::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=libsumo::INVALID_DOUBLE_VALUE, double upstreamDist=libsumo::INVALID_DOUBLE_VALUE)
static void addSubscriptionFilterLateralDistance (double lateralDist, double downstreamDist=libsumo::INVALID_DOUBLE_VALUE, double upstreamDist=libsumo::INVALID_DOUBLE_VALUE)
static void addSubscriptionFilterLCManeuver (int direction=libsumo::INVALID_INT_VALUE, bool noOpposite=false, double downstreamDist=libsumo::INVALID_DOUBLE_VALUE, double upstreamDist=libsumo::INVALID_DOUBLE_VALUE)
static void addSubscriptionFilterLeadFollow (const std::vector< int > &lanes)
static void addSubscriptionFilterNoOpposite ()
static void addSubscriptionFilterTurn (double downstreamDist=libsumo::INVALID_DOUBLE_VALUE, double foeDistToJunction=libsumo::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, tcpip::Storage *paramData)
static std::shared_ptr< VariableWrapper > makeWrapper ()
static void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container.
LIBSUMO_VEHICLE_TYPE_SETTER static LIBSUMO_SUBSCRIPTION_API void subscribeLeader (const std::string &vehID, double dist=0., double begin=libsumo::INVALID_DOUBLE_VALUE, double end=libsumo::INVALID_DOUBLE_VALUE)
Value retrieval
static double getSpeed (const std::string &vehID)
static double getLateralSpeed (const std::string &vehID)
static double getAcceleration (const std::string &vehID)
static double getSpeedWithoutTraCI (const std::string &vehID)
static libsumo::TraCIPosition getPosition (const std::string &vehID, const bool includeZ=false)
static libsumo::TraCIPosition getPosition3D (const std::string &vehID)
static double getAngle (const std::string &vehID)
static double getSlope (const std::string &vehID)
static std::string getRoadID (const std::string &vehID)
static std::string getLaneID (const std::string &vehID)
static int getLaneIndex (const std::string &vehID)
static std::string getSegmentID (const std::string &vehID)
static int getSegmentIndex (const std::string &vehID)
static std::string getTypeID (const std::string &vehID)
static std::string getRouteID (const std::string &vehID)
static double getDeparture (const std::string &vehID)
static double getDepartDelay (const std::string &vehID)
static int getRouteIndex (const std::string &vehID)
static double getLanePosition (const std::string &vehID)
static double getLateralLanePosition (const std::string &vehID)
static double getCO2Emission (const std::string &vehID)
static double getCOEmission (const std::string &vehID)
static double getHCEmission (const std::string &vehID)
static double getPMxEmission (const std::string &vehID)
static double getNOxEmission (const std::string &vehID)
static double getFuelConsumption (const std::string &vehID)
static double getNoiseEmission (const std::string &vehID)
static double getElectricityConsumption (const std::string &vehID)
static int getPersonNumber (const std::string &vehID)
static std::vector< std::string > getPersonIDList (const std::string &vehID)
static std::pair< std::string, double > getLeader (const std::string &vehID, double dist=100.)
static std::pair< std::string, double > getFollower (const std::string &vehID, double dist=0.)
static std::vector< libsumo::TraCIJunctionFoegetJunctionFoes (const std::string &vehID, double dist=0.)
static double getWaitingTime (const std::string &vehID)
static double getAccumulatedWaitingTime (const std::string &vehID)
static double getAdaptedTraveltime (const std::string &vehID, double time, const std::string &edgeID)
static double getEffort (const std::string &vehID, double time, const std::string &edgeID)
static bool isRouteValid (const std::string &vehID)
static std::vector< std::string > getRoute (const std::string &vehID)
static int getSignals (const std::string &vehID)
static std::vector< libsumo::TraCIBestLanesDatagetBestLanes (const std::string &vehID)
static std::vector< libsumo::TraCINextTLSDatagetNextTLS (const std::string &vehID)
static std::vector< libsumo::TraCINextStopDatagetNextStops (const std::string &vehID)
static std::vector< libsumo::TraCIConnectiongetNextLinks (const std::string &vehID)
static std::vector< libsumo::TraCINextStopDatagetStops (const std::string &vehID, int limit=0)
static int getStopState (const std::string &vehID)
static std::string getStopParameter (const std::string &vehID, int nextStopIndex, const std::string &param, bool customParam=false)
static double getDistance (const std::string &vehID)
static double getDrivingDistance (const std::string &vehID, const std::string &edgeID, double pos, int laneIndex=0)
static double getDrivingDistance2D (const std::string &vehID, double x, double y)
static double getAllowedSpeed (const std::string &vehID)
static int getSpeedMode (const std::string &vehID)
static int getLaneChangeMode (const std::string &vehID)
static int getRoutingMode (const std::string &vehID)
static std::string getLine (const std::string &vehID)
static std::vector< std::string > getVia (const std::string &vehID)
static std::pair< int, int > getLaneChangeState (const std::string &vehID, int direction)
static double getLastActionTime (const std::string &vehID)
static std::vector< std::pair< std::string, double > > getNeighbors (const std::string &vehID, const int mode)
static double getFollowSpeed (const std::string &vehID, double speed, double gap, double leaderSpeed, double leaderMaxDecel, const std::string &leaderID="")
static double getSecureGap (const std::string &vehID, double speed, double leaderSpeed, double leaderMaxDecel, const std::string &leaderID="")
static double getStopSpeed (const std::string &vehID, double speed, double gap)
static double getStopDelay (const std::string &vehID)
static double getStopArrivalDelay (const std::string &vehID)
static double getTimeLoss (const std::string &vehID)
static std::vector< std::string > getTaxiFleet (int taxiState=0)
static std::vector< std::string > getLoadedIDList ()
static std::vector< std::string > getTeleportingIDList ()
State Changing
static void setStop (const std::string &vehID, const std::string &edgeID, double pos=1., int laneIndex=0, double duration=libsumo::INVALID_DOUBLE_VALUE, int flags=libsumo::STOP_DEFAULT, double startPos=libsumo::INVALID_DOUBLE_VALUE, double until=libsumo::INVALID_DOUBLE_VALUE)
static void replaceStop (const std::string &vehID, int nextStopIndex, const std::string &edgeID, double pos=1., int laneIndex=0, double duration=libsumo::INVALID_DOUBLE_VALUE, int flags=libsumo::STOP_DEFAULT, double startPos=libsumo::INVALID_DOUBLE_VALUE, double until=libsumo::INVALID_DOUBLE_VALUE, int teleport=0)
static void insertStop (const std::string &vehID, int nextStopIndex, const std::string &edgeID, double pos=1., int laneIndex=0, double duration=libsumo::INVALID_DOUBLE_VALUE, int flags=libsumo::STOP_DEFAULT, double startPos=libsumo::INVALID_DOUBLE_VALUE, double until=libsumo::INVALID_DOUBLE_VALUE, int teleport=0)
static void setStopParameter (const std::string &vehID, int nextStopIndex, const std::string &param, const std::string &value, bool customParam=false)
static void rerouteParkingArea (const std::string &vehID, const std::string &parkingAreaID)
static void resume (const std::string &vehID)
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 &vehID, const std::string &edgeID)
static void changeLane (const std::string &vehID, int laneIndex, double duration)
static void changeLaneRelative (const std::string &vehID, int indexOffset, double duration)
static void changeSublane (const std::string &vehID, double latDist)
static void slowDown (const std::string &vehID, double speed, double duration)
static void openGap (const std::string &vehID, double newTimeHeadway, double newSpaceHeadway, double duration, double changeRate, double maxDecel=-1, const std::string &referenceVehID="")
static void deactivateGapControl (const std::string &vehID)
static void requestToC (const std::string &vehID, double leadTime)
static void setSpeed (const std::string &vehID, double speed)
static void setAcceleration (const std::string &vehID, double acceleration, double duration)
static void setPreviousSpeed (const std::string &vehID, double prevSpeed, double prevAcceleration=libsumo::INVALID_DOUBLE_VALUE)
static void setSpeedMode (const std::string &vehID, int speedMode)
static void setLaneChangeMode (const std::string &vehID, int laneChangeMode)
static void setRoutingMode (const std::string &vehID, int routingMode)
static void setType (const std::string &vehID, const std::string &typeID)
static void setRouteID (const std::string &vehID, const std::string &routeID)
static void setRoute (const std::string &vehID, const std::string &edgeID)
static void setRoute (const std::string &vehID, const std::vector< std::string > &edgeIDs)
static void setLateralLanePosition (const std::string &vehID, double posLat)
static void updateBestLanes (const std::string &vehID)
static void setAdaptedTraveltime (const std::string &vehID, const std::string &edgeID, double time=libsumo::INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max())
static void setEffort (const std::string &vehID, const std::string &edgeID, double effort=libsumo::INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max())
static void rerouteTraveltime (const std::string &vehID, const bool currentTravelTimes=true)
static void rerouteEffort (const std::string &vehID)
static void setSignals (const std::string &vehID, int signals)
static void moveTo (const std::string &vehID, const std::string &laneID, double pos, int reason=libsumo::MOVE_AUTOMATIC)
static void moveToXY (const std::string &vehID, const std::string &edgeID, const int laneIndex, const double x, const double y, double angle=libsumo::INVALID_DOUBLE_VALUE, const int keepRoute=1, double matchThreshold=100)
static void remove (const std::string &vehID, char reason=libsumo::REMOVE_VAPORIZED)
static void setLine (const std::string &vehID, const std::string &line)
static void setVia (const std::string &vehID, const std::vector< std::string > &edgeList)
static void highlight (const std::string &vehID, const libsumo::TraCIColor &col=libsumo::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 &vehID, const std::vector< std::string > &reservations)

Private Member Functions

 Vehicle ()=delete
 invalidated standard constructor

Static Private Member Functions

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

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults

Detailed Description

Definition at line 46 of file Vehicle.h.

Constructor & Destructor Documentation

◆ Vehicle()

LIBSUMO_NAMESPACE::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 1558 of file libsumo/Vehicle.cpp.

References add(), MSInsertionControl::add(), MSVehicleControl::addVehicle(), SUMOVehicleParameter::arrivalLane, SUMOVehicleParameter::arrivalLaneProcedure, SUMOVehicleParameter::arrivalPos, SUMOVehicleParameter::arrivalPosProcedure, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSVehicleControl::buildVehicle(), CONTAINER_TRIGGERED, MSVehicleControl::deleteVehicle(), SUMOVehicleParameter::depart, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSRoute::dictionary(), SUMOVehicleParameter::fromTaz, MSEdge::getAllEdges(), MSNet::getCurrentTimeStep(), MSNet::getInsertionControl(), MSNet::getInstance(), SUMOVehicle::getRouteValidity(), MSVehicleControl::getVehicle(), MSVehicleType::getVehicleClass(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), GIVEN, SUMOVehicleParameter::id, SUMOVehicleParserHelper::isInternalRouteID(), MSVehicleControl::LIBSUMO, SUMOVehicleParameter::line, NORMAL, NOW, SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::parseArrivalLane(), SUMOVehicleParameter::parseArrivalPos(), SUMOVehicleParameter::parseArrivalSpeed(), SUMOVehicleParameter::parseDepart(), SUMOVehicleParameter::parseDepartLane(), SUMOVehicleParameter::parseDepartPos(), SUMOVehicleParameter::parseDepartSpeed(), SUMOVehicleParameter::personNumber, MSBaseVehicle::ROUTE_VALID, SumoVehicleClassStrings, TL, SUMOVehicleParameter::toTaz, TRIGGERED, VEHPARS_ARRIVALLANE_SET, VEHPARS_ARRIVALPOS_SET, VEHPARS_ARRIVALSPEED_SET, VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTPOS_SET, VEHPARS_DEPARTSPEED_SET, VEHPARS_FORCE_REROUTE, VEHPARS_FROM_TAZ_SET, VEHPARS_LINE_SET, VEHPARS_PERSON_NUMBER_SET, VEHPARS_TO_TAZ_SET, VEHPARS_VTYPE_SET, SUMOVehicleParameter::vtypeid, and WRITE_WARNINGF.

Referenced by add().

Here is the caller graph for this function:

◆ addSubscriptionFilterCFManeuver()

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

Definition at line 2717 of file libsumo/Vehicle.cpp.

References addSubscriptionFilterCFManeuver(), addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterLeadFollow(), addSubscriptionFilterUpstreamDistance(), and libsumo::INVALID_DOUBLE_VALUE.

Referenced by addSubscriptionFilterCFManeuver().

Here is the caller graph for this function:

◆ addSubscriptionFilterDownstreamDistance()

void Vehicle::addSubscriptionFilterDownstreamDistance ( double dist)
static

◆ addSubscriptionFilterFieldOfVision()

void Vehicle::addSubscriptionFilterFieldOfVision ( double openingAngle)
static

Definition at line 2791 of file libsumo/Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), addSubscriptionFilterFieldOfVision(), and libsumo::SUBS_FILTER_FIELD_OF_VISION.

Referenced by addSubscriptionFilterFieldOfVision().

Here is the caller graph for this function:

◆ addSubscriptionFilterLanes()

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

Definition at line 2675 of file libsumo/Vehicle.cpp.

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

Referenced by addSubscriptionFilterLanes(), and addSubscriptionFilterLeadFollow().

Here is the caller graph for this function:

◆ addSubscriptionFilterLateralDistance()

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

Definition at line 2800 of file libsumo/Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterLateralDistance(), addSubscriptionFilterUpstreamDistance(), libsumo::INVALID_DOUBLE_VALUE, and libsumo::SUBS_FILTER_LATERAL_DIST.

Referenced by addSubscriptionFilterLateralDistance().

Here is the caller graph for this function:

◆ addSubscriptionFilterLCManeuver()

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

Definition at line 2730 of file libsumo/Vehicle.cpp.

References addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterLCManeuver(), addSubscriptionFilterLeadFollow(), addSubscriptionFilterNoOpposite(), addSubscriptionFilterUpstreamDistance(), libsumo::INVALID_DOUBLE_VALUE, libsumo::INVALID_INT_VALUE, TL, and WRITE_WARNINGF.

Referenced by addSubscriptionFilterLCManeuver().

Here is the caller graph for this function:

◆ addSubscriptionFilterLeadFollow()

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

Definition at line 2754 of file libsumo/Vehicle.cpp.

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

Referenced by addSubscriptionFilterCFManeuver(), addSubscriptionFilterLCManeuver(), and addSubscriptionFilterLeadFollow().

Here is the caller graph for this function:

◆ addSubscriptionFilterNoOpposite()

void Vehicle::addSubscriptionFilterNoOpposite ( )
static

Definition at line 2693 of file libsumo/Vehicle.cpp.

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

Referenced by addSubscriptionFilterLanes(), addSubscriptionFilterLCManeuver(), and addSubscriptionFilterNoOpposite().

Here is the caller graph for this function:

◆ addSubscriptionFilterTurn()

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

Definition at line 2761 of file libsumo/Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), addSubscriptionFilterDownstreamDistance(), addSubscriptionFilterTurn(), libsumo::INVALID_DOUBLE_VALUE, and libsumo::SUBS_FILTER_TURN.

Referenced by addSubscriptionFilterTurn().

Here is the caller graph for this function:

◆ addSubscriptionFilterUpstreamDistance()

void Vehicle::addSubscriptionFilterUpstreamDistance ( double dist)
static

Definition at line 2708 of file libsumo/Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), addSubscriptionFilterUpstreamDistance(), and libsumo::SUBS_FILTER_UPSTREAM_DIST.

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

Here is the caller graph for this function:

◆ addSubscriptionFilterVClass()

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

Definition at line 2773 of file libsumo/Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), addSubscriptionFilterVClass(), parseVehicleClasses(), and libsumo::SUBS_FILTER_VCLASS.

Referenced by addSubscriptionFilterVClass().

Here is the caller graph for this function:

◆ addSubscriptionFilterVType()

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

Definition at line 2782 of file libsumo/Vehicle.cpp.

References libsumo::Helper::addSubscriptionFilter(), addSubscriptionFilterVType(), and libsumo::SUBS_FILTER_VTYPE.

Referenced by addSubscriptionFilterVType().

Here is the caller graph for this function:

◆ changeLane()

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

Definition at line 1495 of file libsumo/Vehicle.cpp.

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

Referenced by changeLane().

Here is the caller graph for this function:

◆ changeLaneRelative()

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

Definition at line 1515 of file libsumo/Vehicle.cpp.

References changeLaneRelative(), checkTimeBounds(), MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getLaneIndex(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setLaneTimeLine(), TIME2STEPS, TL, WRITE_ERROR, and WRITE_WARNINGF.

Referenced by changeLaneRelative().

Here is the caller graph for this function:

◆ changeSublane()

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

Definition at line 1545 of file libsumo/Vehicle.cpp.

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

Referenced by changeSublane().

Here is the caller graph for this function:

◆ changeTarget()

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

Definition at line 1474 of file libsumo/Vehicle.cpp.

References changeTarget(), MSEdge::dictionary(), Named::getID(), MSNet::getInstance(), MSBaseVehicle::getRouterTT(), libsumo::Helper::getVehicle(), isOnInit(), and MSBaseVehicle::reroute().

Referenced by changeTarget().

Here is the caller graph for this function:

◆ deactivateGapControl()

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

Definition at line 1888 of file libsumo/Vehicle.cpp.

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

Referenced by deactivateGapControl().

Here is the caller graph for this function:

◆ dispatchTaxi()

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

Definition at line 2637 of file libsumo/Vehicle.cpp.

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

Referenced by dispatchTaxi().

Here is the caller graph for this function:

◆ getAcceleration()

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

Definition at line 126 of file libsumo/Vehicle.cpp.

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

Referenced by getAcceleration(), and handleVariable().

Here is the caller graph for this function:

◆ getAccumulatedWaitingTime()

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

Definition at line 433 of file libsumo/Vehicle.cpp.

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

Referenced by getAccumulatedWaitingTime(), and handleVariable().

Here is the caller graph for this function:

◆ getAdaptedTraveltime()

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

Definition at line 440 of file libsumo/Vehicle.cpp.

References getAdaptedTraveltime(), libsumo::Helper::getEdge(), libsumo::Helper::getVehicle(), MSBaseVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, invalid_return< std::string >::value, and MSEdgeWeightsStorage::retrieveExistingTravelTime().

Referenced by getAdaptedTraveltime(), and handleVariable().

Here is the caller graph for this function:

◆ getAllowedSpeed()

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

Definition at line 744 of file libsumo/Vehicle.cpp.

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

Referenced by getAllowedSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getAngle()

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

Definition at line 156 of file libsumo/Vehicle.cpp.

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

Referenced by getAngle(), and handleVariable().

Here is the caller graph for this function:

◆ getBestLanes()

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

Definition at line 484 of file libsumo/Vehicle.cpp.

References getBestLanes(), MSVehicle::getBestLanes(), Named::getID(), libsumo::Helper::getVehicle(), and MSVehicle::isOnRoad().

Referenced by getBestLanes(), and handleVariable().

Here is the caller graph for this function:

◆ getCO2Emission()

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

Definition at line 261 of file libsumo/Vehicle.cpp.

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

Referenced by getCO2Emission(), and handleVariable().

Here is the caller graph for this function:

◆ getCOEmission()

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

Definition at line 267 of file libsumo/Vehicle.cpp.

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

Referenced by getCOEmission(), and handleVariable().

Here is the caller graph for this function:

◆ getDepartDelay()

double Vehicle::getDepartDelay ( const std::string & vehID)
static

Definition at line 231 of file libsumo/Vehicle.cpp.

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

Referenced by getDepartDelay(), and handleVariable().

Here is the caller graph for this function:

◆ getDeparture()

double Vehicle::getDeparture ( const std::string & vehID)
static

Definition at line 224 of file libsumo/Vehicle.cpp.

References getDeparture(), MSBaseVehicle::getDeparture(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasDeparted(), libsumo::INVALID_DOUBLE_VALUE, and STEPS2TIME.

Referenced by getDeparture(), and handleVariable().

Here is the caller graph for this function:

◆ getDistance()

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

Definition at line 693 of file libsumo/Vehicle.cpp.

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

Referenced by getDistance(), and handleVariable().

Here is the caller graph for this function:

◆ getDrivingDistance()

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

◆ getDrivingDistance2D()

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

◆ getEffort()

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

Definition at line 449 of file libsumo/Vehicle.cpp.

References libsumo::Helper::getEdge(), getEffort(), libsumo::Helper::getVehicle(), MSBaseVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, invalid_return< std::string >::value, and MSEdgeWeightsStorage::retrieveExistingEffort().

Referenced by getEffort(), and handleVariable().

Here is the caller graph for this function:

◆ getElectricityConsumption()

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

Definition at line 303 of file libsumo/Vehicle.cpp.

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

Referenced by getElectricityConsumption(), and handleVariable().

Here is the caller graph for this function:

◆ getFollower()

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

Definition at line 355 of file libsumo/Vehicle.cpp.

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

Referenced by getFollower(), and handleVariable().

Here is the caller graph for this function:

◆ getFollowSpeed()

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

Definition at line 894 of file libsumo/Vehicle.cpp.

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

Referenced by getFollowSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getFuelConsumption()

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

Definition at line 291 of file libsumo/Vehicle.cpp.

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

Referenced by getFuelConsumption(), and handleVariable().

Here is the caller graph for this function:

◆ getHCEmission()

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

Definition at line 273 of file libsumo/Vehicle.cpp.

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

Referenced by getHCEmission(), and handleVariable().

Here is the caller graph for this function:

◆ getJunctionFoes()

◆ getLaneChangeMode()

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

Definition at line 764 of file libsumo/Vehicle.cpp.

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

Referenced by getLaneChangeMode(), and handleVariable().

Here is the caller graph for this function:

◆ getLaneChangeState()

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

Definition at line 789 of file libsumo/Vehicle.cpp.

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

Referenced by getLaneChangeState(), and handleVariable().

Here is the caller graph for this function:

◆ getLaneID()

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

Definition at line 177 of file libsumo/Vehicle.cpp.

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

Referenced by getLaneID(), and handleVariable().

Here is the caller graph for this function:

◆ getLaneIndex()

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

Definition at line 184 of file libsumo/Vehicle.cpp.

References MSLane::getIndex(), MSVehicle::getLane(), getLaneIndex(), MEVehicle::getQueIndex(), libsumo::Helper::getVehicle(), libsumo::INVALID_INT_VALUE, and MSBaseVehicle::isOnRoad().

Referenced by getLaneIndex(), and handleVariable().

Here is the caller graph for this function:

◆ getLanePosition()

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

Definition at line 249 of file libsumo/Vehicle.cpp.

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

Referenced by getLanePosition(), and handleVariable().

Here is the caller graph for this function:

◆ getLastActionTime()

double Vehicle::getLastActionTime ( const std::string & vehID)
static

Definition at line 1039 of file libsumo/Vehicle.cpp.

References MEVehicle::getEventTime(), getLastActionTime(), MSVehicle::getLastActionTime(), libsumo::Helper::getVehicle(), and STEPS2TIME.

Referenced by getLastActionTime(), and handleVariable().

Here is the caller graph for this function:

◆ getLateralLanePosition()

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

Definition at line 255 of file libsumo/Vehicle.cpp.

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

Referenced by getLateralLanePosition(), and handleVariable().

Here is the caller graph for this function:

◆ getLateralSpeed()

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

Definition at line 119 of file libsumo/Vehicle.cpp.

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

Referenced by getLateralSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getLeader()

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

Definition at line 331 of file libsumo/Vehicle.cpp.

References SUMOTrafficObject::getLane(), getLeader(), MSBaseVehicle::getLeader(), MSLane::getLinkCont(), libsumo::Helper::getVehicle(), MSLane::isInternal(), MSBaseVehicle::isOnRoad(), and MAX2().

Referenced by getLeader(), and handleVariable().

Here is the caller graph for this function:

◆ getLine()

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

Definition at line 777 of file libsumo/Vehicle.cpp.

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

Referenced by getLine(), and handleVariable().

Here is the caller graph for this function:

◆ getLoadedIDList()

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

Definition at line 973 of file libsumo/Vehicle.cpp.

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

Referenced by getLoadedIDList(), and handleVariable().

Here is the caller graph for this function:

◆ getNeighbors()

◆ getNextLinks()

◆ getNextStops()

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

Definition at line 574 of file libsumo/Vehicle.cpp.

References getNextStops(), and getStops().

Referenced by getNextStops(), and handleVariable().

Here is the caller graph for this function:

◆ getNextTLS()

◆ getNoiseEmission()

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

Definition at line 297 of file libsumo/Vehicle.cpp.

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

Referenced by getNoiseEmission(), and handleVariable().

Here is the caller graph for this function:

◆ getNOxEmission()

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

Definition at line 285 of file libsumo/Vehicle.cpp.

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

Referenced by getNOxEmission(), and handleVariable().

Here is the caller graph for this function:

◆ getPersonIDList()

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

Definition at line 326 of file libsumo/Vehicle.cpp.

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

Referenced by getPersonIDList(), and handleVariable().

Here is the caller graph for this function:

◆ getPersonNumber()

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

Definition at line 309 of file libsumo/Vehicle.cpp.

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

Referenced by getPersonNumber(), and handleVariable().

Here is the caller graph for this function:

◆ getPMxEmission()

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

Definition at line 279 of file libsumo/Vehicle.cpp.

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

Referenced by getPMxEmission(), and handleVariable().

Here is the caller graph for this function:

◆ getPosition()

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

Definition at line 140 of file libsumo/Vehicle.cpp.

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

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

Here is the caller graph for this function:

◆ getPosition3D()

libsumo::TraCIPosition Vehicle::getPosition3D ( const std::string & vehID)
static

Definition at line 150 of file libsumo/Vehicle.cpp.

References getPosition(), and getPosition3D().

Referenced by getPosition3D().

Here is the caller graph for this function:

◆ getRoadID()

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

Definition at line 170 of file libsumo/Vehicle.cpp.

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

Referenced by getRoadID(), and handleVariable().

Here is the caller graph for this function:

◆ getRoute()

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

Definition at line 465 of file libsumo/Vehicle.cpp.

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

Referenced by getRoute(), and handleVariable().

Here is the caller graph for this function:

◆ getRouteID()

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

Definition at line 218 of file libsumo/Vehicle.cpp.

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

Referenced by getRouteID(), and handleVariable().

Here is the caller graph for this function:

◆ getRouteIndex()

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

Definition at line 237 of file libsumo/Vehicle.cpp.

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

Referenced by getRouteIndex(), and handleVariable().

Here is the caller graph for this function:

◆ getRoutingMode()

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

Definition at line 771 of file libsumo/Vehicle.cpp.

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

Referenced by getRoutingMode(), and handleVariable().

Here is the caller graph for this function:

◆ getSecureGap()

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

Definition at line 907 of file libsumo/Vehicle.cpp.

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

Referenced by getNeighbors(), getSecureGap(), and handleVariable().

Here is the caller graph for this function:

◆ getSegmentID()

std::string Vehicle::getSegmentID ( const std::string & vehID)
static

Definition at line 200 of file libsumo/Vehicle.cpp.

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

Referenced by getSegmentID(), and handleVariable().

Here is the caller graph for this function:

◆ getSegmentIndex()

int Vehicle::getSegmentIndex ( const std::string & vehID)
static

Definition at line 206 of file libsumo/Vehicle.cpp.

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

Referenced by getSegmentIndex(), and handleVariable().

Here is the caller graph for this function:

◆ getSignals()

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

Definition at line 477 of file libsumo/Vehicle.cpp.

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

Referenced by getSignals(), and handleVariable().

Here is the caller graph for this function:

◆ getSlope()

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

Definition at line 163 of file libsumo/Vehicle.cpp.

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

Referenced by getSlope(), and handleVariable().

Here is the caller graph for this function:

◆ getSpeed()

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

Definition at line 113 of file libsumo/Vehicle.cpp.

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

Referenced by getSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getSpeedMode()

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

Definition at line 757 of file libsumo/Vehicle.cpp.

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

Referenced by getSpeedMode(), and handleVariable().

Here is the caller graph for this function:

◆ getSpeedWithoutTraCI()

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

Definition at line 133 of file libsumo/Vehicle.cpp.

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

Referenced by getSpeedWithoutTraCI(), and handleVariable().

Here is the caller graph for this function:

◆ getStopArrivalDelay()

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

Definition at line 943 of file libsumo/Vehicle.cpp.

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

Referenced by getStopArrivalDelay(), and handleVariable().

Here is the caller graph for this function:

◆ getStopDelay()

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

Definition at line 931 of file libsumo/Vehicle.cpp.

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

Referenced by getStopDelay(), and handleVariable().

Here is the caller graph for this function:

◆ getStopParameter()

std::string Vehicle::getStopParameter ( const std::string & vehID,
int nextStopIndex,
const std::string & param,
bool customParam = false )
static

Definition at line 1210 of file libsumo/Vehicle.cpp.

References SUMOVehicleParameter::Stop::actType, SUMOVehicleParameter::Stop::arrival, SUMOVehicleParameter::Stop::awaitedContainers, SUMOVehicleParameter::Stop::awaitedPersons, SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::edge, SUMOVehicleParameter::Stop::ended, SUMOVehicleParameter::Stop::endPos, SUMOVehicleParameter::Stop::extension, SUMOXMLDefinitions::getIndexFromLane(), Parameterised::getParameter(), MSBaseVehicle::getPastStops(), MSBaseVehicle::getStop(), getStopParameter(), MSBaseVehicle::getStops(), SUMOVehicleParameter::Stop::getTriggers(), libsumo::Helper::getVehicle(), INVALID_DOUBLE, libsumo::INVALID_DOUBLE_VALUE, SUMOVehicleParameter::Stop::join, joinToString(), SUMOVehicleParameter::Stop::jump, SUMOVehicleParameter::Stop::jumpUntil, SUMOVehicleParameter::Stop::lane, SUMOVehicleParameter::Stop::line, SUMOVehicleParameter::Stop::onDemand, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, SUMOVehicleParameter::Stop::permitted, SUMOVehicleParameter::Stop::posLat, SUMOVehicleParameter::Stop::speed, SUMOVehicleParameter::Stop::split, SUMOVehicleParameter::Stop::started, SUMOVehicleParameter::Stop::startPos, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVAL, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DURATION, SUMO_ATTR_EDGE, SUMO_ATTR_ENDED, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_EXTENSION, SUMO_ATTR_INDEX, SUMO_ATTR_JOIN, SUMO_ATTR_JUMP, SUMO_ATTR_JUMP_UNTIL, SUMO_ATTR_LANE, SUMO_ATTR_LINE, SUMO_ATTR_ONDEMAND, SUMO_ATTR_PARKING, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_PERMITTED, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_SPEED, SUMO_ATTR_SPLIT, SUMO_ATTR_STARTED, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRAIN_STOP, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TRIP_ID, SUMO_ATTR_UNTIL, time2string(), TLF, toString(), SUMOVehicleParameter::Stop::tripId, and SUMOVehicleParameter::Stop::until.

Referenced by getStopParameter(), and handleVariable().

Here is the caller graph for this function:

◆ getStops()

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

Definition at line 649 of file libsumo/Vehicle.cpp.

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

Referenced by getNextStops(), getStops(), and handleVariable().

Here is the caller graph for this function:

◆ getStopSpeed()

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

Definition at line 920 of file libsumo/Vehicle.cpp.

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

Referenced by getStopSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getStopState()

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

Definition at line 676 of file libsumo/Vehicle.cpp.

References MSBaseVehicle::getNextStop(), MSStop::getStateFlagsOld(), getStopState(), libsumo::Helper::getVehicle(), MSBaseVehicle::isStopped(), and WRITE_WARNING.

Referenced by getStopState(), and handleVariable().

Here is the caller graph for this function:

◆ getTaxiFleet()

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

Definition at line 958 of file libsumo/Vehicle.cpp.

References MSDevice_Taxi::getFleet(), and getTaxiFleet().

Referenced by getTaxiFleet(), and handleVariable().

Here is the caller graph for this function:

◆ getTeleportingIDList()

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

Definition at line 983 of file libsumo/Vehicle.cpp.

References Named::getID(), MSNet::getInstance(), getTeleportingIDList(), MSNet::getVehicleControl(), SUMOVehicle::hasDeparted(), isVisible(), MSVehicleControl::loadedVehBegin(), and MSVehicleControl::loadedVehEnd().

Referenced by getTeleportingIDList(), and handleVariable().

Here is the caller graph for this function:

◆ getTimeLoss()

double Vehicle::getTimeLoss ( const std::string & vehID)
static

Definition at line 953 of file libsumo/Vehicle.cpp.

References getTimeLoss(), MSBaseVehicle::getTimeLossSeconds(), and libsumo::Helper::getVehicle().

Referenced by getTimeLoss(), and handleVariable().

Here is the caller graph for this function:

◆ getTypeID()

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

Definition at line 212 of file libsumo/Vehicle.cpp.

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

Referenced by getTypeID(), and handleVariable().

Here is the caller graph for this function:

◆ getVia()

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

Definition at line 783 of file libsumo/Vehicle.cpp.

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

Referenced by getVia(), and handleVariable().

Here is the caller graph for this function:

◆ getWaitingTime()

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

Definition at line 427 of file libsumo/Vehicle.cpp.

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

Referenced by getWaitingTime(), and handleVariable().

Here is the caller graph for this function:

◆ handleVariable()

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

Definition at line 2827 of file libsumo/Vehicle.cpp.

References libsumo::CMD_CHANGELANE, libsumo::DISTANCE_REQUEST, getAcceleration(), getAccumulatedWaitingTime(), getAdaptedTraveltime(), getAllowedSpeed(), getAngle(), getBestLanes(), getCO2Emission(), getCOEmission(), getDepartDelay(), getDeparture(), getDistance(), getDrivingDistance(), getDrivingDistance2D(), getEffort(), getElectricityConsumption(), getFollower(), getFollowSpeed(), getFuelConsumption(), getHCEmission(), getJunctionFoes(), getLaneChangeMode(), getLaneChangeState(), getLaneID(), getLaneIndex(), getLanePosition(), getLastActionTime(), getLateralLanePosition(), getLateralSpeed(), getLeader(), getLine(), getLoadedIDList(), getNeighbors(), getNextLinks(), getNextStops(), getNextTLS(), getNoiseEmission(), getNOxEmission(), getPersonIDList(), getPersonNumber(), getPMxEmission(), getPosition(), getRoadID(), getRoute(), getRouteID(), getRouteIndex(), getRoutingMode(), getSecureGap(), getSegmentID(), getSegmentIndex(), getSignals(), getSlope(), getSpeed(), getSpeedMode(), getSpeedWithoutTraCI(), getStopArrivalDelay(), getStopDelay(), getStopParameter(), getStops(), getStopSpeed(), getStopState(), getTaxiFleet(), getTeleportingIDList(), getTimeLoss(), getTypeID(), getVia(), getWaitingTime(), handleVariable(), LIBSUMO_NAMESPACE::VehicleType::handleVariableWithID(), libsumo::ID_COUNT, isRouteValid(), libsumo::LAST_STEP_PERSON_ID_LIST, libsumo::POSITION_ROADMAP, libsumo::StorageHelper::readCompound(), libsumo::Helper::readDistanceRequest(), libsumo::StorageHelper::readTypedByte(), libsumo::StorageHelper::readTypedDouble(), libsumo::StorageHelper::readTypedInt(), libsumo::StorageHelper::readTypedString(), libsumo::TRACI_ID_LIST, libsumo::VAR_ACCELERATION, libsumo::VAR_ACCUMULATED_WAITING_TIME, libsumo::VAR_ALLOWED_SPEED, libsumo::VAR_ANGLE, libsumo::VAR_BEST_LANES, libsumo::VAR_BOARDING_DURATION, libsumo::VAR_CO2EMISSION, libsumo::VAR_COEMISSION, libsumo::VAR_COLOR, libsumo::VAR_DEPART_DELAY, libsumo::VAR_DEPARTURE, libsumo::VAR_DISTANCE, libsumo::VAR_EDGE_EFFORT, libsumo::VAR_EDGE_TRAVELTIME, libsumo::VAR_EDGES, libsumo::VAR_ELECTRICITYCONSUMPTION, libsumo::VAR_FOES, libsumo::VAR_FOLLOW_SPEED, libsumo::VAR_FOLLOWER, libsumo::VAR_FUELCONSUMPTION, libsumo::VAR_HCEMISSION, libsumo::VAR_IMPATIENCE, 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_LOADED_LIST, libsumo::VAR_MINGAP_LAT, libsumo::VAR_NEIGHBORS, libsumo::VAR_NEXT_LINKS, libsumo::VAR_NEXT_STOPS, libsumo::VAR_NEXT_STOPS2, libsumo::VAR_NEXT_TLS, libsumo::VAR_NOISEEMISSION, libsumo::VAR_NOXEMISSION, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, 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_SECURE_GAP, libsumo::VAR_SEGMENT_ID, libsumo::VAR_SEGMENT_INDEX, 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_STOP_PARAMETER, libsumo::VAR_STOP_SPEED, libsumo::VAR_STOPSTATE, libsumo::VAR_TAXI_FLEET, libsumo::VAR_TELEPORTING_LIST, libsumo::VAR_TIMELOSS, libsumo::VAR_TYPE, libsumo::VAR_VIA, libsumo::VAR_WAITING_TIME, Position::x(), and Position::y().

Referenced by handleVariable(), and makeWrapper().

Here is the caller graph for this function:

◆ highlight()

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

◆ insertStop()

void Vehicle::insertStop ( const std::string & vehID,
int nextStopIndex,
const std::string & edgeID,
double pos = 1.,
int laneIndex = 0,
double duration = libsumo::INVALID_DOUBLE_VALUE,
int flags = libsumo::STOP_DEFAULT,
double startPos = libsumo::INVALID_DOUBLE_VALUE,
double until = libsumo::INVALID_DOUBLE_VALUE,
int teleport = 0 )
static

Definition at line 1188 of file libsumo/Vehicle.cpp.

References libsumo::Helper::buildStopParameters(), libsumo::Helper::getVehicle(), insertStop(), and MSBaseVehicle::insertStop().

Referenced by insertStop().

Here is the caller graph for this function:

◆ isOnInit()

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

Definition at line 88 of file libsumo/Vehicle.cpp.

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

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

Here is the caller graph for this function:

◆ isRouteValid()

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

Definition at line 458 of file libsumo/Vehicle.cpp.

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

Referenced by handleVariable(), and isRouteValid().

Here is the caller graph for this function:

◆ isVisible()

bool Vehicle::isVisible ( const SUMOVehicle * veh)
staticprivate

◆ makeWrapper()

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

Definition at line 2821 of file libsumo/Vehicle.cpp.

References handleVariable(), makeWrapper(), myContextSubscriptionResults, and mySubscriptionResults.

Referenced by makeWrapper().

Here is the caller graph for this function:

◆ moveTo()

void Vehicle::moveTo ( const std::string & vehID,
const std::string & laneID,
double pos,
int reason = libsumo::MOVE_AUTOMATIC )
static

Definition at line 2181 of file libsumo/Vehicle.cpp.

References MSBaseVehicle::addToOdometer(), MSInsertionControl::alreadyDeparted(), MSRoute::begin(), SUMOVehicleParameter::departLaneProcedure, MSLane::dictionary(), Position::distanceTo2D(), MSRoute::end(), MSLane::forceVehicleInsertion(), MSLane::geometryPositionAtOffset(), MSBaseVehicle::getCurrentRouteEdge(), MSLane::getEdge(), MSRoute::getEdges(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicleTransfer::getInstance(), MSVehicle::getLane(), MSVehicle::getLateralPositionOnLane(), MSLane::getLength(), MSBaseVehicle::getMaxSpeed(), MSVehicle::getMutableLane(), MSLane::getNextNormal(), MSEdge::getNormalBefore(), MSBaseVehicle::getParameter(), SUMOTrafficObject::getPosition(), MSBaseVehicle::getRoute(), MSBaseVehicle::getRoutePosition(), MSBaseVehicle::getRouterTT(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasDeparted(), MSEdge::isInternal(), MSVehicle::isOnRoad(), libsumo::MOVE_AUTOMATIC, libsumo::MOVE_NORMAL, libsumo::MOVE_TELEPORT, moveTo(), MSMoveReminder::NOTIFICATION_DEPARTED, MSMoveReminder::NOTIFICATION_JUNCTION, MSMoveReminder::NOTIFICATION_TELEPORT, MSVehicle::onRemovalFromNet(), MSVehicleTransfer::remove(), MSLane::removeVehicle(), MSBaseVehicle::reroute(), MSBaseVehicle::resetRoutePosition(), MSVehicle::setTentativeLaneAndPosition(), SPEED2DIST, toString(), VEHPARS_FORCE_REROUTE, SUMOVehicleParameter::wasSet(), and WRITE_WARNING.

Referenced by moveTo().

Here is the caller graph for this function:

◆ moveToXY()

void Vehicle::moveToXY ( const std::string & vehID,
const std::string & edgeID,
const int laneIndex,
const double x,
const double y,
double angle = libsumo::INVALID_DOUBLE_VALUE,
const int keepRoute = 1,
double matchThreshold = 100 )
static

◆ openGap()

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

Definition at line 1859 of file libsumo/Vehicle.cpp.

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

Referenced by openGap().

Here is the caller graph for this function:

◆ remove()

◆ replaceStop()

void Vehicle::replaceStop ( const std::string & vehID,
int nextStopIndex,
const std::string & edgeID,
double pos = 1.,
int laneIndex = 0,
double duration = libsumo::INVALID_DOUBLE_VALUE,
int flags = libsumo::STOP_DEFAULT,
double startPos = libsumo::INVALID_DOUBLE_VALUE,
double until = libsumo::INVALID_DOUBLE_VALUE,
int teleport = 0 )
static

Definition at line 1148 of file libsumo/Vehicle.cpp.

References MSBaseVehicle::abortNextStop(), libsumo::Helper::buildStopParameters(), MSVehicle::getLane(), libsumo::Helper::getVehicle(), replaceStop(), MSBaseVehicle::replaceStop(), MSBaseVehicle::rerouteBetweenStops(), and MSVehicle::updateBestLanes().

Referenced by replaceStop(), and setStopParameter().

Here is the caller graph for this function:

◆ requestToC()

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

Definition at line 1902 of file libsumo/Vehicle.cpp.

References requestToC(), and toString().

Referenced by requestToC().

Here is the caller graph for this function:

◆ rerouteEffort()

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

Definition at line 2154 of file libsumo/Vehicle.cpp.

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

Referenced by rerouteEffort().

Here is the caller graph for this function:

◆ rerouteParkingArea()

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

Definition at line 1435 of file libsumo/Vehicle.cpp.

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

Referenced by rerouteParkingArea().

Here is the caller graph for this function:

◆ rerouteTraveltime()

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

Definition at line 2139 of file libsumo/Vehicle.cpp.

References MSNet::getInstance(), MSBaseVehicle::getRouterTT(), MSBaseVehicle::getRoutingMode(), libsumo::Helper::getVehicle(), isOnInit(), MSBaseVehicle::reroute(), rerouteTraveltime(), libsumo::ROUTING_MODE_AGGREGATED_CUSTOM, libsumo::ROUTING_MODE_DEFAULT, and MSBaseVehicle::setRoutingMode().

Referenced by rerouteTraveltime().

Here is the caller graph for this function:

◆ resume()

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

Definition at line 1450 of file libsumo/Vehicle.cpp.

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

Referenced by resume().

Here is the caller graph for this function:

◆ setAcceleration()

void Vehicle::setAcceleration ( const std::string & vehID,
double acceleration,
double duration )
static

Definition at line 1924 of file libsumo/Vehicle.cpp.

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

Referenced by setAcceleration().

Here is the caller graph for this function:

◆ setAdaptedTraveltime()

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

Definition at line 2087 of file libsumo/Vehicle.cpp.

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

Referenced by setAdaptedTraveltime().

Here is the caller graph for this function:

◆ setEffort()

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

Definition at line 2113 of file libsumo/Vehicle.cpp.

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

Referenced by setEffort().

Here is the caller graph for this function:

◆ setLaneChangeMode()

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

Definition at line 1971 of file libsumo/Vehicle.cpp.

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

Referenced by setLaneChangeMode().

Here is the caller graph for this function:

◆ setLateralLanePosition()

void Vehicle::setLateralLanePosition ( const std::string & vehID,
double posLat )
static

Definition at line 2061 of file libsumo/Vehicle.cpp.

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

Referenced by setLateralLanePosition().

Here is the caller graph for this function:

◆ setLine()

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

Definition at line 2360 of file libsumo/Vehicle.cpp.

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

Referenced by setLine().

Here is the caller graph for this function:

◆ setPreviousSpeed()

void Vehicle::setPreviousSpeed ( const std::string & vehID,
double prevSpeed,
double prevAcceleration = libsumo::INVALID_DOUBLE_VALUE )
static

Definition at line 1945 of file libsumo/Vehicle.cpp.

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

Referenced by setPreviousSpeed().

Here is the caller graph for this function:

◆ setRoute() [1/2]

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

Definition at line 2027 of file libsumo/Vehicle.cpp.

References setRoute().

Referenced by setRoute(), and setRoute().

Here is the caller graph for this function:

◆ setRoute() [2/2]

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

◆ setRouteID()

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

Definition at line 2003 of file libsumo/Vehicle.cpp.

References MSRoute::dictionary(), MSGlobals::gCheckRoutes, Named::getID(), SUMOTrafficObject::getLane(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasValidRoute(), SUMOVehicleParserHelper::isInternalRouteID(), MSBaseVehicle::replaceRoute(), setRouteID(), TL, and WRITE_WARNINGF.

Referenced by setRouteID().

Here is the caller graph for this function:

◆ setRoutingMode()

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

Definition at line 1983 of file libsumo/Vehicle.cpp.

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

Referenced by setRoutingMode().

Here is the caller graph for this function:

◆ setSignals()

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

Definition at line 2162 of file libsumo/Vehicle.cpp.

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

Referenced by setSignals().

Here is the caller graph for this function:

◆ setSpeed()

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

Definition at line 1907 of file libsumo/Vehicle.cpp.

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

Referenced by setSpeed().

Here is the caller graph for this function:

◆ setSpeedMode()

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

Definition at line 1959 of file libsumo/Vehicle.cpp.

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

Referenced by setSpeedMode().

Here is the caller graph for this function:

◆ setStop()

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

Definition at line 1129 of file libsumo/Vehicle.cpp.

References MSBaseVehicle::addTraciStop(), libsumo::Helper::buildStopParameters(), libsumo::Helper::getVehicle(), and setStop().

Referenced by setStop().

Here is the caller graph for this function:

◆ setStopParameter()

void Vehicle::setStopParameter ( const std::string & vehID,
int nextStopIndex,
const std::string & param,
const std::string & value,
bool customParam = false )
static

Definition at line 1298 of file libsumo/Vehicle.cpp.

References SUMOVehicleParameter::Stop::actType, SUMOVehicleParameter::Stop::arrival, SUMOVehicleParameter::Stop::awaitedContainers, SUMOVehicleParameter::Stop::awaitedPersons, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::edge, SUMOVehicleParameter::Stop::ended, SUMOVehicleParameter::Stop::endPos, SUMOVehicleParameter::Stop::extension, SUMOVehicleParameter::Stop::getFlags(), MSLane::getIndex(), StringTokenizer::getSet(), MSBaseVehicle::getStop(), SUMOVehicleParameter::Stop::getTriggers(), libsumo::Helper::getVehicle(), MSStop::initPars(), invalid_return< std::string >::value, SUMOVehicleParameter::Stop::join, SUMOVehicleParameter::Stop::jump, SUMOVehicleParameter::Stop::jumpUntil, MSStop::lane, SUMOVehicleParameter::Stop::line, SUMOVehicleParameter::Stop::onDemand, SUMOVehicleParameter::Stop::parametersSet, SUMOVehicleParameter::Stop::parking, MSStop::pars, SUMOVehicleParameter::parseParkingType(), SUMOVehicleParameter::parseStopTriggers(), SUMOVehicleParameter::Stop::permitted, SUMOVehicleParameter::Stop::posLat, replaceStop(), Parameterised::setParameter(), setStopParameter(), SUMOVehicleParameter::Stop::speed, SUMOVehicleParameter::Stop::split, SUMOVehicleParameter::Stop::started, SUMOVehicleParameter::Stop::startPos, STEPS2TIME, STOP_ARRIVAL_SET, STOP_DURATION_SET, STOP_END_SET, STOP_ENDED_SET, STOP_EXPECTED_CONTAINERS_SET, STOP_EXPECTED_SET, STOP_EXTENSION_SET, STOP_JOIN_SET, STOP_JUMP_SET, STOP_JUMP_UNTIL_SET, STOP_LINE_SET, STOP_ONDEMAND_SET, STOP_PARKING_SET, STOP_PERMITTED_SET, STOP_POSLAT_SET, STOP_SPEED_SET, STOP_SPLIT_SET, STOP_START_SET, STOP_STARTED_SET, STOP_TRIGGER_SET, STOP_TRIP_ID_SET, STOP_UNTIL_SET, string2time(), SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVAL, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DURATION, SUMO_ATTR_EDGE, SUMO_ATTR_ENDED, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_EXTENSION, SUMO_ATTR_INDEX, SUMO_ATTR_JOIN, SUMO_ATTR_JUMP, SUMO_ATTR_JUMP_UNTIL, SUMO_ATTR_LANE, SUMO_ATTR_LINE, SUMO_ATTR_ONDEMAND, SUMO_ATTR_PARKING, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_PERMITTED, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_SPEED, SUMO_ATTR_SPLIT, SUMO_ATTR_STARTED, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRAIN_STOP, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TRIP_ID, SUMO_ATTR_UNTIL, TLF, StringUtils::toBool(), StringUtils::toDouble(), StringUtils::toInt(), toString(), SUMOVehicleParameter::Stop::tripId, and SUMOVehicleParameter::Stop::until.

Referenced by setStopParameter().

Here is the caller graph for this function:

◆ setType()

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

Definition at line 1988 of file libsumo/Vehicle.cpp.

References MSNet::getInstance(), libsumo::Helper::getVehicle(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), MSVehicle::isOnRoad(), MSBaseVehicle::replaceVehicleType(), setType(), MSVehicle::updateBestLanes(), and MSVehicle::updateLaneBruttoSum().

Referenced by setType().

Here is the caller graph for this function:

◆ setVia()

void Vehicle::setVia ( const std::string & vehID,
const std::vector< std::string > & edgeList )
static

Definition at line 2366 of file libsumo/Vehicle.cpp.

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

Referenced by setVia().

Here is the caller graph for this function:

◆ slowDown()

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

Definition at line 1839 of file libsumo/Vehicle.cpp.

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

Referenced by slowDown().

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 2815 of file libsumo/Vehicle.cpp.

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

Referenced by storeShape().

Here is the caller graph for this function:

◆ subscribeLeader()

void Vehicle::subscribeLeader ( const std::string & vehID,
double dist = 0.,
double begin = libsumo::INVALID_DOUBLE_VALUE,
double end = libsumo::INVALID_DOUBLE_VALUE )
static

Definition at line 2668 of file libsumo/Vehicle.cpp.

References subscribeLeader(), and libsumo::VAR_LEADER.

Referenced by subscribeLeader().

Here is the caller graph for this function:

◆ updateBestLanes()

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

Definition at line 2073 of file libsumo/Vehicle.cpp.

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

Referenced by updateBestLanes().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Vehicle::myContextSubscriptionResults
staticprivate

Definition at line 271 of file Vehicle.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Vehicle::mySubscriptionResults
staticprivate

Definition at line 270 of file Vehicle.h.

Referenced by makeWrapper().


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