|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.domains.ct.kernel.CTBaseIntegrator.History
The history information, state and derivatives, at equidistance past time points. This inner class is protect so that it can be tested.
| Constructor Summary | |
CTBaseIntegrator.History(CTBaseIntegrator container)
Construct the history. |
|
| Method Summary | |
void |
clear()
Remove all history information. |
int |
getCapacity()
Return the maximum capacity. |
double[] |
getEntry(int index)
Return the index-th entry in the history. |
int |
getValidEntryCount()
Return the number of valid entries. |
void |
pushEntry(double state,
double derivative)
Push the new state-derivative pair into the history. |
void |
rebalance(double currentStepSize)
Rebalance the history information with respect to the current step size, such that the information in the history list are equally distanced, and the distance is the current step size. |
void |
setCapacity(int capacity)
Set the history capacity. |
double[][] |
toDoubleArray()
Return the history information in an array format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CTBaseIntegrator.History(CTBaseIntegrator container)
| Method Detail |
public void clear()
public int getCapacity()
public int getValidEntryCount()
public double[] getEntry(int index)
index - The index of the entry.
public void pushEntry(double state,
double derivative)
throws ptolemy.kernel.util.IllegalActionException
state - The state.derivative - THe derivative of the state.
ptolemy.kernel.util.IllegalActionException - If the capacity
of history is less than or equal to zero.public void rebalance(double currentStepSize)
currentStepSize - The current step size.public void setCapacity(int capacity)
capacity - The new capacity.public double[][] toDoubleArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||