Class StopOnDecreasing

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

public class StopOnDecreasing extends Object implements EventHandler
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 Details

    • StopOnDecreasing

      public StopOnDecreasing()
      Empty constructor.

      This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.

      Since:
      12.0
  • Method Details

    • eventOccurred

      public Action eventOccurred(SpacecraftState s, EventDetector 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
      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