![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <Vehicle.h>
Static Public Member Functions | |
static bool | handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper) |
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 &vehicleID, double dist=0., double beginTime=libsumo::INVALID_DOUBLE_VALUE, double endTime=libsumo::INVALID_DOUBLE_VALUE) |
Value retrieval | |
static std::vector< std::string > | getIDList () |
static int | getIDCount () |
static double | getSpeed (const std::string &vehicleID) |
static double | getLateralSpeed (const std::string &vehicleID) |
static double | getAcceleration (const std::string &vehicleID) |
static double | getSpeedWithoutTraCI (const std::string &vehicleID) |
static TraCIPosition | getPosition (const std::string &vehicleID, const bool includeZ=false) |
static TraCIPosition | getPosition3D (const std::string &vehicleID) |
static double | getAngle (const std::string &vehicleID) |
static double | getSlope (const std::string &vehicleID) |
static std::string | getRoadID (const std::string &vehicleID) |
static std::string | getLaneID (const std::string &vehicleID) |
static int | getLaneIndex (const std::string &vehicleID) |
static std::string | getTypeID (const std::string &vehicleID) |
static std::string | getRouteID (const std::string &vehicleID) |
static int | getRouteIndex (const std::string &vehicleID) |
static double | getLanePosition (const std::string &vehicleID) |
static double | getLateralLanePosition (const std::string &vehicleID) |
static double | getCO2Emission (const std::string &vehicleID) |
static double | getCOEmission (const std::string &vehicleID) |
static double | getHCEmission (const std::string &vehicleID) |
static double | getPMxEmission (const std::string &vehicleID) |
static double | getNOxEmission (const std::string &vehicleID) |
static double | getFuelConsumption (const std::string &vehicleID) |
static double | getNoiseEmission (const std::string &vehicleID) |
static double | getElectricityConsumption (const std::string &vehicleID) |
static int | getPersonNumber (const std::string &vehicleID) |
static std::vector< std::string > | getPersonIDList (const std::string &vehicleID) |
static std::pair< std::string, double > | getLeader (const std::string &vehicleID, double dist=0.) |
static double | getWaitingTime (const std::string &vehicleID) |
static double | getAccumulatedWaitingTime (const std::string &vehicleID) |
static double | getAdaptedTraveltime (const std::string &vehicleID, double time, const std::string &edgeID) |
static double | getEffort (const std::string &vehicleID, double time, const std::string &edgeID) |
static bool | isRouteValid (const std::string &vehicleID) |
static std::vector< std::string > | getRoute (const std::string &vehicleID) |
static int | getSignals (const std::string &vehicleID) |
static std::vector< TraCIBestLanesData > | getBestLanes (const std::string &vehicleID) |
static std::vector< TraCINextTLSData > | getNextTLS (const std::string &vehicleID) |
static std::vector< TraCINextStopData > | getNextStops (const std::string &vehicleID) |
static int | getStopState (const std::string &vehicleID) |
static double | getDistance (const std::string &vehicleID) |
static double | getDrivingDistance (const std::string &vehicleID, const std::string &edgeID, double position, int laneIndex=0) |
static double | getDrivingDistance2D (const std::string &vehicleID, double x, double y) |
static double | getAllowedSpeed (const std::string &vehicleID) |
static int | getSpeedMode (const std::string &vehicleID) |
static int | getLaneChangeMode (const std::string &vehicleID) |
static int | getRoutingMode (const std::string &vehicleID) |
static std::string | getLine (const std::string &vehicleID) |
static std::vector< std::string > | getVia (const std::string &vehicleID) |
static std::pair< int, int > | getLaneChangeState (const std::string &vehicleID, int direction) |
static double | getLastActionTime (const std::string &vehicleID) |
static std::string | getParameter (const std::string &vehicleID, const std::string &key) |
static std::vector< std::pair< std::string, double > > | getNeighbors (const std::string &vehicleID, const int mode) |
State Changing | |
static void | setStop (const std::string &vehicleID, const std::string &edgeID, double pos=1., int laneIndex=0, double duration=INVALID_DOUBLE_VALUE, int flags=STOP_DEFAULT, double startPos=INVALID_DOUBLE_VALUE, double until=INVALID_DOUBLE_VALUE) |
static void | rerouteParkingArea (const std::string &vehicleID, const std::string &parkingAreaID) |
static void | resume (const std::string &vehicleID) |
static void | add (const std::string &vehicleID, const std::string &routeID, const std::string &typeID="DEFAULT_VEHTYPE", const std::string &depart="now", const std::string &departLane="first", const std::string &departPos="base", const std::string &departSpeed="0", const std::string &arrivalLane="current", const std::string &arrivalPos="max", const std::string &arrivalSpeed="current", const std::string &fromTaz="", const std::string &toTaz="", const std::string &line="", int personCapacity=4, int personNumber=0) |
static void | changeTarget (const std::string &vehicleID, const std::string &edgeID) |
static void | changeLane (const std::string &vehicleID, int laneIndex, double duration) |
static void | changeLaneRelative (const std::string &vehicleID, int indexOffset, double duration) |
static void | changeSublane (const std::string &vehicleID, double latDist) |
static void | slowDown (const std::string &vehicleID, double speed, double duration) |
static void | openGap (const std::string &vehicleID, double newTimeHeadway, double newSpaceHeadway, double duration, double changeRate, double maxDecel=INVALID_DOUBLE_VALUE, const std::string &referenceVehID="") |
static void | deactivateGapControl (const std::string &vehicleID) |
static void | requestToC (const std::string &vehID, double leadTime) |
static void | setSpeed (const std::string &vehicleID, double speed) |
static void | setSpeedMode (const std::string &vehicleID, int speedMode) |
static void | setLaneChangeMode (const std::string &vehicleID, int laneChangeMode) |
static void | setRoutingMode (const std::string &vehicleID, int routingMode) |
static void | setType (const std::string &vehicleID, const std::string &typeID) |
static void | setRouteID (const std::string &vehicleID, const std::string &routeID) |
static void | setRoute (const std::string &vehicleID, const std::vector< std::string > &edgeIDs) |
static void | updateBestLanes (const std::string &vehicleID) |
static void | setAdaptedTraveltime (const std::string &vehicleID, const std::string &edgeID, double time=INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max()) |
static void | setEffort (const std::string &vehicleID, const std::string &edgeID, double effort=INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max()) |
static void | rerouteTraveltime (const std::string &vehicleID, const bool currentTravelTimes=true) |
static void | rerouteEffort (const std::string &vehicleID) |
static void | setSignals (const std::string &vehicleID, int signals) |
static void | moveTo (const std::string &vehicleID, const std::string &laneID, double position) |
static void | moveToXY (const std::string &vehicleID, const std::string &edgeID, const int laneIndex, const double x, const double y, double angle=INVALID_DOUBLE_VALUE, const int keepRoute=1) |
static void | remove (const std::string &vehicleID, char reason=REMOVE_VAPORIZED) |
static void | setLine (const std::string &vehicleID, const std::string &line) |
static void | setVia (const std::string &vehicleID, const std::vector< std::string > &via) |
static void | setParameter (const std::string &vehicleID, const std::string &key, const std::string &value) |
static void | highlight (const std::string &vehicleID, const TraCIColor &col, double size, const int alphaMax, const double duration, const int type) |
Private Member Functions | |
Vehicle ()=delete | |
invalidated standard constructor More... | |
Static Private Member Functions | |
static bool | isOnInit (const std::string &vehicleID) |
static bool | isVisible (const SUMOVehicle *veh) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 977 of file Vehicle.cpp.
References libsumo::Route::add(), MSInsertionControl::add(), MSVehicleControl::addVehicle(), SUMOVehicleParameter::arrivalLane, SUMOVehicleParameter::arrivalLaneProcedure, SUMOVehicleParameter::arrivalPos, SUMOVehicleParameter::arrivalPosProcedure, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSVehicleControl::buildVehicle(), SUMOVehicleParameter::depart, DEPART_GIVEN, DEPART_NOW, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSRoute::dictionary(), EDGEFUNC_NORMAL, SUMOVehicleParameter::fromTaz, MSEdge::getAllEdges(), MSNet::getCurrentTimeStep(), MSRoute::getEdges(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicleControl::getVehicle(), MSVehicleType::getVehicleClass(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, SUMOVehicleParameter::line, SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::parseArrivalLane(), SUMOVehicleParameter::parseArrivalPos(), SUMOVehicleParameter::parseArrivalSpeed(), SUMOVehicleParameter::parseDepart(), SUMOVehicleParameter::parseDepartLane(), SUMOVehicleParameter::parseDepartPos(), SUMOVehicleParameter::parseDepartSpeed(), SUMOVehicleParameter::personNumber, SumoVehicleClassStrings, SUMOVehicleParameter::toTaz, VEHPARS_FORCE_REROUTE, and WRITE_WARNING.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 953 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSNet::getInstance(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setLaneTimeLine(), and TIME2STEPS.
Referenced by MSCFModel_CC::performAutoLaneChange(), and TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 961 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getLaneIndex(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setLaneTimeLine(), and TIME2STEPS.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 971 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), and MSVehicle::Influencer::setSublaneChange().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 927 of file Vehicle.cpp.
References SUMOAbstractRouter< E, V >::compute(), MSEdge::dictionary(), MSBaseVehicle::getID(), MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getRerouteOrigin(), MSVehicle::Influencer::getRouterTT(), libsumo::Helper::getVehicle(), isOnInit(), MSBaseVehicle::replaceRouteEdges(), and MSBaseVehicle::reroute().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1224 of file Vehicle.cpp.
References MSVehicle::Influencer::deactivateGapController(), MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), and MSVehicle::hasInfluencer().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 115 of file Vehicle.cpp.
References MSVehicle::getAcceleration(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 299 of file Vehicle.cpp.
References MSVehicle::getAccumulatedWaitingSeconds(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 305 of file Vehicle.cpp.
References libsumo::Helper::getEdge(), libsumo::Helper::getVehicle(), MSVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, and MSEdgeWeightsStorage::retrieveExistingTravelTime().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 552 of file Vehicle.cpp.
References MSVehicle::getLane(), libsumo::Helper::getVehicle(), MSLane::getVehicleMaxSpeed(), libsumo::INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 145 of file Vehicle.cpp.
References MSVehicle::getAngle(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, isVisible(), and GeomHelper::naviDegree().
Referenced by handleVariable().
|
static |
Definition at line 348 of file Vehicle.cpp.
References libsumo::TraCIBestLanesData::allowsContinuation, MSVehicle::LaneQ::allowsContinuation, MSVehicle::LaneQ::bestContinuations, libsumo::TraCIBestLanesData::bestLaneOffset, MSVehicle::LaneQ::bestLaneOffset, libsumo::TraCIBestLanesData::continuationLanes, MSVehicle::getBestLanes(), Named::getID(), libsumo::Helper::getVehicle(), MSVehicle::isOnRoad(), MSVehicle::LaneQ::lane, libsumo::TraCIBestLanesData::laneID, libsumo::TraCIBestLanesData::length, MSVehicle::LaneQ::length, MSVehicle::LaneQ::nextOccupation, and libsumo::TraCIBestLanesData::occupation.
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 216 of file Vehicle.cpp.
References MSVehicle::getCO2Emissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 222 of file Vehicle.cpp.
References MSVehicle::getCOEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 492 of file Vehicle.cpp.
References MSRoute::begin(), MSBaseVehicle::getCurrentRouteEdge(), MSBaseVehicle::getDepartPos(), MSRoute::getDistanceBetween(), MSLane::getEdge(), MSVehicle::getLane(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, MSLane::isInternal(), and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 519 of file Vehicle.cpp.
References MSRoute::getDistanceBetween(), libsumo::Helper::getEdge(), MSLane::getEdge(), MSVehicle::getLane(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSVehicle::getRoutePosition(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 535 of file Vehicle.cpp.
References libsumo::Helper::convertCartesianToRoadMap(), MSRoute::getDistanceBetween(), MSBaseVehicle::getEdge(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSVehicle::getRoutePosition(), libsumo::Helper::getVehicle(), MSVehicleType::getVehicleClass(), MSBaseVehicle::getVehicleType(), libsumo::INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 314 of file Vehicle.cpp.
References libsumo::Helper::getEdge(), libsumo::Helper::getVehicle(), MSVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, and MSEdgeWeightsStorage::retrieveExistingEffort().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 258 of file Vehicle.cpp.
References MSVehicle::getElectricityConsumption(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 246 of file Vehicle.cpp.
References MSVehicle::getFuelConsumption(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 228 of file Vehicle.cpp.
References MSVehicle::getHCEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
|
static |
Definition at line 84 of file Vehicle.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), isVisible(), MSVehicleControl::loadedVehBegin(), and MSVehicleControl::loadedVehEnd().
Referenced by getIDCount(), and handleVariable().
|
static |
Definition at line 575 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSVehicle::Influencer::getLaneChangeMode(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 599 of file Vehicle.cpp.
References MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::getSavedState(), libsumo::Helper::getVehicle(), MSVehicle::isOnRoad(), and LCA_UNKNOWN.
Referenced by MSCFModel_CC::performAutoLaneChange(), and TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 166 of file Vehicle.cpp.
References Named::getID(), MSVehicle::getLane(), libsumo::Helper::getVehicle(), and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 173 of file Vehicle.cpp.
References MSLane::getIndex(), MSVehicle::getLane(), libsumo::Helper::getVehicle(), libsumo::INVALID_INT_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 204 of file Vehicle.cpp.
References MSVehicle::getPositionOnLane(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 759 of file Vehicle.cpp.
References libsumo::Helper::getVehicle(), and STEPS2TIME.
Referenced by handleVariable().
|
static |
Definition at line 210 of file Vehicle.cpp.
References MSVehicle::getLateralPositionOnLane(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 108 of file Vehicle.cpp.
References MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::getSpeedLat(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 279 of file Vehicle.cpp.
References MSVehicle::getLeader(), libsumo::Helper::getVehicle(), and MSVehicle::isOnRoad().
Referenced by MSCFModel_CC::getRadarMeasurements(), handleVariable(), and TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 587 of file Vehicle.cpp.
References MSBaseVehicle::getParameter(), libsumo::Helper::getVehicle(), and SUMOVehicleParameter::line.
Referenced by handleVariable().
|
static |
Definition at line 649 of file Vehicle.cpp.
References DEBUG_COND, MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::getLeaders(), libsumo::Helper::getVehicle(), LCA_BLOCKED_BY_LEFT_FOLLOWER, LCA_BLOCKED_BY_LEFT_LEADER, LCA_BLOCKED_BY_RIGHT_FOLLOWER, and LCA_BLOCKED_BY_RIGHT_LEADER.
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 433 of file Vehicle.cpp.
References libsumo::TraCINextStopData::duration, libsumo::TraCINextStopData::endPos, MSVehicle::getMyStops(), libsumo::Helper::getVehicle(), libsumo::TraCINextStopData::lane, STEPS2TIME, libsumo::TraCINextStopData::stopFlags, libsumo::TraCINextStopData::stoppingPlaceID, and libsumo::TraCINextStopData::until.
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 374 of file Vehicle.cpp.
References MSEdge::allowedLanes(), libsumo::TraCINextTLSData::dist, MSRoute::end(), MSVehicle::getBestLanesContinuation(), MSBaseVehicle::getCurrentRouteEdge(), MSLane::getEdge(), MSVehicle::getLane(), MSLane::getLength(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSBaseVehicle::getVClass(), libsumo::Helper::getVehicle(), libsumo::TraCINextTLSData::id, MSEdge::isInternal(), MSLane::isLinkEnd(), MSVehicle::isOnRoad(), libsumo::TraCINextTLSData::state, MSLane::succLinkSec(), and libsumo::TraCINextTLSData::tlIndex.
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 252 of file Vehicle.cpp.
References MSVehicle::getHarmonoise_NoiseEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 240 of file Vehicle.cpp.
References MSVehicle::getNOxEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 610 of file Vehicle.cpp.
References StringUtils::endsWith(), StringTokenizer::get(), MSVehicle::getCarFollowModel(), MSBaseVehicle::getDeviceParameter(), MSVehicle::getLaneChangeModel(), Parameterised::getParameter(), MSBaseVehicle::getParameter(), MSCFModel::getParameter(), MSAbstractLaneChangeModel::getParameter(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasDevice(), StringTokenizer::size(), and StringUtils::startsWith().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 274 of file Vehicle.cpp.
References MSBaseVehicle::getPersonIDList(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 264 of file Vehicle.cpp.
References MSBaseVehicle::getPersonNumber(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 234 of file Vehicle.cpp.
References MSVehicle::getPMxEmissions(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 129 of file Vehicle.cpp.
References MSVehicle::getPosition(), libsumo::Helper::getVehicle(), isVisible(), and libsumo::Helper::makeTraCIPosition().
Referenced by getPosition3D(), handleVariable(), and storeShape().
|
static |
Definition at line 139 of file Vehicle.cpp.
References getPosition().
|
static |
Definition at line 159 of file Vehicle.cpp.
References MSLane::getEdge(), Named::getID(), MSVehicle::getLane(), libsumo::Helper::getVehicle(), and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 330 of file Vehicle.cpp.
References MSRoute::begin(), MSRoute::end(), MSBaseVehicle::getRoute(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 186 of file Vehicle.cpp.
References Named::getID(), MSBaseVehicle::getRoute(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 192 of file Vehicle.cpp.
References MSVehicle::getRoutePosition(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasDeparted(), and libsumo::INVALID_INT_VALUE.
Referenced by handleVariable().
|
static |
Definition at line 581 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSVehicle::Influencer::getRoutingMode(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 342 of file Vehicle.cpp.
References MSVehicle::getSignals(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 152 of file Vehicle.cpp.
References MSVehicle::getSlope(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 102 of file Vehicle.cpp.
References MSVehicle::getSpeed(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 569 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSVehicle::Influencer::getSpeedMode(), and libsumo::Helper::getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 122 of file Vehicle.cpp.
References MSVehicle::getSpeedWithoutTraciInfluence(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 473 of file Vehicle.cpp.
References MSVehicle::Stop::busstop, MSVehicle::Stop::chargingStation, MSVehicle::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, MSVehicle::getNextStop(), libsumo::Helper::getVehicle(), MSVehicle::isStopped(), SUMOVehicleParameter::Stop::parking, MSVehicle::Stop::parkingarea, MSVehicle::Stop::pars, MSVehicle::Stop::reached, and SUMOVehicleParameter::Stop::triggered.
Referenced by handleVariable().
|
static |
Definition at line 180 of file Vehicle.cpp.
References MSVehicleType::getID(), and libsumo::Helper::getVehicleType().
Referenced by handleVariable(), and TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 593 of file Vehicle.cpp.
References MSBaseVehicle::getParameter(), libsumo::Helper::getVehicle(), and SUMOVehicleParameter::via.
Referenced by handleVariable().
|
static |
Definition at line 293 of file Vehicle.cpp.
References libsumo::Helper::getVehicle(), and MSVehicle::getWaitingSeconds().
Referenced by handleVariable().
|
static |
Definition at line 1759 of file Vehicle.cpp.
References libsumo::TraCIRoadPosition::edgeID, getAcceleration(), getAccumulatedWaitingTime(), getAllowedSpeed(), getAngle(), getCO2Emission(), getCOEmission(), getDistance(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getIDCount(), getIDList(), getLaneChangeMode(), getLaneID(), getLaneIndex(), getLanePosition(), getLastActionTime(), getLateralLanePosition(), getLateralSpeed(), getLeader(), getLine(), getNoiseEmission(), getNOxEmission(), getPersonIDList(), getPersonNumber(), getPMxEmission(), getPosition(), getRoadID(), getRoute(), getRouteID(), getRouteIndex(), getRoutingMode(), getSignals(), getSlope(), getSpeed(), getSpeedMode(), getSpeedWithoutTraCI(), getStopState(), getTypeID(), getVia(), getWaitingTime(), libsumo::ID_COUNT, isRouteValid(), libsumo::LAST_STEP_PERSON_ID_LIST, libsumo::TraCIRoadPosition::pos, libsumo::TRACI_ID_LIST, libsumo::VAR_ACCELERATION, libsumo::VAR_ACCUMULATED_WAITING_TIME, libsumo::VAR_ALLOWED_SPEED, libsumo::VAR_ANGLE, libsumo::VAR_CO2EMISSION, libsumo::VAR_COEMISSION, libsumo::VAR_COLOR, libsumo::VAR_DISTANCE, libsumo::VAR_EDGES, libsumo::VAR_ELECTRICITYCONSUMPTION, libsumo::VAR_FUELCONSUMPTION, libsumo::VAR_HCEMISSION, libsumo::VAR_LANE_ID, libsumo::VAR_LANE_INDEX, libsumo::VAR_LANECHANGE_MODE, libsumo::VAR_LANEPOSITION, libsumo::VAR_LANEPOSITION_LAT, libsumo::VAR_LASTACTIONTIME, libsumo::VAR_LEADER, libsumo::VAR_LINE, libsumo::VAR_NOISEEMISSION, libsumo::VAR_NOXEMISSION, libsumo::VAR_PERSON_CAPACITY, libsumo::VAR_PERSON_NUMBER, libsumo::VAR_PMXEMISSION, libsumo::VAR_POSITION, libsumo::VAR_POSITION3D, libsumo::VAR_ROAD_ID, libsumo::VAR_ROUTE_ID, libsumo::VAR_ROUTE_INDEX, libsumo::VAR_ROUTE_VALID, libsumo::VAR_ROUTING_MODE, libsumo::VAR_SIGNALS, libsumo::VAR_SLOPE, libsumo::VAR_SPEED, libsumo::VAR_SPEED_FACTOR, libsumo::VAR_SPEED_LAT, libsumo::VAR_SPEED_WITHOUT_TRACI, libsumo::VAR_SPEEDSETMODE, libsumo::VAR_STOPSTATE, libsumo::VAR_TYPE, libsumo::VAR_VIA, libsumo::VAR_WAITING_TIME, libsumo::VariableWrapper::wrapColor(), libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapPosition(), libsumo::VariableWrapper::wrapRoadPosition(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().
Referenced by makeWrapper(), and TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 1681 of file Vehicle.cpp.
References libsumo::Polygon::addDynamics(), libsumo::Polygon::addHighlightPolygon(), libsumo::Polygon::exists(), MSVehicle::getAngle(), MSBaseVehicle::getID(), MSNet::getInstance(), MSBaseVehicle::getLength(), MSVehicle::getPosition(), libsumo::Helper::getVehicle(), GLO_VEHICLE, GeomHelper::makeRing(), libsumo::Helper::makeTraCIPositionVector(), MIN2(), SIMTIME, Position::sub(), and toString().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
staticprivate |
Definition at line 77 of file Vehicle.cpp.
References MSNet::getInstance(), SUMOVehicle::getLane(), MSVehicleControl::getVehicle(), and MSNet::getVehicleControl().
Referenced by changeTarget(), rerouteEffort(), and rerouteTraveltime().
|
static |
Definition at line 323 of file Vehicle.cpp.
References libsumo::Helper::getVehicle(), and MSBaseVehicle::hasValidRoute().
Referenced by handleVariable().
|
staticprivate |
Definition at line 71 of file Vehicle.cpp.
References SUMOVehicle::isOnRoad(), SUMOVehicle::isParking(), and SUMOVehicle::wasRemoteControlled().
Referenced by getAcceleration(), getAngle(), getCO2Emission(), getCOEmission(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getIDList(), getLateralSpeed(), getNoiseEmission(), getNOxEmission(), getPMxEmission(), getPosition(), getRoadID(), getSpeed(), and getSpeedWithoutTraCI().
|
static |
Definition at line 1753 of file Vehicle.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
Referenced by libsumo::Helper::handleSingleSubscription().
|
static |
Definition at line 1398 of file Vehicle.cpp.
References MSInsertionControl::alreadyDeparted(), MSRoute::begin(), SUMOVehicleParameter::departLaneProcedure, MSLane::dictionary(), MSRoute::end(), MSLane::forceVehicleInsertion(), MSBaseVehicle::getCurrentRouteEdge(), MSLane::getEdge(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicle::getLane(), MSLane::getNextNormal(), MSEdge::getNormalBefore(), MSBaseVehicle::getParameter(), MSBaseVehicle::getRoute(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasDeparted(), MSEdge::isInternal(), MSVehicle::isOnRoad(), MSMoveReminder::NOTIFICATION_DEPARTED, MSMoveReminder::NOTIFICATION_TELEPORT, MSVehicle::onRemovalFromNet(), MSLane::removeVehicle(), MSVehicle::resetRoutePosition(), and MSVehicle::setTentativeLaneAndPosition().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1085 of file Vehicle.cpp.
References MSInsertionControl::alreadyDeparted(), Position::angleTo2D(), MSRoute::begin(), PositionVector::distance2D(), Position::distanceTo2D(), MSLane::geometryPositionAtOffset(), MSBaseVehicle::getCurrentRouteEdge(), MSRoute::getEdges(), Named::getID(), MSBaseVehicle::getID(), Named::getIDSecure(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicle::getLane(), MSVehicle::getPosition(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSVehicle::getRoutePosition(), MSLane::getShape(), MSBaseVehicle::getVClass(), libsumo::Helper::getVehicle(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), MSLane::getWidth(), MSGlobals::gLateralResolution, libsumo::INVALID_DOUBLE_VALUE, GeomHelper::INVALID_OFFSET, MSVehicle::isOnRoad(), MIN2(), PositionVector::move2side(), libsumo::Helper::moveToXYMap(), libsumo::Helper::moveToXYMap_matchingRoutePosition(), GeomHelper::naviDegree(), PositionVector::rotationAtOffset(), libsumo::Helper::setRemoteControlled(), Position::setz(), SIMTIME, SVC_IGNORING, toString(), WRITE_WARNING, and Position::z().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1206 of file Vehicle.cpp.
References MSVehicle::Influencer::activateGapController(), MSVehicleType::getCarFollowModel(), MSCFModel::getHeadwayTime(), MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), MSBaseVehicle::getVehicleType(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1452 of file Vehicle.cpp.
References MSInsertionControl::alreadyDeparted(), MSVehicleControl::deleteVehicle(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicle::getLane(), libsumo::Helper::getVehicle(), MSNet::getVehicleControl(), MSBaseVehicle::hasDeparted(), MSMoveReminder::NOTIFICATION_ARRIVED, MSMoveReminder::NOTIFICATION_TELEPORT_ARRIVED, MSMoveReminder::NOTIFICATION_VAPORIZED, MSVehicle::onRemovalFromNet(), libsumo::REMOVE_ARRIVED, libsumo::REMOVE_PARKING, libsumo::REMOVE_TELEPORT, libsumo::REMOVE_TELEPORT_ARRIVED, libsumo::REMOVE_VAPORIZED, MSLane::removeVehicle(), and MSVehicleControl::scheduleVehicleRemoval().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1232 of file Vehicle.cpp.
References setParameter(), and toString().
|
static |
Definition at line 1377 of file Vehicle.cpp.
References MSNet::getInstance(), libsumo::Helper::getVehicle(), isOnInit(), and MSBaseVehicle::reroute().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 898 of file Vehicle.cpp.
References libsumo::Helper::getVehicle(), and MSVehicle::rerouteParkingArea().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1368 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::Influencer::getRouterTT(), libsumo::Helper::getVehicle(), isOnInit(), MSBaseVehicle::reroute(), and UNUSED_PARAMETER.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 908 of file Vehicle.cpp.
References MSVehicle::Stop::duration, MSVehicle::Stop::edge, MSBaseVehicle::getID(), MSVehicle::getNextStop(), libsumo::Helper::getVehicle(), MSVehicle::hasStops(), MSVehicle::Stop::pars, MSVehicle::Stop::reached, MSVehicle::resumeFromStopping(), and SUMOVehicleParameter::Stop::startPos.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1316 of file Vehicle.cpp.
References MSEdgeWeightsStorage::addTravelTime(), MSEdge::dictionary(), libsumo::Helper::getVehicle(), MSVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, MSEdgeWeightsStorage::knowsTravelTime(), and MSEdgeWeightsStorage::removeTravelTime().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1342 of file Vehicle.cpp.
References MSEdgeWeightsStorage::addEffort(), MSEdge::dictionary(), libsumo::Helper::getVehicle(), MSVehicle::getWeightsStorage(), libsumo::INVALID_DOUBLE_VALUE, MSEdgeWeightsStorage::knowsEffort(), and MSEdgeWeightsStorage::removeEffort().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1253 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), and MSVehicle::Influencer::setLaneChangeMode().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1506 of file Vehicle.cpp.
References MSBaseVehicle::getParameter(), libsumo::Helper::getVehicle(), and SUMOVehicleParameter::line.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1628 of file Vehicle.cpp.
References MSBaseVehicle::createDevice(), StringUtils::endsWith(), StringTokenizer::get(), MSVehicle::getCarFollowModel(), MSVehicle::getLaneChangeModel(), MSBaseVehicle::getParameter(), libsumo::Helper::getVehicle(), MSBaseVehicle::setDeviceParameter(), MSCFModel::setParameter(), MSAbstractLaneChangeModel::setParameter(), StringTokenizer::size(), StringUtils::startsWith(), and StringUtils::toBool().
Referenced by TraCIServerAPI_Vehicle::processSet(), and requestToC().
|
static |
Definition at line 1292 of file Vehicle.cpp.
References MSBaseVehicle::getID(), MSVehicle::getLane(), libsumo::Helper::getVehicle(), MSEdge::parseEdgesList(), and MSBaseVehicle::replaceRouteEdges().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1272 of file Vehicle.cpp.
References MSRoute::dictionary(), MSGlobals::gCheckRoutes, MSBaseVehicle::getID(), MSVehicle::getLane(), libsumo::Helper::getVehicle(), MSBaseVehicle::hasValidRoute(), MSVehicle::replaceRoute(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1258 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), and MSVehicle::Influencer::setRoutingMode().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1385 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setSignals(), MSVehicle::switchOffSignal(), and MSVehicle::switchOnSignal().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1237 of file Vehicle.cpp.
References DELTA_T, MSVehicle::getInfluencer(), MSNet::getInstance(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setSpeedTimeLine(), and SUMOTime_MAX.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1248 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), libsumo::Helper::getVehicle(), and MSVehicle::Influencer::setSpeedMode().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 831 of file Vehicle.cpp.
References MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), MSEdge::dictionary(), MSEdge::getLanes(), libsumo::Helper::getVehicle(), libsumo::INVALID_DOUBLE_VALUE, POSITION_EPS, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_NOTHING, SUMO_TAG_PARKING_AREA, SUMOTime_MAX, TIME2STEPS, and toString().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1263 of file Vehicle.cpp.
References MSNet::getInstance(), libsumo::Helper::getVehicle(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), and MSBaseVehicle::replaceVehicleType().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1512 of file Vehicle.cpp.
References MSBaseVehicle::getParameter(), libsumo::Helper::getVehicle(), MSEdge::parseEdgesList(), and SUMOVehicleParameter::via.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1197 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getSpeed(), libsumo::Helper::getVehicle(), MSVehicle::Influencer::setSpeedTimeLine(), and TIME2STEPS.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Saves the shape of the requested object in the given container.
id | The id of the poi to retrieve |
shape | The container to fill |
Definition at line 1747 of file Vehicle.cpp.
References getPosition(), and libsumo::Helper::getVehicle().
Referenced by libsumo::Helper::findObjectShape().
|
static |
Definition at line 1740 of file Vehicle.cpp.
References libsumo::VAR_LEADER.
|
static |
Definition at line 1309 of file Vehicle.cpp.
References libsumo::Helper::getVehicle(), and MSVehicle::updateBestLanes().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
staticprivate |
Definition at line 202 of file Vehicle.h.
Referenced by makeWrapper().
|
staticprivate |
Definition at line 201 of file Vehicle.h.
Referenced by makeWrapper().