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

#include <adevs_models.h>

Inheritance diagram for adevs::MealyAtomic< X, T >:
adevs::Atomic< X, T > adevs::Devs< X, T >

Public Member Functions

MealyAtomic< X, T > * typeIsMealyAtomic ()
 Returns NULL if this is not a mealy atomic model; returns itself otherwise.
 
virtual void output_func (T e, const Bag< X > &xb, Bag< X > &yb)=0
 
virtual void output_func (const Bag< X > &xb, Bag< X > &yb)=0
 
- Public Member Functions inherited from adevs::Atomic< X, T >
 Atomic ()
 The constructor should place the model into its initial state.
 
virtual void delta_int ()=0
 Internal transition function.
 
virtual void delta_ext (T e, const Bag< X > &xb)=0
 
virtual void delta_conf (const Bag< X > &xb)=0
 
virtual void output_func (Bag< X > &yb)=0
 
virtual T ta ()=0
 
virtual void gc_output (Bag< X > &g)=0
 
virtual ~Atomic ()
 Destructor.
 
Atomic< X, T > * typeIsAtomic ()
 Returns a pointer to this model.
 
- Public Member Functions inherited from adevs::Devs< X, T >
 Devs ()
 Default constructor.
 
virtual ~Devs ()
 Destructor.
 
virtual Network< X, T > * typeIsNetwork ()
 
const Network< X, T > * getParent () const
 
Network< X, T > * getParent ()
 
void setParent (Network< X, T > *parent)
 
virtual bool model_transition ()
 

Friends

class Simulator< X, T >
 

Additional Inherited Members

- Protected Member Functions inherited from adevs::Atomic< X, T >
getLastEventTime () const
 

Detailed Description

template<typename X, typename T = double>
class adevs::MealyAtomic< X, T >

This is a Mealy type atomic model where its output may depend on its input. Mealy machines cannot be connected to other Mealy machines. An exception will be generated by the Simulator if you attempt to do so.

Member Function Documentation

template<typename X, typename T = double>
virtual void adevs::MealyAtomic< X, T >::output_func ( e,
const Bag< X > &  xb,
Bag< X > &  yb 
)
pure virtual

Produce output at e < ta(q) in response to xb. This is output preceding an external event.

Referenced by adevs::Simulator< X, T >::computeNextOutput().

template<typename X, typename T = double>
virtual void adevs::MealyAtomic< X, T >::output_func ( const Bag< X > &  xb,
Bag< X > &  yb 
)
pure virtual

Produce output at e = ta(q) in response to xb. This is output preceding a confluent event.


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