opale.ode
Class StepControl1
java.lang.Object
|
+--opale.tools.OpaleObject
|
+--opale.ode.ObjectODE
|
+--opale.ode.StepsizeControl
|
+--opale.ode.StepControl1
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class StepControl1
- extends StepsizeControl
This class inherites from StepSizeControl class and defines a step control. If the solution is bracketed between two values then it's ok, else the time step is divided by a number (2 by default).
- Since:
- Opale-ODE 0.12
Method Summary |
int |
readKeyWord(java.lang.String word,
java.io.StreamTokenizer f,
OpaleSet ode)
Abstract method to read a key word in a file '*.ode'. |
boolean |
update()
Upadte the step according to the value of the solution. |
void |
write(java.io.PrintWriter f,
OpaleSet ode)
Abstrcat method to write the current object in a stream. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StepControl1
public StepControl1()
StepControl1
public StepControl1(TimeScheme ts)
StepControl1
public StepControl1(double ymin,
double ymax,
double r)
update
public final boolean update()
- Upadte the step according to the value of the solution.
- Overrides:
update
in class StepsizeControl
readKeyWord
public int readKeyWord(java.lang.String word,
java.io.StreamTokenizer f,
OpaleSet ode)
throws java.io.IOException,
InvalidFormatException
- Description copied from class:
OpaleObject
- Abstract method to read a key word in a file '*.ode'.
- Overrides:
readKeyWord
in class OpaleObject
- Following copied from class:
opale.tools.OpaleObject
- Parameters:
String
- s, key word to read.StreamTokenizer
- f, stream to read.OpaleSet
- session, the group of 'Opale' object- Returns:
- int, 0 if the key word is correct, -1 otherwise.
write
public void write(java.io.PrintWriter f,
OpaleSet ode)
- Description copied from class:
OpaleObject
- Abstrcat method to write the current object in a stream.
- Overrides:
write
in class OpaleObject
- Following copied from class:
opale.tools.OpaleObject
- Parameters:
printWriter
- f, a stream.OpaleSet
- session, the set of 'Opale' object.