![]() |
SUMO - Simulation of Urban MObility
|
Representation of a vehicle. More...
#include <SUMOVehicle.h>
Public Member Functions | |
virtual void | addContainer (MSTransportable *container)=0 |
Adds a container to this vehicle. More... | |
virtual void | addPerson (MSTransportable *person)=0 |
Adds a person to this vehicle. More... | |
virtual bool | addStop (const SUMOVehicleParameter::Stop &stopPar, std::string &errorMsg, SUMOTime untilOffset=0, bool collision=false, ConstMSEdgeVector::const_iterator *searchStart=0)=0 |
Adds a stop. More... | |
virtual double | getAcceleration () const =0 |
Returns the vehicle's acceleration. More... | |
virtual SUMOTime | getAccumulatedWaitingTime () const =0 |
virtual double | getAngle () const =0 |
Get the vehicle's angle. More... | |
virtual double | getArrivalPos () const =0 |
Returns this vehicle's desired arrivalPos for its current route (may change on reroute) More... | |
virtual double | getBackPositionOnLane (const MSLane *lane) const =0 |
Get the vehicle's back position along the given lane. More... | |
virtual double | getChosenSpeedFactor () const =0 |
virtual const ConstMSEdgeVector::const_iterator & | getCurrentRouteEdge () const =0 |
Returns an iterator pointing to the current edge in this vehicles route. More... | |
virtual SUMOTime | getDepartDelay () const =0 |
virtual double | getDepartPos () const =0 |
Returns this vehicle's real departure position. More... | |
virtual SUMOTime | getDeparture () const =0 |
Returns this vehicle's real departure time. More... | |
virtual MSDevice * | getDevice (const std::type_info &type) const =0 |
Returns a device of the given type if it exists or 0. More... | |
virtual const std::vector< MSDevice * > & | getDevices () const =0 |
Returns this vehicle's devices. More... | |
virtual const MSEdge * | getEdge () const =0 |
Returns the edge the vehicle is currently at. More... | |
virtual const std::string & | getID () const =0 |
Get the vehicle's ID. More... | |
virtual double | getImpatience () const =0 |
Returns this vehicles impatience. More... | |
virtual MSLane * | getLane () const =0 |
Returns the lane the vehicle is on. More... | |
virtual double | getLateralPositionOnLane () const =0 |
Get the vehicle's lateral position on the lane. More... | |
virtual double | getMaxSpeed () const =0 |
Returns the vehicle's maximum speed. More... | |
virtual MSParkingArea * | getNextParkingArea ()=0 |
virtual int | getNumberReroutes () const =0 |
Returns the number of new routes this vehicle got. More... | |
virtual const SUMOVehicleParameter & | getParameter () const =0 |
Returns the vehicle's parameter (including departure definition) More... | |
virtual Position | getPosition (const double offset=0) const =0 |
Return current position (x/y, cartesian) More... | |
virtual double | getPositionOnLane () const =0 |
Get the vehicle's position along the lane. More... | |
virtual double | getPreviousSpeed () const =0 |
Returns the vehicle's previous speed. More... | |
virtual const MSRoute & | getRoute () const =0 |
Returns the current route. More... | |
virtual double | getSlope () const =0 |
Returns the slope of the road at vehicle's position. More... | |
virtual double | getSpeed () const =0 |
Returns the vehicle's current speed. More... | |
virtual SUMOVehicleClass | getVClass () const =0 |
Returns the vehicle's access class. More... | |
virtual const MSVehicleType & | getVehicleType () const =0 |
Returns the vehicle's type. More... | |
virtual SUMOTime | getWaitingTime () const =0 |
virtual bool | hasArrived () const =0 |
Returns whether this vehicle has arrived. More... | |
virtual bool | hasDeparted () const =0 |
Returns whether this vehicle has departed. More... | |
virtual bool | hasValidRoute (std::string &msg, const MSRoute *route=0) const =0 |
Validates the current or given route. More... | |
virtual bool | isFrontOnLane (const MSLane *) const =0 |
Returns the information whether the front of the vehhicle is on the given lane. More... | |
virtual bool | isOnRoad () const =0 |
Returns the information whether the vehicle is on a road (is simulated) More... | |
virtual bool | isParking () const =0 |
Returns the information whether the vehicle is parked. More... | |
virtual bool | isRemoteControlled () const =0 |
Returns the information whether the vehicle is fully controlled via TraCI. More... | |
virtual bool | isSelected () const =0 |
whether this vehicle is selected in the GUI More... | |
virtual bool | isStopped () const =0 |
Returns whether the vehicle is at a stop. More... | |
virtual bool | isStoppedInRange (double pos) const =0 |
Returns whether the vehicle is stoped in range of the given position. More... | |
virtual bool | isStoppedTriggered () const =0 |
Returns whether the vehicle is at a stop and waiting for a person or container to continue. More... | |
virtual void | onDepart ()=0 |
Called when the vehicle is inserted into the network. More... | |
virtual bool | replaceParkingArea (MSParkingArea *parkingArea, std::string &errorMsg)=0 |
Replaces a stop. More... | |
virtual bool | replaceRoute (const MSRoute *route, bool onInit=false, int offset=0, bool addStops=true, bool removeStops=true)=0 |
Replaces the current route by the given one. More... | |
virtual bool | replaceRouteEdges (ConstMSEdgeVector &edges, bool onInit=false, bool check=false, bool removeStops=true)=0 |
Replaces the current route by the given edges. More... | |
virtual void | reroute (SUMOTime t, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, const bool onInit=false, const bool withTaz=false)=0 |
Performs a rerouting using the given router. More... | |
virtual void | setArrivalPos (double arrivalPos)=0 |
Sets this vehicle's desired arrivalPos for its current route. More... | |
virtual void | setChosenSpeedFactor (const double factor)=0 |
virtual const MSEdge * | succEdge (int nSuccs) const =0 |
Returns the nSuccs'th successor of edge the vehicle is currently at. More... | |
virtual | ~SUMOVehicle () |
Destructor. More... | |
state io | |
virtual void | saveState (OutputDevice &out)=0 |
Saves the states of a vehicle. More... | |
virtual void | loadState (const SUMOSAXAttributes &attrs, const SUMOTime offset)=0 |
Loads the state of this vehicle from the given description. More... | |
Representation of a vehicle.
Definition at line 66 of file SUMOVehicle.h.
|
inlinevirtual |
Destructor.
Definition at line 80 of file SUMOVehicle.h.
References addContainer(), addPerson(), addStop(), getAcceleration(), getAccumulatedWaitingTime(), getAngle(), getArrivalPos(), getBackPositionOnLane(), getChosenSpeedFactor(), getCurrentRouteEdge(), getDepartDelay(), getDepartPos(), getDeparture(), getDevice(), getDevices(), getEdge(), getID(), getImpatience(), getLane(), getLateralPositionOnLane(), getMaxSpeed(), getNextParkingArea(), getNumberReroutes(), getParameter(), getPosition(), getPositionOnLane(), getRoute(), getSlope(), getSpeed(), getVClass(), getVehicleType(), getWaitingTime(), hasArrived(), hasDeparted(), hasValidRoute(), isFrontOnLane(), isOnRoad(), isParking(), isRemoteControlled(), isSelected(), isStopped(), isStoppedInRange(), isStoppedTriggered(), loadState(), onDepart(), replaceParkingArea(), replaceRoute(), replaceRouteEdges(), reroute(), saveState(), setArrivalPos(), setChosenSpeedFactor(), and succEdge().
|
pure virtual |
Adds a container to this vehicle.
May do nothing since containers are not supported by default
[in] | container | The container to add |
Implemented in MSVehicle, and MSBaseVehicle.
Referenced by MSContainer::MSContainerStage_Driving::proceed(), and ~SUMOVehicle().
|
pure virtual |
Adds a person to this vehicle.
May do nothing since persons are not supported by default
[in] | person | The person to add |
Implemented in MSVehicle, and MSBaseVehicle.
Referenced by MSPerson::MSPersonStage_Driving::proceed(), and ~SUMOVehicle().
|
pure virtual |
Adds a stop.
The stop is put into the sorted list.
[in] | stop | The stop to add |
Implemented in MSVehicle, and MEVehicle.
Referenced by MSBaseVehicle::addStops(), and ~SUMOVehicle().
|
pure virtual |
Returns the vehicle's acceleration.
Implemented in MSVehicle, and MSBaseVehicle.
Referenced by MSE2Collector::makeMoveNotification(), MSDevice_Battery::notifyMove(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Harmonoise::MSLaneMeanDataValues::notifyMoveInternal(), MSEmissionExport::write(), MSAmitranTrajectories::writeVehicle(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Implemented in MSVehicle, and MEVehicle.
Referenced by MSTriggeredRerouter::notifyEnter(), and ~SUMOVehicle().
|
pure virtual |
Get the vehicle's angle.
Implemented in MSVehicle, GUIMEVehicle, GUIVehicle, and MEVehicle.
Referenced by MSDevice_Battery::notifyMove(), MSEmissionExport::write(), MSFCDExport::write(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Returns this vehicle's desired arrivalPos for its current route (may change on reroute)
Implemented in MSBaseVehicle.
Referenced by MSTriggeredRerouter::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSTriggeredRerouter::rerouteParkingArea(), MSDevice_Vehroutes::writeOutput(), and ~SUMOVehicle().
|
pure virtual |
Get the vehicle's back position along the given lane.
Implemented in MSVehicle, and MEVehicle.
Referenced by MSInductLoop::notifyEnter(), and ~SUMOVehicle().
|
pure virtual |
Implemented in MSBaseVehicle.
Referenced by MSDevice_Tripinfo::generateOutput(), MSLane::getVehicleMaxSpeed(), MSEdge::insertVehicle(), MSDevice_Routing::reroute(), MSVehicleControl::vehicleDeparted(), and ~SUMOVehicle().
|
pure virtual |
Returns an iterator pointing to the current edge in this vehicles route.
Implemented in MSBaseVehicle.
Referenced by MSDevice_Tripinfo::computeLengthAndDuration(), MSTransportable::Stage_Driving::setArrived(), MSTransportable::Stage_Driving::setVehicle(), MSDevice_Vehroutes::writeOutput(), and ~SUMOVehicle().
|
pure virtual |
Implemented in MSBaseVehicle.
Referenced by MSDevice_Tripinfo::generateOutput(), MSDevice_Tripinfo::updateStatistics(), and ~SUMOVehicle().
|
pure virtual |
Returns this vehicle's real departure position.
Implemented in MSBaseVehicle.
Referenced by MSDevice_Tripinfo::computeLengthAndDuration(), MSDevice_Tripinfo::generateOutput(), MSTransportable::Stage_Driving::setArrived(), MSTransportable::Stage_Driving::setVehicle(), MSDevice_Vehroutes::writeOutput(), and ~SUMOVehicle().
|
pure virtual |
Returns this vehicle's real departure time.
Implemented in MSBaseVehicle.
Referenced by MSDevice_Tripinfo::computeLengthAndDuration(), MSDevice_Tripinfo::generateOutput(), MSVehicleControl::scheduleVehicleRemoval(), MSVehicleControl::vehicleDeparted(), MSDevice_Vehroutes::writeOutput(), MSAmitranTrajectories::writeVehicle(), and ~SUMOVehicle().
|
pure virtual |
Returns a device of the given type if it exists or 0.
Implemented in MSBaseVehicle.
Referenced by MSInsertionControl::checkCandidates(), MSStateHandler::closeVehicle(), MSTriggeredRerouter::notifyEnter(), MSDevice_Example::notifyMove(), and ~SUMOVehicle().
|
pure virtual |
Returns this vehicle's devices.
Implemented in MSBaseVehicle.
Referenced by MSStateHandler::closeVehicle(), MSDevice_Tripinfo::generateOutput(), MSVehicleControl::scheduleVehicleRemoval(), and ~SUMOVehicle().
|
pure virtual |
Returns the edge the vehicle is currently at.
Implemented in MSBaseVehicle.
Referenced by MSDevice_Vehroutes::addRoute(), MSInsertionControl::checkCandidates(), MSDevice_Tripinfo::computeLengthAndDuration(), MSDevice_Tripinfo::generateOutput(), MSNet::getVehicleMeanSpeeds(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Transportable::notifyMove(), MSDevice_Tripinfo::notifyMoveInternal(), MSTriggeredRerouter::rerouteParkingArea(), MSInsertionControl::tryInsert(), and ~SUMOVehicle().
|
pure virtual |
Get the vehicle's ID.
Implemented in MSBaseVehicle.
Referenced by MSChargingStation::addChargeValueForOutput(), MSLink::blockedByFoe(), MSDevice_Transportable::buildVehicleDevices(), MSDevice_Tripinfo::buildVehicleDevices(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_BTsender::buildVehicleDevices(), MSDevice_BTreceiver::buildVehicleDevices(), MSDevice_Vehroutes::buildVehicleDevices(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSInductLoop::collectVehiclesOnDet(), MSVehicleControl::deleteVehicle(), MSE3Collector::enter(), MSDevice::equippedByDefaultAssignmentOptions(), MSVTypeProbe::execute(), MSDevice_Tripinfo::generateOutput(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), libsumo::Person::getVehicle(), MSEdge::insertVehicle(), MSE3Collector::leave(), MSInductLoop::leaveDetectorByMove(), MSE3Collector::leaveFront(), MSE2Collector::makeMoveNotification(), MSE2Collector::makeVehicleInfo(), MSDevice_BTreceiver::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSE2Collector::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_Battery::notifyMove(), MSDevice_Example::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE2Collector::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSLink::opened(), MSLink::removeApproaching(), MSDevice_SSM::requestsTrajectories(), MSTriggeredRerouter::rerouteParkingArea(), MSLink::setApproaching(), MSTransportable::Stage_Driving::setVehicle(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), MSDevice_SSM::useGeoCoords(), TraCIServer::vehicleStateChanged(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSDevice_Vehroutes::writeOutput(), MSAmitranTrajectories::writeVehicle(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
|
pure virtual |
Returns the lane the vehicle is on.
Implemented in MSVehicle, and MEVehicle.
Referenced by MSE2Collector::calculateTimeLossAndTimeOnDetector(), GUIBaseVehicle::drawOnPos(), MSTransportable::Stage_Driving::getEdge(), libsumo::Vehicle::isOnInit(), MSTriggeredRerouter::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_SSM::notifyLeave(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), and ~SUMOVehicle().
|
pure virtual |
Get the vehicle's lateral position on the lane.
Implemented in MSVehicle, and MSBaseVehicle.
Referenced by MSLink::opened(), and ~SUMOVehicle().
|
pure virtual |
Returns the vehicle's maximum speed.
Implemented in MSBaseVehicle.
Referenced by MSLane::getVehicleMaxSpeed(), and ~SUMOVehicle().
|
pure virtual |
returns the next imminent stop in the stop queue
Implemented in MSVehicle, and MEVehicle.
Referenced by MSTriggeredRerouter::rerouteParkingArea(), and ~SUMOVehicle().
|
pure virtual |
Returns the number of new routes this vehicle got.
Implemented in MSBaseVehicle.
Referenced by MSDevice_Tripinfo::generateOutput(), MSDevice_Vehroutes::writeXMLRoute(), and ~SUMOVehicle().
|
pure virtual |
Returns the vehicle's parameter (including departure definition)
Implemented in MSBaseVehicle.
Referenced by MSVehicleContainer::add(), MSVehicleControl::addVehicle(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSRouteHandler::closeVehicle(), MSDevice::equippedByDefaultAssignmentOptions(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), MSVehicleControl::getWaitingVehicle(), MSTriggeredRerouter::getWeight(), MSEdge::insertVehicle(), MSDevice_Routing::MSDevice_Routing(), MSDevice_Vehroutes::notifyEnter(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSVehicleContainer::remove(), MSDevice_SSM::requestsTrajectories(), MSTransportable::Stage_Driving::setVehicle(), MSInsertionControl::tryInsert(), MSDevice_SSM::useGeoCoords(), MSVehicleControl::vehicleDeparted(), MSDevice_Vehroutes::writeOutput(), and ~SUMOVehicle().
|
pure virtual |
Return current position (x/y, cartesian)
If the vehicle is not in the net, Position::INVALID.
[in] | offset | optional offset in longitudinal direction |
Implemented in MSVehicle, MEVehicle, GUIMEVehicle, and GUIVehicle.
Referenced by GUIBaseVehicle::drawOnPos(), MSVTypeProbe::execute(), MSTransportable::Stage_Driving::getPosition(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSEmissionExport::write(), MSFCDExport::write(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Get the vehicle's position along the lane.
Implemented in MSVehicle, and MEVehicle.
Referenced by MSDevice_Tripinfo::computeLengthAndDuration(), MSVTypeProbe::execute(), MSTransportable::Stage_Driving::getEdgePos(), MSE2Collector::makeVehicleInfo(), MSDevice_Vehroutes::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSInductLoop::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Battery::notifyMove(), MSBaseVehicle::onDepart(), MSTransportable::Stage_Driving::setArrived(), MSTransportable::Stage_Driving::setVehicle(), MSStopOut::stopEnded(), MSEmissionExport::write(), MSFCDExport::write(), MSXMLRawOut::writeVehicle(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Returns the vehicle's previous speed.
Implemented in MSVehicle, and MSBaseVehicle.
Referenced by MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSInstantInductLoop::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSInductLoop::notifyMove(), and MSE3Collector::MSE3LeaveReminder::notifyMove().
|
pure virtual |
Returns the current route.
Implemented in MSBaseVehicle.
Referenced by MSDevice_Vehroutes::addRoute(), MSVehicleControl::addVehicle(), MSDevice_Tripinfo::computeLengthAndDuration(), MSDevice_Tripinfo::generateOutput(), MSTriggeredRerouter::getCurrentReroute(), MSRouteProbe::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Routing::preInsertionReroute(), MSTriggeredRerouter::rerouteParkingArea(), MSTransportable::Stage_Driving::setArrived(), MSTransportable::Stage_Driving::setVehicle(), MSEmissionExport::write(), MSDevice_Vehroutes::writeOutput(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Returns the slope of the road at vehicle's position.
Implemented in MSVehicle, MSBaseVehicle, and MEVehicle.
Referenced by MSDevice_Battery::notifyMove(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), MSEmissionExport::write(), MSFCDExport::write(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Returns the vehicle's current speed.
Implemented in MSVehicle, and MEVehicle.
Referenced by MSChargingStation::addChargeValueForOutput(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSInductLoop::collectVehiclesOnDet(), MSE3Collector::detectorUpdate(), MSE3Collector::enter(), MSVTypeProbe::execute(), MSNet::getHaltingVehicleNumber(), MSTransportable::Stage_Driving::getSpeed(), MSNet::getVehicleMeanSpeeds(), MSE3Collector::leave(), MSDevice_Vehroutes::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSInstantInductLoop::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Battery::notifyMove(), MSEmissionExport::write(), MSFCDExport::write(), MSAmitranTrajectories::writeVehicle(), MSXMLRawOut::writeVehicle(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Returns the vehicle's access class.
Implemented in MSBaseVehicle.
Referenced by MSLane::getVehicleMaxSpeed(), MSEdge::prohibits(), MSDevice_Routing::reroute(), MSTransportable::Stage_Driving::setVehicle(), MSVehicleControl::vehicleDeparted(), and ~SUMOVehicle().
|
pure virtual |
Returns the vehicle's type.
Implemented in MSBaseVehicle.
Referenced by MSChargingStation::addChargeValueForOutput(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSInductLoop::collectVehiclesOnDet(), MSDevice::equippedByDefaultAssignmentOptions(), MSVTypeProbe::execute(), MSDevice_Tripinfo::generateOutput(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSStoppingPlace::getLastFreePos(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), MSTriggeredRerouter::getWeight(), MSEdge::insertVehicle(), MSInductLoop::leaveDetectorByMove(), MSE2Collector::makeVehicleInfo(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyEnter(), MSDevice_Bluelight::notifyMove(), MSInstantInductLoop::notifyMove(), MSDevice_Emissions::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSInductLoop::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Harmonoise::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSDevice_SSM::requestsTrajectories(), MSLink::setApproaching(), MSStopOut::stopEnded(), MSLane::succLinkSec(), MSDevice_SSM::useGeoCoords(), MSDetectorFileOutput::vehicleApplies(), MSVehicleControl::vehicleDeparted(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSDevice_Vehroutes::writeOutput(), MSAmitranTrajectories::writeVehicle(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Implemented in MSVehicle, and MEVehicle.
Referenced by MSBaseVehicle::getImpatience(), MSTriggeredRerouter::notifyEnter(), MSDevice_Tripinfo::notifyMoveInternal(), and ~SUMOVehicle().
|
pure virtual |
Returns whether this vehicle has arrived.
Implemented in MSBaseVehicle, MSVehicle, and MEVehicle.
Referenced by MSMeanData::MeanDataValues::notifyMove(), and ~SUMOVehicle().
|
pure virtual |
Returns whether this vehicle has departed.
Implemented in MSBaseVehicle.
Referenced by MSDevice_Vehroutes::addRoute(), MSStateHandler::closeVehicle(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), and ~SUMOVehicle().
|
pure virtual |
Validates the current or given route.
[out] | msg | Description why the route is not valid (if it is the case) |
[in] | route | The route to check (or 0 if the current route shall be checked) |
Implemented in MSBaseVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Returns the information whether the front of the vehhicle is on the given lane.
Implemented in MSVehicle, and MSBaseVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Returns the information whether the vehicle is on a road (is simulated)
Implemented in MSVehicle, MSBaseVehicle, and MEVehicle.
Referenced by MSVTypeProbe::execute(), MSNet::getHaltingVehicleNumber(), MSNet::getVehicleMeanSpeeds(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), MSE2Collector::notifyEnter(), MSInsertionControl::tryInsert(), MSDevice_SSM::updateAndWriteOutput(), MSEmissionExport::write(), MSFCDExport::write(), MSAmitranTrajectories::writeVehicle(), MSFullExport::writeVehicles(), and ~SUMOVehicle().
|
pure virtual |
Returns the information whether the vehicle is parked.
Implemented in MSVehicle, and MEVehicle.
Referenced by GUIVehicleControl::insertVehicleIDs(), MSFCDExport::write(), and ~SUMOVehicle().
|
pure virtual |
Returns the information whether the vehicle is fully controlled via TraCI.
Implemented in MSVehicle, and MSBaseVehicle.
Referenced by MSNet::getHaltingVehicleNumber(), MSNet::getVehicleMeanSpeeds(), MSFCDExport::write(), and ~SUMOVehicle().
|
pure virtual |
whether this vehicle is selected in the GUI
Implemented in MSBaseVehicle, and GUIVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Returns whether the vehicle is at a stop.
Implemented in MSVehicle, and MEVehicle.
Referenced by MSNet::getVehicleMeanSpeeds(), MSDevice_Transportable::notifyMove(), MSDevice_Tripinfo::notifyMove(), MSDevice_Transportable::removeTransportable(), and ~SUMOVehicle().
|
pure virtual |
Returns whether the vehicle is stoped in range of the given position.
Implemented in MSVehicle, and MEVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Returns whether the vehicle is at a stop and waiting for a person or container to continue.
Implemented in MSVehicle, and MEVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Loads the state of this vehicle from the given description.
Implemented in MSVehicle, and MEVehicle.
Referenced by MSStateHandler::closeVehicle(), and ~SUMOVehicle().
|
pure virtual |
Called when the vehicle is inserted into the network.
Sets optional information about departure time, informs the vehicle control about a further running vehicle.
Implemented in MSBaseVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Replaces a stop.
The stop replace the next stop into the sorted list.
[in] | stop | The stop to add |
Implemented in MSVehicle, and MEVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Replaces the current route by the given one.
Implemented in MEVehicle, and MSVehicle.
Referenced by MSTriggeredRerouter::notifyEnter(), MSDevice_Routing::preInsertionReroute(), MSBaseVehicle::replaceRouteEdges(), and ~SUMOVehicle().
|
pure virtual |
Replaces the current route by the given edges.
It is possible that the new route is not accepted, if a) it does not contain the vehicle's current edge, or b) something fails on insertion into the routes container (see in-line comments).
[in] | edges | The new list of edges to pass |
[in] | onInit | Whether the vehicle starts with this route |
[in] | check | Whether the route should be checked for validity |
[in] | removeStops | Whether stops should be removed if they do not fit onto the new route |
Implemented in MSBaseVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Performs a rerouting using the given router.
Tries to find a new route between the current edge and the destination edge, first. Tries to replace the current route by the new one using replaceRoute.
[in] | t | The time for which the route is computed |
[in] | router | The router to use |
Implemented in MSBaseVehicle.
Referenced by MSDevice_Routing::reroute(), and ~SUMOVehicle().
|
pure virtual |
Saves the states of a vehicle.
Implemented in MSVehicle, MSBaseVehicle, and MEVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Sets this vehicle's desired arrivalPos for its current route.
Implemented in MSBaseVehicle.
Referenced by ~SUMOVehicle().
|
pure virtual |
Implemented in MSBaseVehicle.
Referenced by MSEdge::insertVehicle(), MSDevice_Routing::reroute(), and ~SUMOVehicle().
|
pure virtual |
Returns the nSuccs'th successor of edge the vehicle is currently at.
If the rest of the route (counted from the current edge) than nSuccs, 0 is returned.
[in] | nSuccs | The number of edge to look forward |
Implemented in MSBaseVehicle.
Referenced by MSLane::succLinkSec(), and ~SUMOVehicle().