Class StopOnDecreasing<T extends EventDetector>

  • Type Parameters:
    T - class type for the generic version
    All Implemented Interfaces:
    EventHandler<T>

    public class StopOnDecreasing<T extends EventDetector>
    extends Object
    implements EventHandler<T>
    Handle a detection event and choose what to do next.

    The implementation behavior is to continue propagation when ascending and to stop propagation when descending.

    Since:
    6.1
    Author:
    Hank Grabowski
    • Constructor Detail

      • StopOnDecreasing

        public StopOnDecreasing()
    • Method Detail

      • eventOccurred

        public Action eventOccurred​(SpacecraftState s,
                                    T detector,
                                    boolean increasing)
        Handle a detection event and choose what to do next.

        The implementation behavior is to continue propagation when ascending and to stop propagation when descending.

        Specified by:
        eventOccurred in interface EventHandler<T extends EventDetector>
        Parameters:
        s - the current state information : date, kinematics, attitude
        detector - the detector object calling this method (not used in the evaluation)
        increasing - if true, the value of the switching function increases when times increases around event
        Returns:
        Action.STOP or Action.CONTINUE