31 #ifndef __adevs_wrapper_h_ 32 #define __adevs_wrapper_h_ 33 #include "adevs_models.h" 54 template <
typename ExternalType,
typename InternalType,
class T =
double>
class ModelWrapper:
55 public Atomic<ExternalType,T>,
124 template <
typename ExternalType,
typename InternalType,
class T>
135 template <
typename ExternalType,
typename InternalType,
class T>
144 template <
typename ExternalType,
typename InternalType,
class T>
158 template <
typename ExternalType,
typename InternalType,
class T>
172 template <
typename ExternalType,
typename InternalType,
class T>
176 else return adevs_inf<T>();
179 template <
typename ExternalType,
typename InternalType,
class T>
191 template <
typename ExternalType,
typename InternalType,
class T>
198 template <
typename ExternalType,
typename InternalType,
class T>
Definition: adevs_event_listener.h:43
void execNextEvent()
Execute the simulation cycle at time nextEventTime()
Definition: adevs_simulator.h:82
Definition: adevs_wrapper.h:54
virtual void gc_input(Bag< Event< InternalType, T > > &g)=0
void computeNextOutput()
Definition: adevs_simulator.h:362
void computeNextState(Bag< Event< X, T > > &input, T t)
Definition: adevs_simulator.h:368
void delta_ext(T e, const Bag< ExternalType > &xb)
Atomic external transition function.
Definition: adevs_wrapper.h:145
void delta_conf(const Bag< ExternalType > &xb)
Atomic confluent transition function.
Definition: adevs_wrapper.h:159
virtual void translateInput(const Bag< ExternalType > &external_input, Bag< Event< InternalType, T > > &internal_input)=0
void outputEvent(Event< InternalType, T > y, T t)
EventListener outputEvent method.
Definition: adevs_wrapper.h:192
void output_func(Bag< ExternalType > &yb)
Atomic output function.
Definition: adevs_wrapper.h:180
virtual void translateOutput(const Bag< Event< InternalType, T > > &internal_output, Bag< ExternalType > &external_output)=0
T ta()
Atomic time advance function.
Definition: adevs_wrapper.h:173
Definition: adevs_fmi.h:57
void delta_int()
Atomic internal transition function.
Definition: adevs_wrapper.h:136
T nextEventTime()
Definition: adevs_simulator.h:77
void addEventListener(EventListener< X, T > *l)
Definition: adevs_abstract_simulator.h:53
Definition: adevs_models.h:47
Devs< InternalType, T > * getWrappedModel()
Get the model that is wrapped by this object.
Definition: adevs_wrapper.h:93
~ModelWrapper()
Destructor. This destroys the wrapped model too.
Definition: adevs_wrapper.h:199