#include <adevs_abstract_simulator.h>
Public Member Functions | |
void | addEventListener (EventListener< X, T > *l) |
void | removeEventListener (EventListener< X, T > *l) |
Remove an event listener. | |
virtual T | nextEventTime ()=0 |
Get the model's next event time. | |
virtual void | execUntil (T tend)=0 |
Execute the simulator until the next event time is greater than tend. | |
virtual | ~AbstractSimulator () |
Destructor leaves the model intact. | |
void | notify_output_listeners (Devs< X, T > *model, const X &value, T t) |
Notify listeners of an output event. | |
void | notify_state_listeners (Atomic< X, T > *model, T t) |
Notify listeners of a state change. |
This is the base class for all simulators. It defines an interface that is supported by all derived classes and provides some basic helper routines for those derived classes.
void adevs::AbstractSimulator< X, T >::addEventListener | ( | EventListener< X, T > * | l | ) | [inline] |
Add an event listener that will be notified of output events produced by the model.
Referenced by adevs::ModelWrapper< ExternalType, InternalType, T >::ModelWrapper().