Class StopOnIncreasing
java.lang.Object
org.orekit.propagation.events.handlers.StopOnIncreasing
- All Implemented Interfaces:
EventHandler
Handle a detection event and choose what to do next.
The implementation behavior is to continue propagation when descending and to
stop propagation when ascending.
- Since:
- 6.1
- Author:
- Hank Grabowski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneventOccurred(SpacecraftState s, EventDetector detector, boolean increasing) Handle a detection event and choose what to do next.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.handlers.EventHandler
finish, init, resetState
-
Constructor Details
-
StopOnIncreasing
public StopOnIncreasing()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
Handle a detection event and choose what to do next.The implementation behavior is to
continuepropagation when descending and tostoppropagation when ascending.- Specified by:
eventOccurredin interfaceEventHandler- Parameters:
s- the current state information : date, kinematics, attitudedetector- 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.STOPorAction.CONTINUE
-