Eclipse SUMO - Simulation of Urban MObility
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. More...
 
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 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 position, 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 More...
 

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

References 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(), 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.

◆ addSubscriptionFilterCFManeuver()

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

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

References libsumo::INVALID_DOUBLE_VALUE.

◆ addSubscriptionFilterDownstreamDistance()

void Vehicle::addSubscriptionFilterDownstreamDistance ( double  dist)
static

◆ addSubscriptionFilterFieldOfVision()

void Vehicle::addSubscriptionFilterFieldOfVision ( double  openingAngle)
static

◆ 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

◆ addSubscriptionFilterLateralDistance()

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

◆ 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

◆ addSubscriptionFilterLeadFollow()

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

◆ addSubscriptionFilterNoOpposite()

void Vehicle::addSubscriptionFilterNoOpposite ( )
static

◆ addSubscriptionFilterTurn()

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

◆ addSubscriptionFilterUpstreamDistance()

void Vehicle::addSubscriptionFilterUpstreamDistance ( double  dist)
static

◆ addSubscriptionFilterVClass()

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

◆ addSubscriptionFilterVType()

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

◆ changeLane()

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

◆ changeLaneRelative()

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

◆ changeSublane()

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

◆ changeTarget()

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

◆ deactivateGapControl()

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

◆ dispatchTaxi()

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

◆ getAcceleration()

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

◆ getAccumulatedWaitingTime()

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

◆ getAdaptedTraveltime()

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

◆ getAllowedSpeed()

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

◆ getAngle()

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

◆ getBestLanes()

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

◆ getCO2Emission()

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

◆ getCOEmission()

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

◆ getDepartDelay()

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

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

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

◆ getDeparture()

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

◆ getDistance()

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

◆ getDrivingDistance()

◆ getDrivingDistance2D()

◆ getEffort()

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

◆ getElectricityConsumption()

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

◆ getFollower()

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

◆ getFollowSpeed()

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

◆ getFuelConsumption()

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

◆ getHCEmission()

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

◆ getJunctionFoes()

◆ getLaneChangeMode()

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

◆ getLaneChangeState()

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

◆ getLaneID()

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

◆ getLaneIndex()

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

◆ getLanePosition()

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

◆ getLastActionTime()

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

◆ getLateralLanePosition()

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

◆ getLateralSpeed()

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

◆ getLeader()

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

◆ getLine()

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

◆ getLoadedIDList()

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

◆ getNeighbors()

◆ getNextLinks()

◆ getNextStops()

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

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

◆ getNextTLS()

◆ getNoiseEmission()

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

◆ getNOxEmission()

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

◆ getPersonIDList()

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

◆ getPersonNumber()

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

◆ getPMxEmission()

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

◆ getPosition()

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

◆ getPosition3D()

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

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

◆ getRoadID()

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

◆ getRoute()

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

◆ getRouteID()

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

◆ getRouteIndex()

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

◆ getRoutingMode()

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

◆ getSecureGap()

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

◆ getSignals()

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

◆ getSlope()

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

◆ getSpeed()

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

◆ getSpeedMode()

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

◆ getSpeedWithoutTraCI()

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

◆ getStopArrivalDelay()

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

◆ getStopDelay()

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

◆ getStopParameter()

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

Definition at line 1178 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(), MSBaseVehicle::getStops(), SUMOVehicleParameter::Stop::getTriggers(), libsumo::Helper::getVehicle(), INVALID_DOUBLE, libsumo::INVALID_DOUBLE_VALUE, SUMOVehicleParameter::Stop::join, joinToString(), SUMOVehicleParameter::Stop::lane, SUMOVehicleParameter::Stop::line, SUMOVehicleParameter::Stop::onDemand, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, MSStop::pars, 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_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.

◆ getStops()

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

◆ getStopSpeed()

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

◆ getStopState()

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

◆ getTaxiFleet()

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

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

References MSDevice_Taxi::getFleet().

◆ getTeleportingIDList()

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

◆ getTimeLoss()

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

◆ getTypeID()

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

◆ getVia()

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

◆ getWaitingTime()

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

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

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

◆ handleVariable()

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

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

References libsumo::ID_COUNT, libsumo::LAST_STEP_PERSON_ID_LIST, tcpip::Storage::readDouble(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::TRACI_ID_LIST, libsumo::VAR_ACCELERATION, libsumo::VAR_ACCUMULATED_WAITING_TIME, libsumo::VAR_ALLOWED_SPEED, libsumo::VAR_ANGLE, 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_EDGES, libsumo::VAR_ELECTRICITYCONSUMPTION, 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_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_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_TELEPORTING_LIST, libsumo::VAR_TIMELOSS, libsumo::VAR_TYPE, libsumo::VAR_VIA, and libsumo::VAR_WAITING_TIME.

◆ 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

◆ isOnInit()

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

◆ isRouteValid()

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

◆ isVisible()

bool Vehicle::isVisible ( const SUMOVehicle veh)
staticprivate

◆ makeWrapper()

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

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

◆ moveTo()

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

◆ moveToXY()

◆ openGap()

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

◆ 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

◆ requestToC()

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

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

References toString().

◆ rerouteEffort()

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

◆ rerouteParkingArea()

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

◆ rerouteTraveltime()

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

◆ resume()

◆ setAcceleration()

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

◆ 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

◆ 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

◆ setLaneChangeMode()

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

◆ setLateralLanePosition()

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

◆ setLine()

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

◆ setPreviousSpeed()

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

◆ setRoute() [1/2]

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

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

◆ setRoute() [2/2]

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

◆ setRouteID()

◆ setRoutingMode()

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

◆ setSignals()

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

◆ setSpeed()

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

◆ setSpeedMode()

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

◆ 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

◆ 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 1262 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(), SUMOVehicleParameter::Stop::join, SUMOVehicleParameter::Stop::jump, 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, Parameterised::setParameter(), 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_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_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.

◆ setType()

◆ setVia()

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

◆ slowDown()

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

◆ storeShape()

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

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

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

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

References libsumo::Helper::getVehicle().

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

References libsumo::VAR_LEADER.

◆ updateBestLanes()

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

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Vehicle::myContextSubscriptionResults
staticprivate

Definition at line 269 of file Vehicle.h.

◆ mySubscriptionResults

SubscriptionResults Vehicle::mySubscriptionResults
staticprivate

Definition at line 268 of file Vehicle.h.


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