|
| virtual void | activateReminders (const MSMoveReminder::Notification reason, const MSLane *enteredLane=0) |
| | "Activates" all current move reminder
|
| |
| void | addReminder (MSMoveReminder *rem, double pos=0) |
| | Adds a MoveReminder dynamically.
|
| |
| void | addTo (const StoringVisitor &cont) const |
| | Adds this object to the given container.
|
| |
| void | addToOdometer (double value) |
| | Manipulate the odometer.
|
| |
| virtual void | addTransportable (MSTransportable *transportable) |
| | Adds a person or container to this vehicle.
|
| |
| bool | allowsBoarding (const MSTransportable *t) const |
| | whether the given transportable is allowed to board this vehicle
|
| |
| void | createDevice (const std::string &deviceName) |
| | create device of the given type
|
| |
| virtual std::pair< double, double > | estimateTimeToNextStop () const |
| | return time (s) and distance to the next stop
|
| |
| virtual double | getAcceleration () const |
| | Returns the vehicle's acceleration.
|
| |
| virtual double | getAngle () const =0 |
| | Get the vehicle's angle.
|
| |
| int | getArrivalIndex () const |
| |
| virtual int | getArrivalLane () const |
| |
| virtual double | getArrivalPos () const |
| | Returns this vehicle's desired arrivalPos for its current route (may change on reroute)
|
| |
| virtual const MSLane * | getBackLane () const =0 |
| | Returns the lane the where the rear of the object is currently at.
|
| |
| virtual double | getBackPositionOnLane (const MSLane *lane) const =0 |
| | Get the object's back position along the given lane.
|
| |
| virtual PositionVector | getBoundingBox (double offset=0) const =0 |
| | get bounding rectangle
|
| |
| virtual double | getBrakeGap (bool delayed=false) const =0 |
| | get distance for coming to a stop (used for rerouting checks)
|
| |
| double | getChosenSpeedFactor () const |
| | Returns the precomputed factor by which the driver wants to be faster than the speed limit.
|
| |
| int | getContainerNumber () const |
| | Returns the number of containers.
|
| |
| const std::vector< MSTransportable * > & | getContainers () const |
| | retrieve riding containers
|
| |
| virtual const MSEdge * | getCurrentEdge () const |
| | Returns the edge the vehicle is currently at (possibly an internal edge)
|
| |
| const MSRouteIterator & | getCurrentRouteEdge () const |
| | Returns an iterator pointing to the current edge in this vehicles route.
|
| |
| SUMOTime | getDepartDelay () const |
| | Returns the depart delay.
|
| |
| double | getDepartPos () const |
| | Returns this vehicle's real departure position.
|
| |
| SUMOTime | getDeparture () const |
| | Returns this vehicle's real departure time.
|
| |
| double | getDesiredMaxSpeed () const |
| |
| MSDevice * | getDevice (const std::type_info &type) const |
| | Returns a device of the given type if it exists, nullptr otherwise.
|
| |
| std::string | getDeviceParameter (const std::string &deviceName, const std::string &key) const |
| | try to retrieve the given parameter from any of the vehicles devices, raise InvalidArgument if no device parameter by that name exists
|
| |
| const std::vector< MSVehicleDevice * > & | getDevices () const |
| | Returns this vehicle's devices.
|
| |
| const MSEdge * | getEdge () const |
| | Returns the edge the vehicle is currently at.
|
| |
| const std::string & | getID () const |
| | Returns the id.
|
| |
| double | getImpatience () const |
| | Returns this vehicles impatience.
|
| |
| virtual const MSLane * | getLane () const =0 |
| | Returns the lane the object is currently at.
|
| |
| virtual SUMOTime | getLastActionTime () const =0 |
| |
| virtual double | getLateralPositionOnLane () const |
| | Get the vehicle's lateral position on the lane.
|
| |
| int | getLeavingPersonNumber () const |
| | Returns the number of leaving persons.
|
| |
| double | getLength () const |
| | Returns the vehicle's length.
|
| |
| double | getMaxSpeed () const |
| | Returns the maximum speed (the minimum of desired and technical maximum speed)
|
| |
| virtual const MSEdge * | getNextEdgePtr () const |
| | returns the next edge (possibly an internal edge)
|
| |
| int | getNumberReroutes () const |
| | Returns the number of new routes this vehicle got.
|
| |
| int | getNumRemainingEdges () const |
| | return the number of edges remaining in the route (include the current)
|
| |
| double | getOdometer () const |
| | Returns the distance that was already driven by this vehicle.
|
| |
| const SUMOVehicleParameter & | getParameter () const |
| | Returns the vehicle's parameter (including departure definition)
|
| |
| std::vector< std::string > | getPersonIDList () const |
| | Returns the list of persons.
|
| |
| int | getPersonNumber () const |
| | Returns the number of persons.
|
| |
| const std::vector< MSTransportable * > & | getPersons () const |
| | retrieve riding persons
|
| |
| virtual Position | getPosition (const double offset=0) const =0 |
| | Return current position (x/y, cartesian)
|
| |
| virtual double | getPositionOnLane () const =0 |
| | Get the object's position along the lane.
|
| |
| std::string | getPrefixedParameter (const std::string &key, std::string &error) const |
| | retrieve parameters of devices, models and the vehicle itself
|
| |
| double | getPreviousSpeed () const |
| | Returns the vehicle's previous speed.
|
| |
| virtual const MSEdge * | getRerouteDestination () const |
| | Returns the end point for reroutes (usually the last edge of the route)
|
| |
| virtual ConstMSEdgeVector::const_iterator | getRerouteOrigin () const |
| | Returns the starting point for reroutes (usually the current edge)
|
| |
| virtual double | getRightSideOnEdge (const MSLane *lane=0) const |
| | Get the vehicle's lateral position on the edge of the given lane (or its current edge if lane == 0)
|
| |
| const MSRoute & | getRoute () const |
| | Returns the current route.
|
| |
| int | getRoutePosition () const |
| | return index of edge within route
|
| |
| ConstMSRoutePtr | getRoutePtr () const |
| | Returns the current route.
|
| |
| int | getRouteValidity (bool update=true, bool silent=false, std::string *msgReturn=nullptr) |
| | check for route validity at first insertion attempt
|
| |
| MSVehicleType & | getSingularType () |
| | Replaces the current vehicle type with a new one used by this vehicle only.
|
| |
| virtual double | getSlope () const =0 |
| | Returns the slope of the road at object's position in degrees.
|
| |
| virtual double | getSpeed () const =0 |
| | Returns the object's current speed.
|
| |
| virtual double | getStopArrivalDelay () const |
| | Returns the estimated public transport stop arrival delay in seconds.
|
| |
| virtual double | getStopDelay () const |
| | Returns the estimated public transport stop (departure) delay in seconds.
|
| |
| virtual SUMOTime | getTimeLoss () const =0 |
| |
| virtual double | getTimeLossSeconds () const |
| | Returns the time loss in seconds.
|
| |
| const std::set< SUMOTrafficObject::NumericalID > | getUpcomingEdgeIDs () const |
| | returns the numerical ids of edges to travel
|
| |
| SUMOVehicleClass | getVClass () const |
| | Returns the vehicle's access class.
|
| |
| const MSVehicleType & | getVehicleType () const |
| | Returns the vehicle's type definition.
|
| |
| const SUMOVTypeParameter & | getVTypeParameter () const |
| | Returns the vehicle's type parameter.
|
| |
| double | getWaitingSeconds () const |
| | Returns the number of seconds waited (speed was lesser than 0.1m/s)
|
| |
| virtual SUMOTime | getWaitingTime (const bool accumulated=false) const =0 |
| |
| double | getWidth () const |
| | Returns the vehicle's width.
|
| |
| virtual bool | hasArrived () const |
| | Returns whether this vehicle has already arived (by default this is true if the vehicle has reached its final edge)
|
| |
| bool | hasDeparted () const |
| | Returns whether this vehicle has already departed.
|
| |
| bool | hasDevice (const std::string &deviceName) const |
| | check whether the vehicle is equiped with a device of the given name
|
| |
| bool | hasJump (const MSRouteIterator &it) const |
| | check wether the vehicle has jump at the given part of its route
|
| |
| bool | hasReminder (MSMoveReminder *rem) const |
| | Checks whether the vehilce has the given MoveReminder.
|
| |
| bool | hasValidRoute (std::string &msg, ConstMSRoutePtr route=0) const |
| | Validates the current or given route.
|
| |
| bool | hasValidRoute (std::string &msg, MSRouteIterator start, MSRouteIterator last, bool checkJumps) const |
| |
| virtual bool | hasValidRouteStart (std::string &msg) |
| | checks wether the vehicle can depart on the first edge
|
| |
| bool | ignoreTransientPermissions () const |
| | Returns whether this object is ignoring transient permission changes (during routing)
|
| |
| virtual void | initDevices () |
| |
| virtual bool | isContainer () const |
| | Whether it is a container.
|
| |
| virtual bool | isFrontOnLane (const MSLane *) const |
| | Returns the information whether the front of the vehhicle is on the given lane.
|
| |
| virtual bool | isIdling () const =0 |
| | Returns whether the vehicle is idling (waiting to re-enter the net.
|
| |
| bool | isLineStop (double position) const |
| | returns whether the vehicle serves a public transport line that serves the given stop
|
| |
| virtual bool | isOnRoad () const |
| | Returns the information whether the vehicle is on a road (is simulated)
|
| |
| virtual bool | isPerson () const |
| | Whether it is a person.
|
| |
| bool | isRail () const |
| |
| virtual bool | isRemoteControlled () const |
| | Returns the information whether the vehicle is fully controlled via TraCI.
|
| |
| bool | isVehicle () const |
| | Whether it is a vehicle.
|
| |
| | MSBaseVehicle (SUMOVehicleParameter *pars, ConstMSRoutePtr route, MSVehicleType *type, const double speedFactor) |
| | Constructor.
|
| |
| void | onDepart () |
| | Called when the vehicle is inserted into the network.
|
| |
| virtual void | onRemovalFromNet (const MSMoveReminder::Notification) |
| | Called when the vehicle is removed from the network.
|
| |
| virtual SUMOTime | remainingStopDuration () const =0 |
| | Returns the remaining stop duration for a stopped vehicle or 0.
|
| |
| void | removeReminder (MSMoveReminder *rem) |
| | Removes a MoveReminder dynamically.
|
| |
| void | removeTransportable (MSTransportable *t) |
| | removes a person or container
|
| |
| void | removeTransportableMass (MSTransportable *t) |
| | removes a person or containers mass
|
| |
| void | replaceParameter (const SUMOVehicleParameter *newParameter) |
| | replace the vehicle parameter (deleting the old one)
|
| |
| virtual bool | replaceRoute (ConstMSRoutePtr route, const std::string &info, bool onInit=false, int offset=0, bool addRouteStops=true, bool removeStops=true, std::string *msgReturn=nullptr) |
| | Replaces the current route by the given one.
|
| |
| bool | replaceRouteEdges (ConstMSEdgeVector &edges, double cost, double savings, const std::string &info, bool onInit=false, bool check=false, bool removeStops=true, std::string *msgReturn=nullptr) |
| | Replaces the current route by the given edges.
|
| |
| virtual void | replaceVehicleType (const MSVehicleType *type) |
| | Replaces the current vehicle type by the one given.
|
| |
| bool | reroute (SUMOTime t, const std::string &info, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, const bool onInit=false, const bool withTaz=false, const bool silent=false, const MSEdge *sink=nullptr) |
| | Performs a rerouting using the given router.
|
| |
| void | resetRoutePosition (int index, DepartLaneDefinition departLaneProcedure) |
| | reset index of edge within route
|
| |
| virtual void | setArrivalPos (double arrivalPos) |
| | Sets this vehicle's desired arrivalPos for its current route.
|
| |
| void | setCarFollowModelParameter (const std::string &key, const std::string &value) |
| | set individual carFollow model parameters (not type related)
|
| |
| void | setChosenSpeedFactor (const double factor) |
| | Returns the precomputed factor by which the driver wants to be faster than the speed limit.
|
| |
| void | setDeviceParameter (const std::string &deviceName, const std::string &key, const std::string &value) |
| | try to set the given parameter from any of the vehicles devices, raise InvalidArgument if no device parameter by that name exists
|
| |
| void | setID (const std::string &newID) |
| | set the id (inherited from Named but forbidden for vehicles)
|
| |
| void | setJunctionModelParameter (const std::string &key, const std::string &value) |
| | set individual junction model paramete (not type related)
|
| |
| bool | stopsAt (MSStoppingPlace *stop) const |
| | Returns whether the vehicle stops at the given stopping place.
|
| |
| bool | stopsAtEdge (const MSEdge *edge) const |
| | Returns whether the vehicle stops at the given edge.
|
| |
| const MSEdge * | succEdge (int nSuccs) const |
| | Returns the nSuccs'th successor of edge the vehicle is currently at.
|
| |
| virtual bool | wasRemoteControlled (SUMOTime lookBack=DELTA_T) const |
| | Returns the information whether the vehicle is fully controlled via TraCI.
|
| |
| virtual | ~MSBaseVehicle () |
| | Destructor.
|
| |
|
| virtual void | loadState (const SUMOSAXAttributes &attrs, const SUMOTime offset)=0 |
| | Loads the state of this vehicle from the given description.
|
| |
|
| std::string | getStringParam (const std::string ¶mName, const bool required=false, const std::string &deflt="") const |
| | Retrieve a string parameter for the traffic object.
|
| |
| double | getFloatParam (const std::string ¶mName, const bool required=false, const double deflt=INVALID_DOUBLE, bool checkDist=true) const |
| | Retrieve a floating point parameter for the traffic object.
|
| |
| bool | getBoolParam (const std::string ¶mName, const bool required=false, const bool deflt=false) const |
| | Retrieve a boolean parameter for the traffic object.
|
| |
| SUMOTime | getTimeParam (const std::string ¶mName, const bool required=false, const SUMOTime deflt=SUMOTime_MIN) const |
| | Retrieve a time parameter for the traffic object.
|
| |
|
| const SUMOVehicleParameter * | myParameter |
| | This vehicle's parameter.
|
| |
| ConstMSRoutePtr | myRoute |
| | This vehicle's route.
|
| |
| const MSVehicleType * | myType |
| | This vehicle's type.
|
| |
| MSRouteIterator | myCurrEdge |
| | Iterator to current route-edge.
|
| |
| double | myChosenSpeedFactor |
| | A precomputed factor by which the driver wants to be faster than the speed limit.
|
| |
| std::list< MSStop > | myStops |
| | The vehicle's list of stops.
|
| |
| StopParVector | myPastStops |
| | The list of stops that the vehicle has already reached.
|
| |
| virtual void | saveState (OutputDevice &out) |
| | Saves the (common) state of a vehicle.
|
| |
| virtual bool | handleCollisionStop (MSStop &stop, const double distToStop) |
| |
| bool | isStopped () const |
| | Returns whether the vehicle is at a stop.
|
| |
| bool | isParking () const |
| | Returns whether the vehicle is parking.
|
| |
| bool | isJumping () const |
| | Returns whether the vehicle is perform a jump.
|
| |
| bool | isReversed () const |
| | Returns whether the logical state of the vehicle is reversed - for drawing.
|
| |
| bool | isStoppedTriggered () const |
| | Returns whether the vehicle is on a triggered stop.
|
| |
| bool | isStoppedParking () const |
| | Returns whether the vehicle is on a parking stop.
|
| |
| bool | isStoppedInRange (const double pos, const double tolerance, bool checkFuture=false) const |
| | return whether the given position is within range of the current stop
|
| |
| bool | hasStops () const |
| | Returns whether the vehicle has to stop somewhere.
|
| |
| bool | replaceParkingArea (MSParkingArea *parkingArea, std::string &errorMsg) |
| | replace the current parking area stop with a new stop with merge duration
|
| |
| MSParkingArea * | getNextParkingArea () |
| | get the upcoming parking area stop or nullptr
|
| |
| MSParkingArea * | getCurrentParkingArea () |
| | get the current parking area stop or nullptr
|
| |
| const std::vector< std::string > & | getParkingBadges () const |
| | get the valid parking access rights (vehicle settings override vehicle type settings)
|
| |
| double | basePos (const MSEdge *edge) const |
| | departure position where the vehicle fits fully onto the edge (if possible)
|
| |
| bool | addStop (const SUMOVehicleParameter::Stop &stopPar, std::string &errorMsg, SUMOTime untilOffset=0, MSRouteIterator *searchStart=nullptr) |
| | Adds a stop.
|
| |
| void | addStops (const bool ignoreStopErrors, MSRouteIterator *searchStart=nullptr, bool addRouteStops=true) |
| | Adds stops to the built vehicle.
|
| |
| bool | haveValidStopEdges (bool silent=false) const |
| | check whether all stop.edge MSRouteIterators are valid and in order
|
| |
| std::vector< std::pair< int, double > > | getStopIndices () const |
| | return list of route indices for the remaining stops
|
| |
| const std::list< MSStop > & | getStops () const |
| |
| const StopParVector & | getPastStops () const |
| |
| const MSStop & | getNextStop () const |
| |
| MSStop & | getNextStopMutable () |
| |
| SUMOTime | getStopDuration () const |
| | get remaining stop duration or 0 if the vehicle isn't stopped
|
| |
| MSStop & | getStop (int nextStopIndex) |
| |
| const SUMOVehicleParameter::Stop * | getNextStopParameter () const |
| | return parameters for the next stop (SUMOVehicle Interface)
|
| |
| virtual bool | addTraciStop (SUMOVehicleParameter::Stop stop, std::string &errorMsg) |
| |
| virtual bool | resumeFromStopping ()=0 |
| |
| void | unregisterWaiting () |
| | mark vehicle as active
|
| |
| bool | abortNextStop (int nextStopIndex=0) |
| | deletes the next stop at the given index if it exists
|
| |
| bool | replaceStop (int nextStopIndex, SUMOVehicleParameter::Stop stop, const std::string &info, bool teleport, std::string &errorMsg) |
| |
| bool | rerouteBetweenStops (int nextStopIndex, const std::string &info, bool teleport, std::string &errorMsg) |
| |
| bool | insertStop (int nextStopIndex, SUMOVehicleParameter::Stop stop, const std::string &info, bool teleport, std::string &errorMsg) |
| |
| virtual bool | isSelected () const |
| | whether this vehicle is selected in the GUI
|
| |
| int | getRNGIndex () const |
| |
| SumoRNG * | getRNG () const |
| |
| NumericalID | getNumericalID () const |
| | return the numerical ID which is only for internal usage
|
| |
| const MSDevice_Transportable * | getPersonDevice () const |
| |
| const MSDevice_Transportable * | getContainerDevice () const |
| |
| EnergyParams * | getEmissionParameters () const |
| | retrieve parameters for the energy consumption model
|
| |
| void | rememberBlockedParkingArea (const MSStoppingPlace *pa, bool local) |
| |
| SUMOTime | sawBlockedParkingArea (const MSStoppingPlace *pa, bool local) const |
| |
| void | rememberBlockedChargingStation (const MSStoppingPlace *cs, bool local) |
| |
| SUMOTime | sawBlockedChargingStation (const MSStoppingPlace *cs, bool local) const |
| |
| void | rememberParkingAreaScore (const MSStoppingPlace *pa, const std::string &score) |
| | score only needed when running with gui
|
| |
| void | resetParkingAreaScores () |
| |
| void | rememberChargingStationScore (const MSStoppingPlace *cs, const std::string &score) |
| |
| void | resetChargingStationScores () |
| |
| int | getNumberParkingReroutes () const |
| |
| void | setNumberParkingReroutes (int value) |
| |
| const StoppingPlaceMemory * | getParkingMemory () const |
| |
| const StoppingPlaceMemory * | getChargingMemory () const |
| |
| virtual void | resetApproachOnReroute () |
| | reset rail signal approach information
|
| |
| std::vector< StopEdgeInfo > | getStopEdges (double &firstPos, double &lastPos, std::set< int > &jumps) const |
| | Returns the list of still pending stop edges also returns the first and last stop position.
|
| |
| ConstMSEdgeVector | optimizeSkipped (SUMOTime t, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, const MSEdge *source, double sourcePos, std::vector< StopEdgeInfo > &stops, ConstMSEdgeVector edges, SUMOTime maxDelay) const |
| |
| ConstMSEdgeVector | routeAlongStops (SUMOTime t, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, std::vector< StopEdgeInfo > &stops, ConstMSEdgeVector edges, int originStop, SUMOTime maxDelay, double &skippedPrio2) const |
| |
| static double | addStopPriority (double p1, double p2) |
| |