Class CountAndContinue

java.lang.Object
org.orekit.propagation.events.handlers.CountAndContinue
All Implemented Interfaces:
EventHandler

public class CountAndContinue extends Object implements EventHandler
Event handler counting event occurrences and always returning Action.CONTINUE. The count cannot be reset.
Since:
13.0
Author:
Romain Serra
See Also:
  • Constructor Details

    • CountAndContinue

      public CountAndContinue()
      Constructor with count initialized at zero.
    • CountAndContinue

      public CountAndContinue(int startingCount)
      Constructor.
      Parameters:
      startingCount - value to initialize count
  • Method Details

    • getCount

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

      public Action eventOccurred(SpacecraftState s, EventDetector detector, boolean increasing)
      Description copied from interface: EventHandler
      Handle an event.
      Specified by:
      eventOccurred in interface EventHandler
      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