Class FieldStopOnDecreasing<KK extends FieldEventDetector<T>,​T extends CalculusFieldElement<T>>

  • Type Parameters:
    KK - class type for the generic version
    All Implemented Interfaces:
    FieldEventHandler<KK,​T>

    public class FieldStopOnDecreasing<KK extends FieldEventDetector<T>,​T extends CalculusFieldElement<T>>
    extends Object
    implements FieldEventHandler<KK,​T>
    Handle a detection event and choose what to do next.

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

    Author:
    Hank Grabowski
    • Constructor Detail

      • FieldStopOnDecreasing

        public FieldStopOnDecreasing()
    • Method Detail

      • eventOccurred

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

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

        Specified by:
        eventOccurred in interface FieldEventHandler<KK extends FieldEventDetector<T>,​T extends CalculusFieldElement<T>>
        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