class netExec

Base type for all network executive models

Inheritance:


Public Fields

[more]net_exec_sim_support_t nsim_support
This structure is used to support the simulation engine.

Public Methods

[more] netExec(devsn* parent = NULL)
Constructor.
[more] netExec(const netExec& src, devsn* parent)
Copy constructor.
[more]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
[more]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
[more]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.
[more]virtual bool componentSetChanged() const
This method returns a hint to the simulation engine.
[more]virtual ~netExec()
Destructor
[more]netExec* typeIsNetExec()
Returns a pointer to this model

Protected Methods

[more] netExec(const netExec& src)
Copy constructor
[more]void operator=(const netExec& src)
Assignment operator


Inherited from atomic:

Public Fields

oatomic_sim_support_t asim_support

Public Methods

ovoid initialize(ADEVS_TIME_TYPE t0)
ovirtual void init()
ovirtual void delta_int()
ovirtual void delta_ext(ADEVS_TIME_TYPE e, const adevs_bag<PortValue>& x)
ovirtual void delta_conf(const adevs_bag<PortValue>& x)
ovirtual void output_func(adevs_bag<PortValue>& y)
ovirtual void gc_output(adevs_bag<PortValue>& g)
ostatic void output(ADEVS_PORT_TYPE port, ADEVS_IO_TYPE value, adevs_bag<PortValue>& y)
oADEVS_TIME_TYPE timeNext() const
oADEVS_TIME_TYPE timeLast() const
oADEVS_TIME_TYPE timeCurrent() const
oADEVS_TIME_TYPE sigma() const
oADEVS_TIME_TYPE elapsed() const
ovirtual ADEVS_TIME_TYPE ta() const
ovoid hold(ADEVS_TIME_TYPE dt)
ovoid passivate()
oatomic* typeIsAtomic()


Inherited from devs:

Public Fields

obasic_sim_support_t bsim_support

Public Methods

ovirtual devsn* typeIsNetwork()
oconst devsn* getParent() const
odevsn* getParent()
ovoid setParent(devsn* parent)
ostatic void prefer_thread(int thread_id)


Inherited from object:

Public Methods

ovirtual object* clone() const


Documentation

Base type for all network executive models
o netExec(devsn* parent = NULL)
Constructor. The parent should be the devsn model to which this network executive belongs.

o 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.

ovirtual 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

ovirtual 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

ovirtual 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.

ovirtual 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.

ovirtual ~netExec()
Destructor

onetExec* typeIsNetExec()
Returns a pointer to this model

onet_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.

o netExec(const netExec& src)
Copy constructor

ovoid 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++.