#include <adevs_event_listener.h>
Public Member Functions | |
virtual void | outputEvent (Event< X, T > x, T t) |
virtual void | stateChange (Atomic< X, T > *model, T t) |
virtual | ~EventListener () |
Destructor. |
The EventListener interface is used to receive output events produced by model and to be notified of state changes at Atomic models.
virtual void adevs::EventListener< X, T >::outputEvent | ( | Event< X, T > | x, | |
T | t | |||
) | [inline, virtual] |
This callback is invoked when a model, network or atomic, produces an output. The default implementation is empty.
x | The model that produced the output and the output's value | |
t | The absolute time at which the output occurred |
Reimplemented in adevs::ModelWrapper< ExternalType, InternalType, T >.
virtual void adevs::EventListener< X, T >::stateChange | ( | Atomic< X, T > * | model, | |
T | t | |||
) | [inline, virtual] |
This callback is invoked by the simulator after an Atomic model changes its state. This method has an empty default implementation.
model | The model that changed state | |
t | The absolute time at which the state change occurred |