class networkExec

The networkExec class should be sub-classed by the modeler to create network executives for DSDEVS coupled models

Inheritance:


Public Methods

[more] networkExec()
Creates a network executive with an empty name string
[more] networkExec(const char* name)
Creates a network executive and assigns it the indicated name
[more]virtual const indexed* computeNeighbors(devs& model, const port_value& pv)
The indexed returned contains EventReceivers.
[more]const set* getComponents() const
Returns the component set for the networkExec
[more]virtual ~networkExec()
This deletes all of the models in the component set
[more]virtual void _reset(stime_t t = 0.0)
This method supports the simulator
[more]void makeStructureChanges(set& new_models, set& del_models)
This method supports the simulator
[more]void set_network(devs* network)
This method supports the simulator

Protected Methods

[more]void add(devs* model)
Add a devs to the set of components for this network executive
[more]void remove(devs* model)
Remove a devs from the set of components for this network executive.
[more]devs* getNetwork() const
Returns the network model for which this model is the network executive.


Inherited from atomic:

Public Methods

ovirtual void reset()
ovirtual void delta_int()
ovirtual void delta_ext()
ovirtual void delta_conf()
ovirtual void output_func()
ovirtual stime_t lookahead() const


Inherited from devs:

Public Classes

oenum ModelType

Public Methods

oinline void setName(const char* name)
oinline stime_t elapsed() const
oinline stime_t sigma() const
oinline stime_t ta() const
oinline stime_t timeNext() const
oinline stime_t timeLast() const
oinline stime_t timeCurrent() const
ovoid hold(stime_t dt)
oinline void passivate()
obag* inputOnPort(port_t inport) const
ovoid output(port_t outport, object* value, bool gc = true)
ovoid output(port_t outport, const object& value)
ovirtual void addInputPort(port_t inport)
ovirtual void addOutputPort(port_t outport)
obool hasInputPort(port_t inport) const
obool hasOutputPort(port_t outport) const
oinline const char* getName() const
ovoid setThreaded(bool value)
obool getThreaded() const
oconst port_t* outputPorts(int* count)
obag* outputOnPort(port_t outport) const
ovoid clearPorts()
ovoid clearPorts(indexed& garbage)
ovoid emptyGarbage()
oinline void setTime(stime_t t)
oinline void setTimeLast(stime_t tL)
oinline void setTimeNext(stime_t tN)
ovoid input(port_t inport, object* value)
oModelType getType() const


Inherited from object:

Public Methods

ovirtual bool operator==(const object &obj) const
ovirtual bool operator!=(const object &obj) const
ovirtual unsigned int hashcode() const
ovirtual object* clone() const


Documentation

The networkExec class should be sub-classed by the modeler to create network executives for DSDEVS coupled models
o networkExec()
Creates a network executive with an empty name string

o networkExec(const char* name)
Creates a network executive and assigns it the indicated name

ovirtual const indexed* computeNeighbors(devs& model, const port_value& pv)
The indexed returned contains EventReceivers. The recievers are assumed to be owned by the model, and so are not deleted by the simulator.

oconst set* getComponents() const
Returns the component set for the networkExec

ovirtual ~networkExec()
This deletes all of the models in the component set

ovirtual void _reset(stime_t t = 0.0)
This method supports the simulator

ovoid makeStructureChanges(set& new_models, set& del_models)
This method supports the simulator

ovoid set_network(devs* network)
This method supports the simulator

ovoid add(devs* model)
Add a devs to the set of components for this network executive

ovoid remove(devs* model)
Remove a devs from the set of components for this network executive. The model is deleted at the end of the next simulation cycle. If the model is undefined, this method simply returns.

odevs* getNetwork() const
Returns the network model for which this model is the network executive. The returned value is NULL until the reset method of the network executive has been called. The network model should not be deleted.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.