Class CountAndContinue
java.lang.Object
org.orekit.propagation.events.handlers.CountAndContinue
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionConstructor with count initialized at zero.CountAndContinue(int startingCount) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioneventOccurred(SpacecraftState s, EventDetector detector, boolean increasing) Handle an event.intgetCount()Getter for current count.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
-
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
Description copied from interface:EventHandlerHandle an event.- Specified by:
eventOccurredin interfaceEventHandler- Parameters:
s- SpaceCraft state to be used in the evaluationdetector- object with appropriate type that can be used in determining correct return stateincreasing- 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
-