 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef MSMoveReminder_h
21 #define MSMoveReminder_h
209 const double frontOnLane,
210 const double timeOnLane,
211 const double meanSpeedFrontOnLane,
212 const double meanSpeedVehicleOnLane,
213 const double travelledDistanceFrontOnLane,
214 const double travelledDistanceVehicleOnLane,
215 const double meanLengthOnLane) {
245 FXMutex myNotificationMutex;
The vehicle changes lanes (micro only)
#define UNUSED_PARAMETER(x)
Representation of a vehicle or person.
const std::string & getDescription() const
Representation of a lane in the micro simulation.
virtual bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Checks whether the reminder still has to be notified about the vehicle moves.
The vehicle was teleported out of the net.
Something on a lane to be noticed about vehicle movement.
The vehicle got vaporized.
The vehicle needs another parking area.
virtual bool notifyLeave(SUMOTrafficObject &veh, double lastPos, Notification reason, const MSLane *enteredLane=0)
Called if the vehicle leaves the reminder's lane.
void updateDetector(SUMOTrafficObject &veh, double entryPos, double leavePos, SUMOTime entryTime, SUMOTime currentTime, SUMOTime leaveTime, bool cleanUp)
MSMoveReminder & operator=(const MSMoveReminder &)
void removeFromVehicleUpdateValues(SUMOTrafficObject &veh)
MSMoveReminder(const std::string &description, MSLane *const lane=0, const bool doAdd=true)
Constructor.
virtual ~MSMoveReminder()
Destructor.
std::map< SUMOTrafficObject *, std::pair< SUMOTime, double > > myLastVehicleUpdateValues
The vehicle has departed (was inserted into the network)
The vehicle changes the segment (meso only)
const MSLane * getLane() const
Returns the lane the reminder works on.
std::string myDescription
a description of this moveReminder
The vehicle starts or ends parking.
The vehicle arrived at its destination (is deleted)
void setDescription(const std::string &description)
virtual bool notifyEnter(SUMOTrafficObject &veh, Notification reason, const MSLane *enteredLane)
Checks whether the reminder is activated by a vehicle entering the lane.
virtual void notifyMoveInternal(const SUMOTrafficObject &veh, const double frontOnLane, const double timeOnLane, const double meanSpeedFrontOnLane, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane, const double meanLengthOnLane)
Internal notification about the vehicle moves.
Notification
Definition of a vehicle state.
The vehicle arrived at a junction.
The vehicle is being teleported.
MSLane *const myLane
Lane on which the reminder works.