adevs
Public Member Functions
adevs::AbstractSimulator Class Reference

#include <adevs_abstract_simulator.h>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

void adevs::AbstractSimulator::addEventListener ( EventListener< X, T > *  l) [inline]

Add an event listener that will be notified of output events produced by the model.


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