Eclipse SUMO - Simulation of Urban MObility
SUMOTrafficObject Class Referenceabstract

Representation of a vehicle or person. More...

#include <SUMOTrafficObject.h>

Inheritance diagram for SUMOTrafficObject:
Collaboration diagram for SUMOTrafficObject:

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 MSEdgegetEdge () 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 MSVehicleTypegetVehicleType () 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...
 

Detailed Description

Representation of a vehicle or person.

Definition at line 47 of file SUMOTrafficObject.h.

Constructor & Destructor Documentation

◆ ~SUMOTrafficObject()

virtual SUMOTrafficObject::~SUMOTrafficObject ( )
inlinevirtual

Destructor.

Definition at line 50 of file SUMOTrafficObject.h.

Member Function Documentation

◆ getAcceleration()

◆ getAngle()

virtual double SUMOTrafficObject::getAngle ( ) const
pure virtual

Returns the objects angle in degrees.

Implemented in SUMOVehicle, MSVehicle, MSTransportable, GUIContainer, GUIMEVehicle, GUIVehicle, and MEVehicle.

Referenced by PolygonDynamics::initTrackedPosition(), and PolygonDynamics::update().

◆ getBackPositionOnLane()

virtual double SUMOTrafficObject::getBackPositionOnLane ( const MSLane lane) const
pure virtual

Get the vehicle's back position along the given lane.

Returns
The position of the vehicle (in m from the given lane's begin)

Implemented in MSVehicle, MEVehicle, and MSTransportable.

Referenced by MSE3Collector::MSE3EntryReminder::notifyEnter(), MSInductLoop::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), and MSE2Collector::notifyEnter().

◆ getChosenSpeedFactor()

virtual double SUMOTrafficObject::getChosenSpeedFactor ( ) const
pure virtual

◆ getEdge()

◆ getID()

virtual const std::string& SUMOTrafficObject::getID ( ) const
pure virtual

Get the vehicle's ID.

Returns
The the ID of the vehicle

Implemented in MSTransportable, and MSBaseVehicle.

Referenced by MSChargingStation::addChargeValueForOutput(), MSDevice_ToC::awarenessRecoveryStep(), MSLink::blockedByFoe(), MSDevice_Transportable::buildVehicleDevices(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Tripinfo::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_FCD::buildVehicleDevices(), MSDevice_BTreceiver::buildVehicleDevices(), MSDevice_BTsender::buildVehicleDevices(), MSDevice_Vehroutes::buildVehicleDevices(), MSDevice_DriverState::buildVehicleDevices(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSDevice_ToC::buildVehicleDevices(), MSDevice_SSM::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(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSE2Collector::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_Example::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::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(), MSDynamicShapeUpdater::vehicleStateChanged(), TraCIServer::vehicleStateChanged(), libsumo::Helper::VehicleStateListener::vehicleStateChanged(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSDevice_Vehroutes::writeOutput(), MSDevice_ToC::writeOutput(), MSAmitranTrajectories::writeVehicle(), MSFullExport::writeVehicles(), and MSDevice_Transportable::~MSDevice_Transportable().

◆ getMaxSpeed()

virtual double SUMOTrafficObject::getMaxSpeed ( ) const
pure virtual

Returns the vehicle's maximum speed.

Returns
The vehicle's maximum speed

Implemented in MSTransportable, and MSBaseVehicle.

Referenced by MSLane::getVehicleMaxSpeed().

◆ getPosition()

virtual Position SUMOTrafficObject::getPosition ( const double  offset = 0) const
pure virtual

◆ getPositionOnLane()

◆ getPreviousSpeed()

virtual double SUMOTrafficObject::getPreviousSpeed ( ) const
pure virtual

◆ getSlope()

virtual double SUMOTrafficObject::getSlope ( ) const
pure virtual

◆ getSpeed()

◆ getVClass()

virtual SUMOVehicleClass SUMOTrafficObject::getVClass ( ) const
pure virtual

Returns the vehicle's access class.

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

◆ getVehicleType()

virtual const MSVehicleType& SUMOTrafficObject::getVehicleType ( ) const
pure virtual

Returns the vehicle's type.

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(), MSStoppingPlace::getLastFreePos(), MSParkingArea::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(), MSE3Collector::MSE3EntryReminder::notifyEnter(), 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(), MSDevice_Emissions::notifyMoveInternal(), MSMeanData_Amitran::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSDevice_SSM::requestsTrajectories(), MSLink::setApproaching(), MSStopOut::stopEnded(), MSLane::succLinkSec(), MSDevice_SSM::useGeoCoords(), MSDetectorFileOutput::vehicleApplies(), MSTriggeredRerouter::vehicleApplies(), MSVehicleControl::vehicleDeparted(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSDevice_Vehroutes::writeOutput(), MSAmitranTrajectories::writeVehicle(), and MSFullExport::writeVehicles().

◆ getWaitingTime()

virtual SUMOTime SUMOTrafficObject::getWaitingTime ( ) const
pure virtual

◆ hasArrived()

virtual bool SUMOTrafficObject::hasArrived ( ) const
pure virtual

Returns whether this vehicle has arrived.

Implemented in MSTransportable, MSBaseVehicle, MSVehicle, and MEVehicle.

Referenced by MSMeanData::MeanDataValues::notifyMove().

◆ isStopped()

virtual bool SUMOTrafficObject::isStopped ( ) const
pure virtual

Returns whether the vehicle is at a stop.

Returns
Whether the has stopped

Implemented in MSVehicle, MSTransportable, and MEVehicle.

Referenced by MSVehicleControl::getVehicleMeanSpeeds(), MSDevice_Transportable::notifyMove(), MSDevice_Tripinfo::notifyMove(), and MSDevice_Transportable::removeTransportable().

◆ isVehicle()


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