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 Detail

      • currentInterval

        double currentInterval​(SpacecraftState state,
                               boolean isForward)
        Get the current value of maximal time interval between events handler checks.
        Parameters:
        state - current state
        isForward - 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 input
        adaptableIntervals - intervals
        Returns:
        adaptable interval ready to be added to an event detector
        Since:
        13.0