class devs

The devs class provides basic operations for all devs models Note that models are derived from the object class.

Inheritance:


Public Methods

[more] devs()
[more] devs(Type type)
[more] devs(const devs& src)
[more]void operator=(const devs& src)
[more]virtual void init() = 0
The init function should place the model into its initial state The initial time can be gotten by calling timeCurrent()
[more]TIME_TYPE timeCurrent() const
[more]TIME_TYPE timeLast() const
[more]TIME_TYPE timeNext() const
[more]TIME_TYPE elapsed() const
[more]TIME_TYPE sigma() const
[more]TIME_TYPE ta() const
[more]void hold(TIME_TYPE dt)
Sets the time of next event (timeNext()) to timeCurrent()+dt Throws an exception if dt < ZERO.
[more]void passivate()
Set the time of next event to INFINITY
[more]void setTimeCurrent(TIME_TYPE T)
[more]void setTimeLast(TIME_TYPE T)
[more]void setTimeNext(TIME_TYPE T)
[more]virtual ~devs()
[more]Type getType() const
[more]basic_sim* getAttachedSimulator()
[more]void setAttachedSimulator(basic_sim* sim)

Public Members

[more]typedef enum Enumeration of possible model types


Inherited from object:

Public Methods

ovirtual 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).
otypedef enum Enumeration of possible model types
Enumeration of possible model types

o ATOMIC

o NETWORK

o UNKNOWN

o devs()

o devs(Type type)

o devs(const devs& src)

ovoid operator=(const devs& src)

ovirtual void init() = 0
The init function should place the model into its initial state The initial time can be gotten by calling timeCurrent()

oTIME_TYPE timeCurrent() const

oTIME_TYPE timeLast() const

oTIME_TYPE timeNext() const

oTIME_TYPE elapsed() const

oTIME_TYPE sigma() const

oTIME_TYPE ta() const

ovoid 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.

ovoid passivate()
Set the time of next event to INFINITY

ovoid setTimeCurrent(TIME_TYPE T)

ovoid setTimeLast(TIME_TYPE T)

ovoid setTimeNext(TIME_TYPE T)

ovirtual ~devs()

oType getType() const

obasic_sim* getAttachedSimulator()

ovoid 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++.