class qintg

A quantized integrator.

Public Methods

[more] qintg()
Constructor.
[more] qintg(const qintg& src)
Copy constructor
[more]const qintg& operator=(const qintg& src)
Assignment operator
[more]void init(double q0, double dq0 = 0.0)
Initialize the integrator with state q0 and input value dq0
[more]double ta() const
Get the time until the next quantum change in state, assuming constant input
[more]void integ(double dt, double dq)
Evaluate the integral over dt units of time with input dq.
[more]void integ(double dt)
Evaluate integral without changing input
[more]double out() const
Get the output value ta() units of time after the last state change (at the next internal event time, tL + ta())
[more]double out(double dt) const
Get the output value for time tL + dt
[more]double state() const
Get the current state of the integrator
[more]double qstate() const
Get the current quantized state of the integrator
[more]void setParams(double D, double e = -1.0)
Set the integrator parameters.


Documentation

A quantized integrator. The integrator operates on a double valued state and input value. This integrator is based on the DEVS integrator presented in "Theory of Quantized Systems: DEVS simulation of perceiving agents", Cybernetics and Systems, Volume 31, Number 6, Sept 2000.

The integration function treats values less than EPSILON to be equal to zero for the purposes of computing internal transitions. In particular, an integrator whose ta() < EPSILON is treated as having ta() = 0.0.

o qintg()
Constructor. Creates an uninitialized integrator.

o qintg(const qintg& src)
Copy constructor

oconst qintg& operator=(const qintg& src)
Assignment operator

ovoid init(double q0, double dq0 = 0.0)
Initialize the integrator with state q0 and input value dq0

odouble ta() const
Get the time until the next quantum change in state, assuming constant input

ovoid integ(double dt, double dq)
Evaluate the integral over dt units of time with input dq. dt should be less or equal to ta().

ovoid integ(double dt)
Evaluate integral without changing input

odouble out() const
Get the output value ta() units of time after the last state change (at the next internal event time, tL + ta())

odouble out(double dt) const
Get the output value for time tL + dt

odouble state() const
Get the current state of the integrator

odouble qstate() const
Get the current quantized state of the integrator

ovoid setParams(double D, double e = -1.0)
Set the integrator parameters. Arguments are quantum size D (default is 0.1) and hysteresis e (if < 0, defaults to D / 2.0).


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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