adevs
Public Member Functions | List of all members
adevs::AbstractSimulator< X, T > Class Template Referenceabstract

#include <adevs_abstract_simulator.h>

Inheritance diagram for adevs::AbstractSimulator< X, T >:
adevs::ParSimulator< X, T > adevs::Simulator< X, T >

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

template<class X, class T = double>
class adevs::AbstractSimulator< X, T >

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

template<class X, class T = double>
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().


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