The devsn class is the base class for representing a DEVS network models
Inheritance:
Public Methods
-
devsn()
- Creates a devs network model without any component models
-
devsn(const char* name)
-
virtual const indexed* computeNeighbors(devs& model, const port_value& pv)
- The indexed returned contains EventReceivers.
-
virtual const set* getComponents() const
- Returns a set holding the components of this coupled model
-
virtual void makeStructureChanges(set& add_models, set& del_models)
- This method is called after the network model has undergone a state change.
-
virtual void _reset(stime_t t0 = 0.0)
- Resets the model and all of its components.
-
virtual ~devsn()
- Deletes the model and all of its components
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 devsn class is the base class for representing a DEVS network models
devsn()
- Creates a devs network model without any component models
devsn(const char* 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.
virtual const set* getComponents() const
- Returns a set holding the components of this coupled model
virtual 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.
virtual void _reset(stime_t t0 = 0.0)
-
Resets the model and all of its components. This method is used to
support the simulator.
virtual ~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++.