The devs class provides basic operations for all devs models
Note that models are derived from the object class.
Inheritance:
Public Methods
-
devs()
-
devs(Type type)
-
devs(const devs& src)
-
void operator=(const devs& src)
-
virtual void init() = 0
-
The init function should place the model into its initial state
The initial time can be gotten by calling timeCurrent()
-
TIME_TYPE timeCurrent() const
-
TIME_TYPE timeLast() const
-
TIME_TYPE timeNext() const
-
TIME_TYPE elapsed() const
-
TIME_TYPE sigma() const
-
TIME_TYPE ta() const
-
void hold(TIME_TYPE dt)
-
Sets the time of next event (timeNext()) to timeCurrent()+dt
Throws an exception if dt < ZERO.
-
void passivate()
- Set the time of next event to INFINITY
-
void setTimeCurrent(TIME_TYPE T)
-
void setTimeLast(TIME_TYPE T)
-
void setTimeNext(TIME_TYPE T)
-
virtual ~devs()
-
Type getType() const
-
basic_sim* getAttachedSimulator()
-
void setAttachedSimulator(basic_sim* sim)
Public Members
-
typedef enum Enumeration of possible model types
Inherited from object:
Public Methods
-
virtual object* clone() const
Documentation
The devs class provides basic operations for all devs models
Note that models are derived from the object class. Therefore
(if using the default configuration) models can, themselves,
be passed as I/O between models (this can be useful when building
some types of dynamic structure models).
typedef enum Enumeration of possible model types
- Enumeration of possible model types
ATOMIC
NETWORK
UNKNOWN
devs()
devs(Type type)
devs(const devs& src)
void operator=(const devs& src)
virtual void init() = 0
-
The init function should place the model into its initial state
The initial time can be gotten by calling timeCurrent()
TIME_TYPE timeCurrent() const
TIME_TYPE timeLast() const
TIME_TYPE timeNext() const
TIME_TYPE elapsed() const
TIME_TYPE sigma() const
TIME_TYPE ta() const
void hold(TIME_TYPE dt)
-
Sets the time of next event (timeNext()) to timeCurrent()+dt
Throws an exception if dt < ZERO. This is the preferred method
for scheduling an event.
void passivate()
- Set the time of next event to INFINITY
void setTimeCurrent(TIME_TYPE T)
void setTimeLast(TIME_TYPE T)
void setTimeNext(TIME_TYPE T)
virtual ~devs()
Type getType() const
basic_sim* getAttachedSimulator()
void setAttachedSimulator(basic_sim* sim)
- Direct child classes:
- devsn
atomic
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.