|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.VariableDelay
public abstract class VariableDelay
VariableDelay object accumulates a history of an expression (of type double
or HyperArray and generates delayed values of the expression using the
accumulated information. The capacity depends on engine integration step. An
object registers itself in continuous engine upon creation and then is
updated by the engine.
Is designed for fixed step integration
| Nested Class Summary | |
|---|---|
static class |
VariableDelay.Type
Type of delay object, see description on items |
| Constructor Summary | |
|---|---|
VariableDelay(VariableDelay.Type type,
ActiveObject ao)
Constructor |
|
VariableDelay(VariableDelay.Type type,
ActiveObject ao,
Dimension... dimensions)
|
|
| Method Summary | |
|---|---|
HyperArray |
getArray()
Returns delayed arrayed value This method should be called only for arrayed delays |
abstract double |
getDelayTime()
This method should be overridden |
double |
getInitialValue()
Returns value of the expression being delayed This method should be overridden in scalar delays having custom (non-zero) initial value |
void |
getInitialValue(HyperArray array)
Tags default arrayed sample into arrayThis method should be overridden in arrayed delays with custom (non-zero) initial value to fill the whole array data |
double |
getInput()
Returns value of the expression being delayed This method should be overridden in scalar delays |
void |
getInput(HyperArray array)
Tags arrayed sample into arrayThis method should be overridden in arrayed delays to fill the whole array data |
double |
getMissingValue()
Returns value to be returned by this object when delay time increases and when no output is available at the time This method should be overridden in scalar delays with variable delay time which have custom 'missing value' |
void |
getMissingValue(HyperArray array)
Tags arrayed value to be returned by this object when delay time increases and when no output is available at the time This method should be overridden in arrayed delays with variable delay time which have custom 'missing value' to fill the whole array data |
double |
getScalar()
Returns scalar delayed value This method should be called only for scalar delays |
void |
storeSample()
Stores sample if needed |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableDelay(VariableDelay.Type type,
ActiveObject ao)
type - the type of the delayao - reference to an active object where the delay is defined
public VariableDelay(VariableDelay.Type type,
ActiveObject ao,
Dimension... dimensions)
| Method Detail |
|---|
public final void storeSample()
getInput(),
getInput(HyperArray)public double getInput()
public double getInitialValue()
public double getMissingValue()
public void getInput(HyperArray array)
arrayarray data
array - an existing HyperArray (not null) which is to be filledpublic void getInitialValue(HyperArray array)
arrayarray data
array - an existing HyperArray (not null) which is to be filledpublic void getMissingValue(HyperArray array)
array data
array - an existing HyperArray (not null) which is to be filledpublic abstract double getDelayTime()
public final double getScalar()
public final HyperArray getArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||