![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Representation of a vehicle or person. More...
#include <SUMOTrafficObject.h>
Public Member Functions | |
virtual double | getAcceleration () const =0 |
Returns the vehicle's acceleration. More... | |
virtual double | getAngle () const =0 |
Returns the objects angle in degrees. 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 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 | getMaxSpeed () const =0 |
Returns the vehicle's maximum speed. 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 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 | isStopped () const =0 |
Returns whether the vehicle is at a stop. More... | |
virtual bool | isVehicle () const =0 |
Get the vehicle's ID. More... | |
virtual | ~SUMOTrafficObject () |
Destructor. More... | |
Representation of a vehicle or person.
Definition at line 47 of file SUMOTrafficObject.h.
|
inlinevirtual |
Destructor.
Definition at line 50 of file SUMOTrafficObject.h.
|
pure virtual |
Returns the vehicle's acceleration.
Implemented in MSVehicle, MSTransportable, and MSBaseVehicle.
Referenced by MSE2Collector::makeMoveNotification(), MSDevice_Battery::notifyMove(), MSDevice_Emissions::notifyMove(), MSDevice_Emissions::notifyMoveInternal(), MSMeanData_Harmonoise::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), MSEmissionExport::write(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().
|
pure virtual |
Returns the objects angle in degrees.
Implemented in SUMOVehicle, MSVehicle, MSTransportable, MEVehicle, GUIMEVehicle, GUIVehicle, and GUIContainer.
Referenced by PolygonDynamics::initTrackedPosition(), and PolygonDynamics::update().
|
pure virtual |
Get the vehicle's back position along the given lane.
Implemented in MSVehicle, MEVehicle, and MSTransportable.
Referenced by MSE2Collector::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), and MSInductLoop::notifyEnter().
|
pure virtual |
Implemented in MSTransportable, and MSBaseVehicle.
Referenced by MSDevice_Tripinfo::generateOutput(), MSLane::getVehicleMaxSpeed(), MSRoutingEngine::initRouter(), MSEdge::insertVehicle(), and MSVehicleControl::vehicleDeparted().
|
pure virtual |
Returns the edge the vehicle is currently at.
Implemented in MSTransportable, and MSBaseVehicle.
Referenced by MSDevice_Vehroutes::addRoute(), MSInsertionControl::checkCandidates(), MSDevice_SSM::findFoeConflictLane(), MSDevice_Tripinfo::generateOutput(), MSVehicleControl::getVehicleMeanSpeeds(), MSDevice_Bluelight::notifyEnter(), MSDevice_Example::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_Transportable::notifyMove(), MSDevice_Tripinfo::notifyMoveInternal(), MSTriggeredRerouter::rerouteParkingArea(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSInsertionControl::tryInsert(), MSFCDExport::write(), and MSEmissionExport::write().
|
pure virtual |
Get the vehicle's ID.
Implemented in MSTransportable, and MSBaseVehicle.
Referenced by MSChargingStation::addChargeValueForOutput(), MSDevice_ToC::awarenessRecoveryStep(), MSLink::blockedByFoe(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_BTreceiver::buildVehicleDevices(), MSDevice_BTsender::buildVehicleDevices(), MSDevice_DriverState::buildVehicleDevices(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_FCD::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), MSDevice_ToC::buildVehicleDevices(), MSDevice_Tripinfo::buildVehicleDevices(), MSDevice_Transportable::buildVehicleDevices(), MSDevice_Vehroutes::buildVehicleDevices(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSDevice_ToC::checkDynamicToC(), MSInductLoop::collectVehiclesOnDet(), MSDevice_ToC::deactivateDeliberateLCs(), MSVehicleControl::deleteVehicle(), MSE3Collector::detectorUpdate(), MSE3Collector::enter(), MSVTypeProbe::execute(), MSDevice_Tripinfo::generateOutput(), MSDevice::getBoolParam(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSParkingArea::getLastFreePosWithReservation(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), MSDevice_ToC::getParameter(), MSDevice::getStringParam(), libsumo::Person::getVehicle(), PolygonDynamics::initTrackedPosition(), MSEdge::insertVehicle(), MSTransportable::Stage_Driving::isWaitingFor(), MSE3Collector::leave(), MSInductLoop::leaveDetectorByMove(), MSE3Collector::leaveFront(), MSE2Collector::makeMoveNotification(), MSE2Collector::makeVehicleInfo(), MSDevice_ToC::MRMExecutionStep(), MSDevice_ToC::MSDevice_ToC(), MSE2Collector::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSE2Collector::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_Example::notifyMove(), MSE2Collector::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSLink::opened(), PolygonDynamics::PolygonDynamics(), MSLink::removeApproaching(), MSDevice_SSM::requestsTrajectories(), MSDevice_ToC::requestToC(), MSRailSignal::LinkInfo::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSDevice_ToC::resetDeliberateLCs(), MSLink::setApproaching(), MSTransportable::Stage_Trip::setArrived(), MSTransportable::Stage_Driving::setVehicle(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), MSDevice_ToC::switchHolderType(), MSDevice_ToC::ToCPreparationStep(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSDevice_ToC::triggerUpwardToC(), PolygonDynamics::update(), MSDevice_SSM::useGeoCoords(), libsumo::Helper::VehicleStateListener::vehicleStateChanged(), TraCIServer::vehicleStateChanged(), MSDynamicShapeUpdater::vehicleStateChanged(), MSInstantInductLoop::write(), MSFCDExport::write(), MSEmissionExport::write(), MSDevice_ToC::writeOutput(), MSDevice_Vehroutes::writeOutput(), MSAmitranTrajectories::writeVehicle(), MSFullExport::writeVehicles(), and MSDevice_Transportable::~MSDevice_Transportable().
|
pure virtual |
Returns the vehicle's maximum speed.
Implemented in MSTransportable, and MSBaseVehicle.
Referenced by MSLane::getVehicleMaxSpeed().
|
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 MSTransportable, MSVehicle, MEVehicle, GUIMEVehicle, and GUIVehicle.
Referenced by MSVTypeProbe::execute(), PolygonDynamics::initTrackedPosition(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), PolygonDynamics::update(), MSFCDExport::write(), MSEmissionExport::write(), and MSFullExport::writeVehicles().
|
pure virtual |
Get the vehicle's position along the lane.
Implemented in MSVehicle, MSTransportable, and MEVehicle.
Referenced by MSVTypeProbe::execute(), MSDevice_Tripinfo::generateOutput(), MSBaseVehicle::getOdometer(), MSE2Collector::makeVehicleInfo(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSInductLoop::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Battery::notifyMove(), MSDevice_ToC::notifyMove(), MSBaseVehicle::onDepart(), MSDevice_ToC::requestToC(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSStopOut::stopEnded(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSDevice_ToC::triggerUpwardToC(), MSFCDExport::write(), MSEmissionExport::write(), MSXMLRawOut::writeVehicle(), and MSFullExport::writeVehicles().
|
pure virtual |
Returns the vehicle's previous speed.
Implemented in MSVehicle, MSTransportable, and MSBaseVehicle.
Referenced by MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSInductLoop::notifyMove(), MSInstantInductLoop::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), and MSE3Collector::MSE3EntryReminder::notifyMove().
|
pure virtual |
Returns the slope of the road at vehicle's position.
Implemented in MSVehicle, MSTransportable, MSBaseVehicle, and MEVehicle.
Referenced by MSDevice_Battery::notifyMove(), MSDevice_Emissions::notifyMove(), MSDevice_Emissions::notifyMoveInternal(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), MSFCDExport::write(), MSEmissionExport::write(), and MSFullExport::writeVehicles().
|
pure virtual |
Returns the vehicle's current speed.
Implemented in MSVehicle, MSTransportable, MEVehicle, GUIPerson, and GUIContainer.
Referenced by MSChargingStation::addChargeValueForOutput(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSInductLoop::collectVehiclesOnDet(), MSE3Collector::detectorUpdate(), GUIBaseVehicle::drawOnPos(), MSE3Collector::enter(), MSVTypeProbe::execute(), MSVehicle::Influencer::gapControlSpeed(), MSVehicleControl::getHaltingVehicleNo(), MSCFModel_CC::getRadarMeasurements(), MSVehicleControl::getVehicleMeanSpeeds(), MSE3Collector::leave(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSInstantInductLoop::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSLink::setApproaching(), MSFCDExport::write(), MSEmissionExport::write(), MSXMLRawOut::writeVehicle(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().
|
pure virtual |
Returns the vehicle's access class.
Implemented in MSTransportable, and MSBaseVehicle.
Referenced by MSLane::getVehicleMaxSpeed(), MSRoutingEngine::initRouter(), MSEdge::prohibits(), MSTransportable::Stage_Driving::setVehicle(), and MSVehicleControl::vehicleDeparted().
|
pure virtual |
Returns the vehicle's type.
Implemented in MSTransportable, and MSBaseVehicle.
Referenced by MSChargingStation::addChargeValueForOutput(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSTransportableControl::boardAnyWaiting(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSInductLoop::collectVehiclesOnDet(), MSVTypeProbe::execute(), MSStoppingPlace::fits(), MSDevice_Tripinfo::generateOutput(), MSDevice::getBoolParam(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSParkingArea::getLastFreePos(), MSStoppingPlace::getLastFreePos(), MSParkingArea::getLastFreePosWithReservation(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), libsumo::Person::getStage(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSEdge::insertVehicle(), MSInductLoop::leaveDetectorByMove(), MSTransportableControl::loadAnyWaiting(), MSE2Collector::makeVehicleInfo(), MSDevice_ToC::MSDevice_ToC(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSDevice_Bluelight::notifyMove(), MSDevice_Emissions::notifyMove(), MSE2Collector::notifyMove(), MSInductLoop::notifyMove(), MSInstantInductLoop::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSDevice_Emissions::notifyMoveInternal(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Harmonoise::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), MSDevice_SSM::requestsTrajectories(), MSLink::setApproaching(), MSStopOut::stopEnded(), MSLane::succLinkSec(), MSDevice_SSM::useGeoCoords(), MSDetectorFileOutput::vehicleApplies(), MSTriggeredRerouter::vehicleApplies(), MSVehicleControl::vehicleDeparted(), MSInstantInductLoop::write(), MSFCDExport::write(), MSEmissionExport::write(), MSDevice_Vehroutes::writeOutput(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().
|
pure virtual |
Implemented in MSVehicle, MSTransportable, and MEVehicle.
Referenced by MSBaseVehicle::getImpatience(), MSTriggeredRerouter::notifyEnter(), and MSDevice_Tripinfo::notifyMoveInternal().
|
pure virtual |
Returns whether this vehicle has arrived.
Implemented in MSVehicle, MSTransportable, MSBaseVehicle, and MEVehicle.
Referenced by MSMeanData::MeanDataValues::notifyMove().
|
pure virtual |
Returns whether the vehicle is at a stop.
Implemented in MSVehicle, MSTransportable, and MEVehicle.
Referenced by MSVehicleControl::getVehicleMeanSpeeds(), MSDevice_Transportable::notifyMove(), MSDevice_Tripinfo::notifyMove(), and MSDevice_Transportable::removeTransportable().
|
pure virtual |
Get the vehicle's ID.
Implemented in MSTransportable, and MSBaseVehicle.
Referenced by MSE2Collector::notifyEnter(), MSDevice_SSM::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_SSM::notifyLeave(), MSE2Collector::notifyLeave(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), MSDevice_Battery::notifyMove(), MSDevice_Example::notifyMove(), MSE2Collector::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and MSDetectorFileOutput::vehicleApplies().