adevs::EventListener< X > Class Template Reference

#include <adevs_event_listener.h>

List of all members.

Public Member Functions

virtual void outputEvent (Event< X > x, double t)
virtual void stateChange (Atomic< X > *model, double t)


Detailed Description

template<class X>
class adevs::EventListener< X >

The EventListener class is used to receive output events produced by models, injects injected into models, and to be notified of state changes by Atomic models.


Member Function Documentation

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

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

Reimplemented in adevs::ModelWrapper< ExternalType, InternalType >.

template<class X>
virtual void adevs::EventListener< X >::stateChange ( Atomic< X > *  model,
double  t 
) [inline, virtual]

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


The documentation for this class was generated from the following file:
Generated on Tue Oct 6 20:46:41 2009 for adevs by  doxygen 1.4.7