The networkExec class should be sub-classed by the modeler to create network executives for DSDEVS coupled models
Inheritance:
Public Methods
-
networkExec()
- Creates a network executive with an empty name string
-
networkExec(const char* name)
- Creates a network executive and assigns it the indicated name
-
virtual const indexed* computeNeighbors(devs& model, const port_value& pv)
- The indexed returned contains EventReceivers.
-
const set* getComponents() const
- Returns the component set for the networkExec
-
virtual ~networkExec()
- This deletes all of the models in the component set
-
virtual void _reset(stime_t t = 0.0)
- This method supports the simulator
-
void makeStructureChanges(set& new_models, set& del_models)
- This method supports the simulator
-
void set_network(devs* network)
- This method supports the simulator
Protected Methods
-
void add(devs* model)
- Add a devs to the set of components for this network executive
-
void remove(devs* model)
- Remove a devs from the set of components for this network executive.
-
devs* getNetwork() const
- Returns the network model for which this model is the network executive.
Inherited from atomic:
Public Methods
-
virtual void reset()
-
virtual void delta_int()
-
virtual void delta_ext()
-
virtual void delta_conf()
-
virtual void output_func()
-
virtual stime_t lookahead() const
Inherited from devs:
Public Classes
-
enum ModelType
Public Methods
-
inline void setName(const char* name)
-
inline stime_t elapsed() const
-
inline stime_t sigma() const
-
inline stime_t ta() const
-
inline stime_t timeNext() const
-
inline stime_t timeLast() const
-
inline stime_t timeCurrent() const
-
void hold(stime_t dt)
-
inline void passivate()
-
bag* inputOnPort(port_t inport) const
-
void output(port_t outport, object* value, bool gc = true)
-
void output(port_t outport, const object& value)
-
virtual void addInputPort(port_t inport)
-
virtual void addOutputPort(port_t outport)
-
bool hasInputPort(port_t inport) const
-
bool hasOutputPort(port_t outport) const
-
inline const char* getName() const
-
void setThreaded(bool value)
-
bool getThreaded() const
-
const port_t* outputPorts(int* count)
-
bag* outputOnPort(port_t outport) const
-
void clearPorts()
-
void clearPorts(indexed& garbage)
-
void emptyGarbage()
-
inline void setTime(stime_t t)
-
inline void setTimeLast(stime_t tL)
-
inline void setTimeNext(stime_t tN)
-
void input(port_t inport, object* value)
-
ModelType getType() const
Inherited from object:
Public Methods
-
virtual bool operator==(const object &obj) const
-
virtual bool operator!=(const object &obj) const
-
virtual unsigned int hashcode() const
-
virtual object* clone() const
Documentation
The networkExec class should be sub-classed by the modeler to create
network executives for DSDEVS coupled models
networkExec()
- Creates a network executive with an empty name string
networkExec(const char* name)
- Creates a network executive and assigns it the indicated name
virtual 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.
const set* getComponents() const
- Returns the component set for the networkExec
virtual ~networkExec()
- This deletes all of the models in the component set
virtual void _reset(stime_t t = 0.0)
- This method supports the simulator
void makeStructureChanges(set& new_models, set& del_models)
- This method supports the simulator
void set_network(devs* network)
- This method supports the simulator
void add(devs* model)
- Add a devs to the set of components for this network executive
void 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.
devs* 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++.