#include <MSVehicleQuitReminded.h>

Because several classes track vehicles using own containers, it is necessary to inform them as soon one of these tracked vehicles disappears from the simulation. So it's besically a listener...
For this, each vehicle holds a list of structures to be informed about its leaving from the net. Each element of this list has to be derived from MSVehicleQuitReminded and will be informed about the vehicle's leaving via removeOnTripEnd.
A vehicle has to be informed about a listener using "quitRemindedEnter". A listener may be removed from the vehicle using "quitRemindedLeft".
Definition at line 58 of file MSVehicleQuitReminded.h.
Public Member Functions | |
| virtual | ~MSVehicleQuitReminded () throw () |
| (Virtual) destructor | |
Abstract Methods to be implemented by derived classes | |
| virtual void | removeOnTripEnd (MSVehicle *veh)=0 throw () |
| Called when the observed vehicle leaves the simulation. | |
| virtual MSVehicleQuitReminded::~MSVehicleQuitReminded | ( | ) | throw () [inline, virtual] |
| virtual void MSVehicleQuitReminded::removeOnTripEnd | ( | MSVehicle * | veh | ) | throw () [pure virtual] |
Called when the observed vehicle leaves the simulation.
| [in] | veh | The vehicle that quits the simulation |
Implemented in MSVehicle, MSE2Collector, MSE3Collector, and MSInductLoop.
1.5.6