73 virtual const std::string&
getID()
const = 0;
210 virtual const std::vector<MSDevice*>&
getDevices()
const = 0;
virtual bool hasDeparted() const =0
Returns whether this vehicle has departed.
virtual void addPerson(MSPerson *person)=0
Adds a person to this vehicle.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
virtual const MSRoute & getRoute() const =0
Returns the current route.
virtual const MSEdge * succEdge(unsigned int nSuccs) const =0
Returns the nSuccs'th successor of edge the vehicle is currently at.
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.
virtual SUMOReal getPositionOnLane() const =0
Get the vehicle's position along the lane.
virtual const MSEdge * getEdge() const =0
Returns the edge the vehicle is currently at.
virtual SUMOReal getAngle() const =0
Get the vehicle's angle.
virtual SUMOReal getMaxSpeed() const =0
Returns the vehicle's maximum speed.
std::vector< const MSEdge * > ConstMSEdgeVector
The car-following model and parameter.
virtual bool addStop(const SUMOVehicleParameter::Stop &stopPar, std::string &errorMsg, SUMOTime untilOffset=0)=0
Adds a stop.
std::vector< const MSEdge * > ConstMSEdgeVector
virtual SUMOReal getChosenSpeedFactor() const =0
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 SUMOReal factor)=0
virtual void saveState(OutputDevice &out)=0
Saves the states of a vehicle.
Representation of a vehicle.
Encapsulated SAX-Attributes.
A point in 2D or 3D with translation and scaling methods.
virtual SUMOReal getImpatience() const =0
Returns this vehicles impatience.
virtual void addContainer(MSContainer *container)=0
Adds a container to this vehicle.
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 isOnRoad() const =0
Returns the information whether the vehicle is on a road (is simulated)
Abstract in-vehicle device.
virtual SUMOReal getSpeed() const =0
Returns the vehicle's current speed.
Structure representing possible vehicle parameter.
virtual SUMOTime getDeparture() const =0
Returns this vehicle's real departure time.
virtual bool hasArrived() const =0
Returns whether this vehicle has arrived.
virtual const SUMOVehicleParameter & getParameter() const =0
Returns the vehicle's parameter (including departure definition)
Definition of vehicle stop (position and duration)
virtual SUMOReal getAcceleration() const =0
Returns the vehicle's acceleration.
virtual bool replaceRoute(const MSRoute *route, bool onInit=false, int offset=0)=0
Replaces the current route by the given one.
virtual Position getPosition(const SUMOReal offset=0) const =0
Return current position (x/y, cartesian)
virtual bool replaceRouteEdges(ConstMSEdgeVector &edges, bool onInit=false)=0
Replaces the current route by the given edges.
virtual SUMOTime getWaitingTime() const =0
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 SUMOReal getSlope() const =0
Returns the slope of the road at vehicle's position.
virtual const ConstMSEdgeVector::const_iterator & getCurrentRouteEdge() const =0
Returns an iterator pointing to the current edge in this vehicles route.
virtual SUMOReal getArrivalPos() const =0
Returns this vehicle's desired arrivalPos for its current route (may change on reroute) ...
Representation of a lane in the micro simulation.
virtual unsigned int getNumberReroutes() const =0
Returns the number of new routes this vehicle got.
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 const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.