Class FieldCountAndContinue<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.events.handlers.FieldCountAndContinue<T>
-
- All Implemented Interfaces:
FieldEventHandler<T>
public class FieldCountAndContinue<T extends CalculusFieldElement<T>> extends Object implements FieldEventHandler<T>
Event handler counting event occurrences and always returningAction.CONTINUE. The count cannot be reset.- Since:
- 13.0
- Author:
- Romain Serra
-
-
Constructor Summary
Constructors Constructor Description FieldCountAndContinue()Constructor with initial count at zero.FieldCountAndContinue(int startingCount)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActioneventOccurred(FieldSpacecraftState<T> s, FieldEventDetector<T> 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, wait
-
Methods inherited from interface org.orekit.propagation.events.handlers.FieldEventHandler
finish, init, resetState
-
-
-
-
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:FieldEventHandlerHandle an event.- Specified by:
eventOccurredin interfaceFieldEventHandler<T extends CalculusFieldElement<T>>- 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
-
-