42 myDescription(description) {
43 if (
myLane != 0 && doAdd) {
57 if (entryTime > currentTime) {
65 const SUMOTime previousEntryTime = j->second.first;
66 if (previousEntryTime <= currentTime) {
67 entryTime = previousEntryTime;
68 entryPos = j->second.second;
71 assert(entryTime <= currentTime);
72 if ((entryTime < leaveTime) && (entryPos < leavePos)) {
76 assert(timeOnLane >= 0);
void updateDetector(SUMOVehicle &veh, SUMOReal entryPos, SUMOReal leavePos, SUMOTime entryTime, SUMOTime currentTime, SUMOTime leaveTime, bool cleanUp)
MSLane *const myLane
Lane on which the reminder works.
void removeFromVehicleUpdateValues(SUMOVehicle &veh)
virtual void addMoveReminder(MSMoveReminder *rem)
Add a move-reminder to move-reminder container.
MSMoveReminder(const std::string &description, MSLane *const lane=0, const bool doAdd=true)
Constructor.
Representation of a vehicle.
std::map< SUMOVehicle *, std::pair< SUMOTime, SUMOReal > > myLastVehicleUpdateValues
virtual void notifyMoveInternal(SUMOVehicle &veh, SUMOReal timeOnLane, SUMOReal speed)
Internal notification about the vehicle moves.
Representation of a lane in the micro simulation.