![]() |
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 () |
LIBSUMO_VEHICLE_TYPE_SETTER static LIBSUMO_SUBSCRIPTION_API void | storeShape (const std::string &id, PositionVector &shape) |
Saves the shape of the requested object in the given container. More... | |
Value retrieval | |
static std::vector< std::string > | getIDList () |
static int | getIDCount () |
static double | getSpeed (const std::string &vehicleID) |
static double | getAcceleration (const std::string &vehicleID) |
static double | getSpeedWithoutTraCI (const std::string &vehicleID) |
static TraCIPosition | getPosition (const std::string &vehicleID, const bool includeZ=false) |
static TraCIPosition | getPosition3D (const std::string &vehicleID) |
static double | getAngle (const std::string &vehicleID) |
static double | getSlope (const std::string &vehicleID) |
static std::string | getRoadID (const std::string &vehicleID) |
static std::string | getLaneID (const std::string &vehicleID) |
static int | getLaneIndex (const std::string &vehicleID) |
static std::string | getTypeID (const std::string &vehicleID) |
static std::string | getRouteID (const std::string &vehicleID) |
static int | getRouteIndex (const std::string &vehicleID) |
static double | getLanePosition (const std::string &vehicleID) |
static double | getLateralLanePosition (const std::string &vehicleID) |
static double | getCO2Emission (const std::string &vehicleID) |
static double | getCOEmission (const std::string &vehicleID) |
static double | getHCEmission (const std::string &vehicleID) |
static double | getPMxEmission (const std::string &vehicleID) |
static double | getNOxEmission (const std::string &vehicleID) |
static double | getFuelConsumption (const std::string &vehicleID) |
static double | getNoiseEmission (const std::string &vehicleID) |
static double | getElectricityConsumption (const std::string &vehicleID) |
static int | getPersonNumber (const std::string &vehicleID) |
static std::vector< std::string > | getPersonIDList (const std::string &vehicleID) |
static std::pair< std::string, double > | getLeader (const std::string &vehicleID, double dist=0.) |
static double | getWaitingTime (const std::string &vehicleID) |
static double | getAccumulatedWaitingTime (const std::string &vehicleID) |
static double | getAdaptedTraveltime (const std::string &vehicleID, double time, const std::string &edgeID) |
static double | getEffort (const std::string &vehicleID, double time, const std::string &edgeID) |
static bool | isRouteValid (const std::string &vehicleID) |
static std::vector< std::string > | getRoute (const std::string &vehicleID) |
static int | getSignals (const std::string &vehicleID) |
static std::vector< 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 const MSVehicleType & | getVehicleType (const std::string &vehicleID) |
State Changing | |
static void | setStop (const std::string &vehicleID, const std::string &edgeID, double pos=1., int laneIndex=0, double duration=INVALID_DOUBLE_VALUE, int flags=STOP_DEFAULT, double startPos=INVALID_DOUBLE_VALUE, double until=INVALID_DOUBLE_VALUE) |
static void | rerouteParkingArea (const std::string &vehicleID, const std::string &parkingAreaID) |
static void | resume (const std::string &vehicleID) |
static void | add (const std::string &vehicleID, const std::string &routeID, const std::string &typeID="DEFAULT_VEHTYPE", const std::string &depart="now", const std::string &departLane="first", const std::string &departPos="base", const std::string &departSpeed="0", const std::string &arrivalLane="current", const std::string &arrivalPos="max", const std::string &arrivalSpeed="current", const std::string &fromTaz="", const std::string &toTaz="", const std::string &line="", int personCapacity=4, int personNumber=0) |
static void | changeTarget (const std::string &vehicleID, const std::string &edgeID) |
static void | changeLane (const std::string &vehicleID, int laneIndex, double duration) |
static void | changeLaneRelative (const std::string &vehicleID, int laneChange, double duration) |
static void | changeSublane (const std::string &vehicleID, double latDist) |
static void | slowDown (const std::string &vehicleID, double speed, double duration) |
static void | openGap (const std::string &vehicleID, double newTimeHeadway, double newSpaceHeadway, double duration, double changeRate, double maxDecel) |
static void | deactivateGapControl (const std::string &vehicleID) |
static void | setSpeed (const std::string &vehicleID, double speed) |
static void | setSpeedMode (const std::string &vehicleID, int speedMode) |
static void | setLaneChangeMode (const std::string &vehicleID, int laneChangeMode) |
static void | setRoutingMode (const std::string &vehicleID, int routingMode) |
static void | setType (const std::string &vehicleID, const std::string &typeID) |
static void | setRouteID (const std::string &vehicleID, const std::string &routeID) |
static void | setRoute (const std::string &vehicleID, const std::vector< std::string > &edgeIDs) |
static void | updateBestLanes (const std::string &vehicleID) |
static void | setAdaptedTraveltime (const std::string &vehicleID, const std::string &edgeID, double time=INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max()) |
static void | setEffort (const std::string &vehicleID, const std::string &edgeID, double effort=INVALID_DOUBLE_VALUE, double begSeconds=0, double endSeconds=std::numeric_limits< double >::max()) |
static void | rerouteTraveltime (const std::string &vehicleID) |
static void | rerouteEffort (const std::string &vehicleID) |
static void | setSignals (const std::string &vehicleID, int signals) |
static void | moveTo (const std::string &vehicleID, const std::string &laneID, double position) |
static void | moveToXY (const std::string &vehicleID, const std::string &edgeID, const int laneIndex, const double x, const double y, double angle=INVALID_DOUBLE_VALUE, const int keepRoute=1) |
static void | remove (const std::string &vehicleID, char reason=REMOVE_VAPORIZED) |
static void | setLine (const std::string &vehicleID, const std::string &line) |
static void | setVia (const std::string &vehicleID, const std::vector< std::string > &via) |
static void | setParameter (const std::string &vehicleID, const std::string &key, const std::string &value) |
Static Protected Member Functions | |
static MSVehicle * | getVehicle (const std::string &id) |
Private Member Functions | |
Vehicle ()=delete | |
invalidated standard constructor More... | |
Static Private Member Functions | |
static bool | isOnInit (const std::string &vehicleID) |
static bool | isVisible (const SUMOVehicle *veh) |
Static Private Attributes | |
static ContextSubscriptionResults | myContextSubscriptionResults |
static SubscriptionResults | mySubscriptionResults |
Friends | |
class | Helper |
|
privatedelete |
invalidated standard constructor
|
static |
Definition at line 879 of file Vehicle.cpp.
References libsumo::Route::add(), MSInsertionControl::add(), MSVehicleControl::addVehicle(), SUMOVehicleParameter::arrivalLane, SUMOVehicleParameter::arrivalLaneProcedure, SUMOVehicleParameter::arrivalPos, SUMOVehicleParameter::arrivalPosProcedure, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSVehicleControl::buildVehicle(), SUMOVehicleParameter::depart, DEPART_GIVEN, DEPART_NOW, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSRoute::dictionary(), EDGEFUNC_NORMAL, SUMOVehicleParameter::fromTaz, MSEdge::getAllEdges(), MSNet::getCurrentTimeStep(), MSRoute::getEdges(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicleControl::getVehicle(), MSVehicleType::getVehicleClass(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, SUMOVehicleParameter::line, SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::parseArrivalLane(), SUMOVehicleParameter::parseArrivalPos(), SUMOVehicleParameter::parseArrivalSpeed(), SUMOVehicleParameter::parseDepart(), SUMOVehicleParameter::parseDepartLane(), SUMOVehicleParameter::parseDepartPos(), SUMOVehicleParameter::parseDepartSpeed(), SUMOVehicleParameter::personNumber, SumoVehicleClassStrings, SUMOVehicleParameter::toTaz, VEHPARS_FORCE_REROUTE, and WRITE_WARNING.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 849 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSNet::getInstance(), getVehicle(), MSVehicle::Influencer::setLaneTimeLine(), and TIME2STEPS.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 857 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getLaneIndex(), getVehicle(), MSVehicle::Influencer::setLaneTimeLine(), and TIME2STEPS.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 873 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), getVehicle(), and MSVehicle::Influencer::setSublaneChange().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 823 of file Vehicle.cpp.
References SUMOAbstractRouter< E, V >::compute(), MSEdge::dictionary(), MSBaseVehicle::getID(), MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getRerouteOrigin(), MSVehicle::Influencer::getRouterTT(), getVehicle(), isOnInit(), MSBaseVehicle::replaceRouteEdges(), and MSBaseVehicle::reroute().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1112 of file Vehicle.cpp.
References MSVehicle::Influencer::deactivateGapController(), MSVehicle::getInfluencer(), getVehicle(), and MSVehicle::hasInfluencer().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 111 of file Vehicle.cpp.
References MSVehicle::getAcceleration(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 294 of file Vehicle.cpp.
References MSVehicle::getAccumulatedWaitingSeconds(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 300 of file Vehicle.cpp.
References libsumo::Helper::getEdge(), getVehicle(), MSVehicle::getWeightsStorage(), INVALID_DOUBLE_VALUE, and MSEdgeWeightsStorage::retrieveExistingTravelTime().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 520 of file Vehicle.cpp.
References MSBaseVehicle::getChosenSpeedFactor(), MSVehicle::getLane(), getVehicle(), MSLane::getVehicleMaxSpeed(), INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 145 of file Vehicle.cpp.
References MSVehicle::getAngle(), getVehicle(), INVALID_DOUBLE_VALUE, isVisible(), and GeomHelper::naviDegree().
Referenced by handleVariable().
|
static |
Definition at line 343 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(), 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(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 222 of file Vehicle.cpp.
References MSVehicle::getCOEmissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 459 of file Vehicle.cpp.
References MSRoute::begin(), MSBaseVehicle::getCurrentRouteEdge(), MSBaseVehicle::getDepartPos(), MSRoute::getDistanceBetween(), MSLane::getEdge(), MSVehicle::getLane(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), getVehicle(), INVALID_DOUBLE_VALUE, MSLane::isInternal(), and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 486 of file Vehicle.cpp.
References MSRoute::getDistanceBetween(), libsumo::Helper::getEdge(), MSLane::getEdge(), MSVehicle::getLane(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSVehicle::getRoutePosition(), getVehicle(), INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 502 of file Vehicle.cpp.
References libsumo::Helper::convertCartesianToRoadMap(), MSRoute::getDistanceBetween(), MSBaseVehicle::getEdge(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSVehicle::getRoutePosition(), getVehicle(), INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 309 of file Vehicle.cpp.
References libsumo::Helper::getEdge(), getVehicle(), MSVehicle::getWeightsStorage(), INVALID_DOUBLE_VALUE, and MSEdgeWeightsStorage::retrieveExistingEffort().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 258 of file Vehicle.cpp.
References MSVehicle::getElectricityConsumption(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 246 of file Vehicle.cpp.
References MSVehicle::getFuelConsumption(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 228 of file Vehicle.cpp.
References MSVehicle::getHCEmissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
|
static |
Definition at line 86 of file Vehicle.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), isVisible(), MSVehicleControl::loadedVehBegin(), and MSVehicleControl::loadedVehEnd().
Referenced by getIDCount(), and handleVariable().
|
static |
Definition at line 542 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSVehicle::Influencer::getLaneChangeMode(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 563 of file Vehicle.cpp.
References MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::getSavedState(), getVehicle(), MSAbstractLaneChangeModel::hasSavedState(), MSVehicle::isOnRoad(), and LCA_UNKNOWN.
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 166 of file Vehicle.cpp.
References Named::getID(), MSVehicle::getLane(), getVehicle(), and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 173 of file Vehicle.cpp.
References MSLane::getIndex(), MSVehicle::getLane(), getVehicle(), INVALID_INT_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 204 of file Vehicle.cpp.
References MSVehicle::getPositionOnLane(), getVehicle(), INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 655 of file Vehicle.cpp.
References MSVehicleType::getCarFollowModel(), MSCFModel::getHeadwayTime(), MSVehicleType::getHeight(), MSCFModel::getImperfection(), MSVehicleType::getMaxSpeed(), MSVehicleType::getMaxSpeedLat(), MSVehicleType::getMinGap(), MSVehicleType::getMinGapLat(), Distribution_Parameterized::getParameter(), MSVehicleType::getSpeedFactor(), getVehicle(), getVehicleType(), MSVehicleType::getWidth(), STEPS2TIME, and toString().
Referenced by handleVariable().
|
static |
Definition at line 210 of file Vehicle.cpp.
References MSVehicle::getLateralPositionOnLane(), getVehicle(), INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 274 of file Vehicle.cpp.
References MSVehicle::getLeader(), getVehicle(), and MSVehicle::isOnRoad().
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 552 of file Vehicle.cpp.
References MSBaseVehicle::getParameter(), getVehicle(), and SUMOVehicleParameter::line.
Referenced by handleVariable().
|
static |
Definition at line 402 of file Vehicle.cpp.
References libsumo::TraCINextStopData::duration, libsumo::TraCINextStopData::endPos, MSVehicle::getMyStops(), getVehicle(), libsumo::TraCINextStopData::lane, STEPS2TIME, libsumo::TraCINextStopData::stopFlags, libsumo::TraCINextStopData::stoppingPlaceID, and libsumo::TraCINextStopData::until.
Referenced by TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 369 of file Vehicle.cpp.
References libsumo::TraCINextTLSData::dist, MSVehicle::getBestLanesContinuation(), MSLane::getEdge(), MSVehicle::getLane(), MSLane::getLength(), MSVehicle::getPositionOnLane(), 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(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 240 of file Vehicle.cpp.
References MSVehicle::getNOxEmissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 574 of file Vehicle.cpp.
References StringUtils::endsWith(), StringTokenizer::get(), MSBaseVehicle::getDeviceParameter(), MSVehicle::getLaneChangeModel(), Parameterised::getParameter(), MSBaseVehicle::getParameter(), MSAbstractLaneChangeModel::getParameter(), getVehicle(), MSBaseVehicle::hasDevice(), StringTokenizer::size(), and StringUtils::startsWith().
Referenced by getRouteIndex(), and TraCIServerAPI_Vehicle::processGet().
|
static |
Definition at line 269 of file Vehicle.cpp.
References MSBaseVehicle::getPersonIDList(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 264 of file Vehicle.cpp.
References MSBaseVehicle::getPersonNumber(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 234 of file Vehicle.cpp.
References MSVehicle::getPMxEmissions(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 125 of file Vehicle.cpp.
References MSVehicle::getPosition(), getVehicle(), INVALID_DOUBLE_VALUE, isVisible(), libsumo::Helper::makeTraCIPosition(), and libsumo::TraCIPosition::x.
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(), getVehicle(), and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 325 of file Vehicle.cpp.
References MSRoute::begin(), MSRoute::end(), MSBaseVehicle::getRoute(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 186 of file Vehicle.cpp.
References Named::getID(), MSBaseVehicle::getRoute(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 192 of file Vehicle.cpp.
References getParameter(), MSVehicle::getRoutePosition(), getVehicle(), MSBaseVehicle::hasDeparted(), INVALID_INT_VALUE, and libsumo::Helper::makeTraCIColor().
Referenced by handleVariable().
|
static |
Definition at line 547 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSVehicle::Influencer::getRoutingMode(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 337 of file Vehicle.cpp.
References MSVehicle::getSignals(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 152 of file Vehicle.cpp.
References MSVehicle::getSlope(), getVehicle(), INVALID_DOUBLE_VALUE, and MSVehicle::isOnRoad().
Referenced by handleVariable().
|
static |
Definition at line 104 of file Vehicle.cpp.
References MSVehicle::getSpeed(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 537 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSVehicle::Influencer::getSpeedMode(), and getVehicle().
Referenced by handleVariable().
|
static |
Definition at line 118 of file Vehicle.cpp.
References MSVehicle::getSpeedWithoutTraciInfluence(), getVehicle(), INVALID_DOUBLE_VALUE, and isVisible().
Referenced by handleVariable().
|
static |
Definition at line 442 of file Vehicle.cpp.
References MSVehicle::Stop::busstop, MSVehicle::Stop::chargingStation, MSVehicle::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, MSVehicle::getNextStop(), getVehicle(), MSVehicle::isStopped(), SUMOVehicleParameter::Stop::parking, MSVehicle::Stop::parkingarea, MSVehicle::Stop::pars, and SUMOVehicleParameter::Stop::triggered.
Referenced by handleVariable().
|
static |
Definition at line 180 of file Vehicle.cpp.
References MSVehicleType::getID(), getVehicle(), and MSBaseVehicle::getVehicleType().
Referenced by handleVariable(), and TraCIServerAPI_Vehicle::processGet().
|
staticprotected |
Definition at line 60 of file Vehicle.cpp.
References MSNet::getInstance(), MSVehicleControl::getVehicle(), and MSNet::getVehicleControl().
Referenced by libsumo::Helper::applySubscriptionFilters(), changeLane(), changeLaneRelative(), changeSublane(), changeTarget(), deactivateGapControl(), getAcceleration(), getAccumulatedWaitingTime(), getAdaptedTraveltime(), getAllowedSpeed(), getAngle(), getBestLanes(), getCO2Emission(), getCOEmission(), getDistance(), getDrivingDistance(), getDrivingDistance2D(), getEffort(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getLaneChangeMode(), getLaneChangeState(), getLaneID(), getLaneIndex(), getLanePosition(), getLastActionTime(), getLateralLanePosition(), getLeader(), getLine(), getNextStops(), getNextTLS(), getNoiseEmission(), getNOxEmission(), getParameter(), getPersonIDList(), getPersonNumber(), getPMxEmission(), getPosition(), getRoadID(), getRoute(), getRouteID(), getRouteIndex(), getRoutingMode(), getSignals(), getSlope(), getSpeed(), getSpeedMode(), getSpeedWithoutTraCI(), getStopState(), getTypeID(), getVehicleType(), getVia(), getWaitingTime(), isRouteValid(), moveTo(), moveToXY(), openGap(), remove(), rerouteEffort(), rerouteParkingArea(), rerouteTraveltime(), resume(), setAdaptedTraveltime(), setEffort(), setLaneChangeMode(), setLine(), setParameter(), setRoute(), setRouteID(), setRoutingMode(), setSignals(), setSpeed(), setSpeedMode(), setStop(), setType(), setVia(), slowDown(), storeShape(), and updateBestLanes().
|
static |
Definition at line 606 of file Vehicle.cpp.
References MSVehicleType::getActionStepLengthSecs(), MSCFModel::getApparentDecel(), MSVehicleType::getCarFollowModel(), MSCFModel::getEmergencyDecel(), MSVehicleType::getLength(), MSCFModel::getMaxAccel(), MSCFModel::getMaxDecel(), PollutantsInterface::getName(), getVehicle(), getVehicleShapeName(), and MSBaseVehicle::getVehicleType().
Referenced by getLastActionTime().
|
static |
Definition at line 557 of file Vehicle.cpp.
References MSBaseVehicle::getParameter(), getVehicle(), and SUMOVehicleParameter::via.
Referenced by handleVariable().
|
static |
Definition at line 288 of file Vehicle.cpp.
References getVehicle(), and MSVehicle::getWaitingSeconds().
Referenced by handleVariable().
|
static |
Definition at line 1569 of file Vehicle.cpp.
References getAcceleration(), getAccumulatedWaitingTime(), getAllowedSpeed(), getAngle(), getCO2Emission(), getCOEmission(), getDistance(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getIDCount(), getIDList(), getLaneChangeMode(), getLaneID(), getLaneIndex(), getLanePosition(), getLastActionTime(), getLateralLanePosition(), getLine(), getNoiseEmission(), getNOxEmission(), getPersonIDList(), getPersonNumber(), getPMxEmission(), getPosition(), getRoadID(), getRoute(), getRouteID(), getRouteIndex(), getRoutingMode(), getSignals(), getSlope(), getSpeed(), getSpeedMode(), getSpeedWithoutTraCI(), getStopState(), getTypeID(), getVia(), getWaitingTime(), ID_COUNT, isRouteValid(), LAST_STEP_PERSON_ID_LIST, TRACI_ID_LIST, VAR_ACCELERATION, VAR_ACCUMULATED_WAITING_TIME, VAR_ALLOWED_SPEED, VAR_ANGLE, VAR_CO2EMISSION, VAR_COEMISSION, VAR_COLOR, VAR_DISTANCE, VAR_EDGES, VAR_ELECTRICITYCONSUMPTION, VAR_FUELCONSUMPTION, VAR_HCEMISSION, VAR_LANE_ID, VAR_LANE_INDEX, VAR_LANECHANGE_MODE, VAR_LANEPOSITION, VAR_LANEPOSITION_LAT, VAR_LASTACTIONTIME, VAR_LINE, VAR_NOISEEMISSION, VAR_NOXEMISSION, VAR_PERSON_NUMBER, VAR_PMXEMISSION, VAR_POSITION, VAR_POSITION3D, VAR_ROAD_ID, VAR_ROUTE_ID, VAR_ROUTE_INDEX, VAR_ROUTE_VALID, VAR_ROUTING_MODE, VAR_SIGNALS, VAR_SLOPE, VAR_SPEED, VAR_SPEED_FACTOR, VAR_SPEED_WITHOUT_TRACI, VAR_SPEEDSETMODE, VAR_STOPSTATE, VAR_TYPE, VAR_VIA, VAR_WAITING_TIME, libsumo::VariableWrapper::wrapColor(), libsumo::VariableWrapper::wrapDouble(), libsumo::VariableWrapper::wrapInt(), libsumo::VariableWrapper::wrapPosition(), libsumo::VariableWrapper::wrapString(), and libsumo::VariableWrapper::wrapStringList().
Referenced by makeWrapper(), and TraCIServerAPI_Vehicle::processGet().
|
staticprivate |
Definition at line 80 of file Vehicle.cpp.
References MSNet::getInstance(), SUMOVehicle::getLane(), MSVehicleControl::getVehicle(), and MSNet::getVehicleControl().
Referenced by changeTarget(), rerouteEffort(), and rerouteTraveltime().
|
static |
Definition at line 318 of file Vehicle.cpp.
References getVehicle(), and MSBaseVehicle::hasValidRoute().
Referenced by handleVariable().
|
staticprivate |
Definition at line 74 of file Vehicle.cpp.
References SUMOVehicle::isOnRoad(), SUMOVehicle::isParking(), and SUMOVehicle::wasRemoteControlled().
Referenced by getAcceleration(), getAngle(), getCO2Emission(), getCOEmission(), getElectricityConsumption(), getFuelConsumption(), getHCEmission(), getIDList(), getNoiseEmission(), getNOxEmission(), getPMxEmission(), getPosition(), getRoadID(), getSpeed(), and getSpeedWithoutTraCI().
|
static |
Definition at line 1563 of file Vehicle.cpp.
References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.
|
static |
Definition at line 1276 of file Vehicle.cpp.
References MSInsertionControl::alreadyDeparted(), MSLane::dictionary(), MSVehicle::enterLaneAtMove(), MSLane::forceVehicleInsertion(), MSVehicle::getActionStepLength(), MSBaseVehicle::getEdge(), MSLane::getEdge(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicle::getLane(), MSEdge::getLanes(), MSBaseVehicle::getSingularType(), getVehicle(), MSNet::getVehicleControl(), MSBaseVehicle::hasDeparted(), MSVehicle::isOnRoad(), MSMoveReminder::NOTIFICATION_DEPARTED, MSMoveReminder::NOTIFICATION_TELEPORT, MSVehicle::onRemovalFromNet(), SUMOVehicleParserHelper::processActionStepLength(), MSLane::removeVehicle(), MSVehicle::resetActionOffset(), MSVehicleControl::scheduleVehicleRemoval(), MSVehicleType::setActionStepLength(), MSVehicle::setTentativeLaneAndPosition(), MSBaseVehicle::succEdge(), MSVehicle::updateActionOffset(), MSVehicle::willPass(), and WRITE_ERROR.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 987 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(), getVehicle(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), MSLane::getWidth(), MSGlobals::gLateralResolution, 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(), toString(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1098 of file Vehicle.cpp.
References MSVehicle::Influencer::activateGapController(), MSVehicleType::getCarFollowModel(), MSCFModel::getHeadwayTime(), MSVehicle::getInfluencer(), getVehicle(), MSBaseVehicle::getVehicleType(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1332 of file Vehicle.cpp.
References libsumo::TraCIColor::a, MSInsertionControl::alreadyDeparted(), libsumo::TraCIColor::b, SUMOVehicleParameter::color, MSVehicleControl::deleteVehicle(), libsumo::TraCIColor::g, MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicle::getLane(), MSBaseVehicle::getParameter(), getVehicle(), MSNet::getVehicleControl(), MSBaseVehicle::hasDeparted(), MSMoveReminder::NOTIFICATION_ARRIVED, MSMoveReminder::NOTIFICATION_TELEPORT_ARRIVED, MSMoveReminder::NOTIFICATION_VAPORIZED, MSVehicle::onRemovalFromNet(), SUMOVehicleParameter::parametersSet, libsumo::TraCIColor::r, REMOVE_ARRIVED, REMOVE_PARKING, REMOVE_TELEPORT, REMOVE_TELEPORT_ARRIVED, REMOVE_VAPORIZED, MSLane::removeVehicle(), MSVehicleControl::scheduleVehicleRemoval(), RGBColor::set(), MSBaseVehicle::setChosenSpeedFactor(), and VEHPARS_COLOR_SET.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1256 of file Vehicle.cpp.
References MSNet::getInstance(), getVehicle(), isOnInit(), and MSBaseVehicle::reroute().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 794 of file Vehicle.cpp.
References getVehicle(), and MSVehicle::rerouteParkingArea().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1248 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::Influencer::getRouterTT(), getVehicle(), isOnInit(), and MSBaseVehicle::reroute().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 804 of file Vehicle.cpp.
References MSVehicle::Stop::duration, MSVehicle::Stop::edge, MSBaseVehicle::getID(), MSVehicle::getNextStop(), getVehicle(), MSVehicle::hasStops(), MSVehicle::Stop::pars, MSVehicle::Stop::reached, MSVehicle::resumeFromStopping(), and SUMOVehicleParameter::Stop::startPos.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1196 of file Vehicle.cpp.
References MSEdgeWeightsStorage::addTravelTime(), MSEdge::dictionary(), getVehicle(), MSVehicle::getWeightsStorage(), INVALID_DOUBLE_VALUE, MSEdgeWeightsStorage::knowsTravelTime(), and MSEdgeWeightsStorage::removeTravelTime().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1222 of file Vehicle.cpp.
References MSEdgeWeightsStorage::addEffort(), MSEdge::dictionary(), getVehicle(), MSVehicle::getWeightsStorage(), INVALID_DOUBLE_VALUE, MSEdgeWeightsStorage::knowsEffort(), and MSEdgeWeightsStorage::removeEffort().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1136 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), getVehicle(), and MSVehicle::Influencer::setLaneChangeMode().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1386 of file Vehicle.cpp.
References MSBaseVehicle::getParameter(), getVehicle(), and SUMOVehicleParameter::line.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1508 of file Vehicle.cpp.
References MSBaseVehicle::createDevice(), StringUtils::endsWith(), StringTokenizer::get(), MSVehicle::getLaneChangeModel(), MSBaseVehicle::getParameter(), getVehicle(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, MSBaseVehicle::setDeviceParameter(), MSAbstractLaneChangeModel::setParameter(), StringTokenizer::size(), StringUtils::startsWith(), and StringUtils::toBool().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1175 of file Vehicle.cpp.
References MSBaseVehicle::getID(), MSVehicle::getLane(), getVehicle(), MSEdge::parseEdgesList(), and MSBaseVehicle::replaceRouteEdges().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1155 of file Vehicle.cpp.
References MSRoute::dictionary(), MSGlobals::gCheckRoutes, MSBaseVehicle::getID(), MSVehicle::getLane(), getVehicle(), MSBaseVehicle::hasValidRoute(), MSVehicle::replaceRoute(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1141 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), getVehicle(), and MSVehicle::Influencer::setRoutingMode().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1263 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), getVehicle(), MSVehicle::Influencer::setSignals(), MSVehicle::switchOffSignal(), and MSVehicle::switchOnSignal().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1120 of file Vehicle.cpp.
References DELTA_T, MSVehicle::getInfluencer(), MSNet::getInstance(), getVehicle(), MSVehicle::Influencer::setSpeedTimeLine(), and SUMOTime_MAX.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1131 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), getVehicle(), and MSVehicle::Influencer::setSpeedMode().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 727 of file Vehicle.cpp.
References MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), MSEdge::dictionary(), MSEdge::getLanes(), getVehicle(), 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 1146 of file Vehicle.cpp.
References MSNet::getInstance(), getVehicle(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), and MSBaseVehicle::replaceVehicleType().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1392 of file Vehicle.cpp.
References PollutantsInterface::getClassByName(), MSBaseVehicle::getParameter(), MSBaseVehicle::getSingularType(), getVehicle(), getVehicleClassID(), getVehicleShapeID(), SUMOXMLDefinitions::LateralAlignments, MSEdge::parseEdgesList(), MSVehicleType::setAccel(), MSVehicleType::setApparentDecel(), MSVehicleType::setEmissionClass(), MSVehicleType::setHeight(), MSVehicleType::setImperfection(), MSVehicleType::setLength(), MSVehicleType::setMaxSpeed(), MSVehicleType::setMaxSpeedLat(), MSVehicleType::setMinGap(), MSVehicleType::setMinGapLat(), MSVehicleType::setPreferredLateralAlignment(), MSVehicleType::setShape(), MSVehicleType::setTau(), MSVehicleType::setVClass(), MSVehicleType::setWidth(), and SUMOVehicleParameter::via.
Referenced by TraCIServerAPI_Vehicle::processSet().
|
static |
Definition at line 1089 of file Vehicle.cpp.
References MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getSpeed(), 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 1557 of file Vehicle.cpp.
References getPosition(), and getVehicle().
|
static |
Definition at line 1189 of file Vehicle.cpp.
References 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().