Class FieldCountAndContinue<T extends CalculusFieldElement<T>>

    • Constructor Detail

      • FieldCountAndContinue

        public FieldCountAndContinue()
        Constructor with initial count at zero.
      • FieldCountAndContinue

        public FieldCountAndContinue​(int startingCount)
        Constructor.
        Parameters:
        startingCount - value to initialize count
    • Method Detail

      • getCount

        public int getCount()
        Getter for current count.
        Returns:
        count
      • eventOccurred

        public Action eventOccurred​(FieldSpacecraftState<T> s,
                                    FieldEventDetector<T> detector,
                                    boolean increasing)
        Description copied from interface: FieldEventHandler
        Handle an event.
        Specified by:
        eventOccurred in interface FieldEventHandler<T extends CalculusFieldElement<T>>
        Parameters:
        s - SpaceCraft state to be used in the evaluation
        detector - object with appropriate type that can be used in determining correct return state
        increasing - with the event occurred in an "increasing" or "decreasing" slope direction
        Returns:
        the Action that the calling detector should pass back to the evaluation system