Package org.hipparchus.ode.events
Interface FieldAdaptableInterval<T extends CalculusFieldElement<T>>
-
- Type Parameters:
T
- the type of the field elements
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FieldAdaptableInterval<T extends CalculusFieldElement<T>>
This interface represents an event checking interval that depends on state.- Since:
- 3.0
- See Also:
ODEEventDetector
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description double
currentInterval(FieldODEStateAndDerivative<T> state, boolean isForward)
Get the current value of maximal time interval between events handler checks.static <W extends CalculusFieldElement<W>>
FieldAdaptableInterval<W>of(double maxCheck)
Create a constant interval from the input.
-
-
-
Method Detail
-
currentInterval
double currentInterval(FieldODEStateAndDerivative<T> state, boolean isForward)
Get the current value of maximal time interval between events handler checks.- Parameters:
state
- current stateisForward
- true if propagation is forward in independent variable, false otherwise- Returns:
- current value of maximal time interval between events handler checks (only as a double)
-
of
static <W extends CalculusFieldElement<W>> FieldAdaptableInterval<W> of(double maxCheck)
Create a constant interval from the input.- Type Parameters:
W
- field type- Parameters:
maxCheck
- maximum check value- Returns:
- constant interval
- Since:
- 4.0
-
-