class devsn

The devsn class is the base class for representing a DEVS network models

Inheritance:


Public Methods

[more] devsn()
Creates a devs network model without any component models
[more] devsn(const char* name)
[more]virtual const indexed* computeNeighbors(devs& model, const port_value& pv)
The indexed returned contains EventReceivers.
[more]virtual const set* getComponents() const
Returns a set holding the components of this coupled model
[more]virtual void makeStructureChanges(set& add_models, set& del_models)
This method is called after the network model has undergone a state change.
[more]virtual void _reset(stime_t t0 = 0.0)
Resets the model and all of its components.
[more]virtual ~devsn()
Deletes the model and all of its components


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 devsn class is the base class for representing a DEVS network models
o devsn()
Creates a devs network model without any component models

o devsn(const char* 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.

ovirtual const set* getComponents() const
Returns a set holding the components of this coupled model

ovirtual void makeStructureChanges(set& add_models, set& del_models)
This method is called after the network model has undergone a state change. The two sets that are supplied should be filled with models to be added and deleted from the network model. Models in the add set are owned by the network model. Models in the delete set are removed by the simulator.

ovirtual void _reset(stime_t t0 = 0.0)
Resets the model and all of its components. This method is used to support the simulator.

ovirtual ~devsn()
Deletes the model and all of its components


Direct child classes:
coupled
DScoupled

Alphabetic index HTML hierarchy of classes or Java



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