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]ADEVS_TIME_TYPE timeCurrent() const
[more]ADEVS_TIME_TYPE timeLast() const
[more]ADEVS_TIME_TYPE timeNext() const
[more]ADEVS_TIME_TYPE elapsed() const
[more]ADEVS_TIME_TYPE sigma() const
[more]ADEVS_TIME_TYPE ta() const
[more]void hold(ADEVS_TIME_TYPE dt)
Sets the time of next event (timeNext()) to timeCurrent()+dt Throws an exception if dt < ADEVS_ZERO.
[more]void passivate()
Set the time of next event to ADEVS_INFINITY
[more]void setTimeCurrent(ADEVS_TIME_TYPE T)
[more]void setTimeLast(ADEVS_TIME_TYPE T)
[more]void setTimeNext(ADEVS_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()

oADEVS_TIME_TYPE timeCurrent() const

oADEVS_TIME_TYPE timeLast() const

oADEVS_TIME_TYPE timeNext() const

oADEVS_TIME_TYPE elapsed() const

oADEVS_TIME_TYPE sigma() const

oADEVS_TIME_TYPE ta() const

ovoid hold(ADEVS_TIME_TYPE dt)
Sets the time of next event (timeNext()) to timeCurrent()+dt Throws an exception if dt < ADEVS_ZERO. This is the preferred method for scheduling an event.

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

ovoid setTimeCurrent(ADEVS_TIME_TYPE T)

ovoid setTimeLast(ADEVS_TIME_TYPE T)

ovoid setTimeNext(ADEVS_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++.