Base type for all network executive models
Inheritance:
Public Fields
-
net_exec_sim_support_t nsim_support
-
This structure is used to support the simulation engine.
Public Methods
-
netExec(devsn* parent = NULL)
-
Constructor.
-
netExec(const netExec& src, devsn* parent)
-
Copy constructor.
-
virtual void getComponents(adevs_set<devs*>& c) = 0
-
Implementations of this method should fill the
set c with all components models, excluding the parent model
and the network executive itself
-
virtual void route(const PortValue& pv, devs* model, adevs_bag<EventReceiver>& r) = 0
-
An implementation should fill the EventReceiver bag r
with all destinations to receive pvvalue
-
virtual void gc_models(adevs_set<devs*>& removed) = 0
-
The models in the set removed are no longer members of this
network executive's component set (as per getComponents())
and are no longer in use by the simulation engine.
-
virtual bool componentSetChanged() const
-
This method returns a hint to the simulation engine.
-
virtual ~netExec()
- Destructor
-
netExec* typeIsNetExec()
-
Returns a pointer to this model
Protected Methods
-
netExec(const netExec& src)
- Copy constructor
-
void operator=(const netExec& src)
- Assignment operator
Inherited from atomic:
Public Fields
-
atomic_sim_support_t asim_support
Public Methods
-
void initialize(ADEVS_TIME_TYPE t0)
-
virtual void init()
-
virtual void delta_int()
-
virtual void delta_ext(ADEVS_TIME_TYPE e, const adevs_bag<PortValue>& x)
-
virtual void delta_conf(const adevs_bag<PortValue>& x)
-
virtual void output_func(adevs_bag<PortValue>& y)
-
virtual void gc_output(adevs_bag<PortValue>& g)
-
static void output(ADEVS_PORT_TYPE port, ADEVS_IO_TYPE value, adevs_bag<PortValue>& y)
-
ADEVS_TIME_TYPE timeNext() const
-
ADEVS_TIME_TYPE timeLast() const
-
ADEVS_TIME_TYPE timeCurrent() const
-
ADEVS_TIME_TYPE sigma() const
-
ADEVS_TIME_TYPE elapsed() const
-
virtual ADEVS_TIME_TYPE ta() const
-
void hold(ADEVS_TIME_TYPE dt)
-
void passivate()
-
atomic* typeIsAtomic()
Inherited from devs:
Public Fields
-
basic_sim_support_t bsim_support
Public Methods
-
virtual devsn* typeIsNetwork()
-
const devsn* getParent() const
-
devsn* getParent()
-
void setParent(devsn* parent)
-
static void prefer_thread(int thread_id)
Inherited from object:
Public Methods
-
virtual object* clone() const
Documentation
Base type for all network executive models
netExec(devsn* parent = NULL)
-
Constructor. The parent should be the devsn model to which this network
executive belongs.
netExec(const netExec& src, devsn* parent)
-
Copy constructor. The parent should be the parent of the copy to be made,
which made be different from the parent of the original.
virtual void getComponents(adevs_set<devs*>& c) = 0
-
Implementations of this method should fill the
set c with all components models, excluding the parent model
and the network executive itself
virtual void route(const PortValue& pv, devs* model, adevs_bag<EventReceiver>& r) = 0
-
An implementation should fill the EventReceiver bag r
with all destinations to receive pvvalue
virtual void gc_models(adevs_set<devs*>& removed) = 0
-
The models in the set removed are no longer members of this
network executive's component set (as per getComponents())
and are no longer in use by the simulation engine. They should
be properly disposed of by the network executive.
virtual bool componentSetChanged() const
-
This method returns a hint to the simulation engine. If the
return value is true, the simulation engine can skip the check
for new or removed components. Otherwise, the simulator will
perform the new/removed component check. By default, this method
will always return true.
virtual ~netExec()
- Destructor
netExec* typeIsNetExec()
-
Returns a pointer to this model
net_exec_sim_support_t nsim_support
-
This structure is used to support the simulation engine. It should not
be used in any way by a system modeler.
netExec(const netExec& src)
- Copy constructor
void operator=(const netExec& src)
- Assignment operator
- Direct child classes:
- net_exec
net_exec
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.