adevs
Public Member Functions
adevs::EventListener Class Reference

#include <adevs_event_listener.h>

List of all members.

Public Member Functions

virtual void outputEvent (Event< X, T > x, T t)
virtual void stateChange (Atomic< X, T > *model, T t)
virtual ~EventListener ()
 Destructor.

Detailed Description

The EventListener interface is used to receive output events produced by model and to be notified of state changes at Atomic models.


Member Function Documentation

virtual void adevs::EventListener::outputEvent ( Event< X, T >  x,
t 
) [inline, virtual]

This callback is invoked when a model, network or atomic, produces an output. The default implementation is empty.

Parameters:
xThe model that produced the output and the output's value
tThe absolute time at which the output occurred
virtual void adevs::EventListener::stateChange ( Atomic< X, T > *  model,
t 
) [inline, virtual]

This callback is invoked by the simulator after an Atomic model changes its state. This method has an empty default implementation.

Parameters:
modelThe model that changed state
tThe absolute time at which the state change occurred

The documentation for this class was generated from the following file: