Interface AdaptableInterval
- All Known Implementing Classes:
PeriodBasedAdaptableInterval
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface represents an event checking interval that depends on state.
- Since:
- 12.0
- Author:
- Luc Maisonobe
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoublecurrentInterval(SpacecraftState state, boolean isForward) Get the current value of maximal time interval between events handler checks.static AdaptableIntervalof(double defaultMaxCheck, AdaptableInterval... adaptableIntervals) Method creating an interval taking the minimum value of all candidates.static <T extends CalculusFieldElement<T>>
AdaptableIntervalof(Field<T> field, FieldAdaptableInterval<T> fieldAdaptableInterval) Method creating an interval taking the minimum value of all candidates.
-
Method Details
-
currentInterval
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
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
-
of
static <T extends CalculusFieldElement<T>> AdaptableInterval of(Field<T> field, FieldAdaptableInterval<T> fieldAdaptableInterval) Method creating an interval taking the minimum value of all candidates.- Type Parameters:
T- field type- Parameters:
field- fieldfieldAdaptableInterval- field interval- Returns:
- adaptable interval ready to be added to an event detector
- Since:
- 14.0
-