88 virtual const std::string&
getID()
const = 0;
109 virtual double getAngle()
const = 0;
128 virtual double getSpeed()
const = 0;
171 virtual bool replaceRoute(
const MSRoute* route,
bool onInit =
false,
int offset = 0,
bool addStops =
true) = 0;
205 virtual double getSlope()
const = 0;
283 virtual const std::vector<MSDevice*>&
getDevices()
const = 0;
A lane area vehicles can halt at.
virtual bool replaceRouteEdges(ConstMSEdgeVector &edges, bool onInit=false, bool check=false, bool addStops=true)=0
Replaces the current route by the given edges.
virtual bool replaceRoute(const MSRoute *route, bool onInit=false, int offset=0, bool addStops=true)=0
Replaces the current route by the given one.
virtual bool hasDeparted() const =0
Returns whether this vehicle has departed.
virtual double getArrivalPos() const =0
Returns this vehicle's desired arrivalPos for its current route (may change on reroute) ...
virtual MSParkingArea * getNextParkingArea()=0
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
Function-object for stable sorting of objects acting like Named without being derived (SUMOVehicle) ...
virtual const MSRoute & getRoute() const =0
Returns the current route.
virtual bool isStoppedTriggered() const =0
Returns whether the vehicle is at a stop and waiting for a person or container to continue...
virtual void onDepart()=0
Called when the vehicle is inserted into the network.
Named::NamedLikeComparatorIdLess< SUMOVehicle > ComparatorIdLess
virtual const MSEdge * getEdge() const =0
Returns the edge the vehicle is currently at.
virtual MSLane * getLane() const =0
Returns the lane the vehicle is on.
virtual double getSlope() const =0
Returns the slope of the road at vehicle's position.
virtual bool addStop(const SUMOVehicleParameter::Stop &stopPar, std::string &errorMsg, SUMOTime untilOffset=0, bool collision=false)=0
Adds a stop.
std::vector< const MSEdge * > ConstMSEdgeVector
virtual bool isParking() const =0
Returns the information whether the vehicle is parked.
The car-following model and parameter.
std::vector< const MSEdge * > ConstMSEdgeVector
virtual void addContainer(MSTransportable *container)=0
Adds a container to this vehicle.
virtual const MSEdge * succEdge(int nSuccs) const =0
Returns the nSuccs'th successor of edge the vehicle is currently at.
A road/street connecting two junctions.
virtual SUMOVehicleClass getVClass() const =0
Returns the vehicle's access class.
virtual const std::vector< MSDevice * > & getDevices() const =0
Returns this vehicle's devices.
virtual void setChosenSpeedFactor(const double factor)=0
virtual void saveState(OutputDevice &out)=0
Saves the states of a vehicle.
Representation of a vehicle.
Encapsulated SAX-Attributes.
virtual int getNumberReroutes() const =0
Returns the number of new routes this vehicle got.
virtual bool hasValidRoute(std::string &msg, const MSRoute *route=0) const =0
Validates the current or given route.
A point in 2D or 3D with translation and scaling methods.
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.
virtual bool isFrontOnLane(const MSLane *) const =0
Returns the information whether the front of the vehhicle is on the given lane.
virtual bool isRemoteControlled() const =0
Returns the information whether the vehicle is fully controlled via TraCI.
virtual bool isOnRoad() const =0
Returns the information whether the vehicle is on a road (is simulated)
virtual double getChosenSpeedFactor() const =0
virtual double getMaxSpeed() const =0
Returns the vehicle's maximum speed.
Abstract in-vehicle device.
virtual double getBackPositionOnLane(const MSLane *lane) const =0
Get the vehicle's back position along the given lane.
virtual double getDepartPos() const =0
Returns this vehicle's real departure position.
virtual SUMOTime getDepartDelay() const =0
Structure representing possible vehicle parameter.
virtual double getAngle() const =0
Get the vehicle's angle.
virtual SUMOTime getDeparture() const =0
Returns this vehicle's real departure time.
virtual bool hasArrived() const =0
Returns whether this vehicle has arrived.
virtual double getPositionOnLane() const =0
Get the vehicle's position along the lane.
virtual const SUMOVehicleParameter & getParameter() const =0
Returns the vehicle's parameter (including departure definition)
Definition of vehicle stop (position and duration)
virtual double getLateralPositionOnLane() const =0
Get the vehicle's lateral position on the lane.
virtual Position getPosition(const double offset=0) const =0
Return current position (x/y, cartesian)
virtual SUMOTime getWaitingTime() const =0
virtual void addPerson(MSTransportable *person)=0
Adds a person to this vehicle.
virtual double getImpatience() const =0
Returns this vehicles impatience.
virtual void setArrivalPos(double arrivalPos)=0
Sets this vehicle's desired arrivalPos for its current route.
virtual bool isStopped() const =0
Returns whether the vehicle is at a stop.
Static storage of an output device and its base (abstract) implementation.
virtual MSDevice * getDevice(const std::type_info &type) const =0
Returns a device of the given type if it exists or 0.
virtual bool replaceParkingArea(MSParkingArea *parkingArea, std::string &errorMsg)=0
Replaces a stop.
virtual const ConstMSEdgeVector::const_iterator & getCurrentRouteEdge() const =0
Returns an iterator pointing to the current edge in this vehicles route.
virtual double getSpeed() const =0
Returns the vehicle's current speed.
Representation of a lane in the micro simulation.
virtual double getPreviousSpeed() const =0
Returns the vehicle's previous speed.
virtual ~SUMOVehicle()
Destructor.
virtual const std::string & getID() const =0
Get the vehicle's ID.
virtual void loadState(const SUMOSAXAttributes &attrs, const SUMOTime offset)=0
Loads the state of this vehicle from the given description.
virtual double getAcceleration() const =0
Returns the vehicle's acceleration.
virtual const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.