Interface AdaptableInterval
-
- 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 AdaptableInterval
This interface represents an event checking interval that depends on state.- Since:
- 12.0
- Author:
- Luc Maisonobe
- See Also:
EventDetector
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description double
currentInterval(SpacecraftState state, boolean isForward)
Get the current value of maximal time interval between events handler checks.static AdaptableInterval
of(double constantInterval)
Method creating a constant interval provider.static AdaptableInterval
of(double defaultMaxCheck, AdaptableInterval... adaptableIntervals)
Method creating an interval taking the minimum value of all candidates.
-
-
-
Method Detail
-
currentInterval
double currentInterval(SpacecraftState state, boolean isForward)
Get the current value of maximal time interval between events handler checks.- Parameters:
state
- current stateisForward
- direction of propagation- Returns:
- current value of maximal time interval between events handler checks
-
of
static AdaptableInterval of(double constantInterval)
Method creating a constant interval provider.- Parameters:
constantInterval
- value of constant interval- Returns:
- adaptable interval ready to be added to an event detector
- Since:
- 12.1
-
of
static AdaptableInterval of(double defaultMaxCheck, AdaptableInterval... adaptableIntervals)
Method creating an interval taking the minimum value of all candidates.- Parameters:
defaultMaxCheck
- default value if no intervals is given as inputadaptableIntervals
- intervals- Returns:
- adaptable interval ready to be added to an event detector
- Since:
- 13.0
-
-