Class FieldCountAndContinue<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.events.handlers.FieldCountingHandler<T>
-
- org.orekit.propagation.events.handlers.FieldCountAndContinue<T>
-
- All Implemented Interfaces:
FieldEventHandler<T>
public class FieldCountAndContinue<T extends CalculusFieldElement<T>> extends FieldCountingHandler<T>
Event handler counting event occurrences and always returningAction.CONTINUE
.- Since:
- 13.0
- Author:
- Romain Serra
-
-
Constructor Summary
Constructors Constructor Description FieldCountAndContinue(int startingCount)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doesCount(FieldSpacecraftState<T> state, FieldEventDetector<T> detector, boolean increasing)
Method returning true if and only if the count needs to be incremented.protected Action
getAction()
Protected getter for the action to return.int
getCount()
Getter for count.protected void
increment()
Increment count.void
reset()
Reset count.protected void
setAction(Action action)
Protected setter for action.-
Methods inherited from class org.orekit.propagation.events.handlers.FieldCountingHandler
eventOccurred
-
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
-
doesCount
protected boolean doesCount(FieldSpacecraftState<T> state, FieldEventDetector<T> detector, boolean increasing)
Method returning true if and only if the count needs to be incremented.- Specified by:
doesCount
in classFieldCountingHandler<T extends CalculusFieldElement<T>>
- Parameters:
state
- state at detectiondetector
- detectorincreasing
- flag on direction of event function- Returns:
- flag on counting
-
getCount
public int getCount()
Getter for count.- Returns:
- count
-
getAction
protected Action getAction()
Protected getter for the action to return.- Returns:
- action
-
setAction
protected void setAction(Action action)
Protected setter for action.- Parameters:
action
- new action
-
reset
public void reset()
Reset count.
-
increment
protected void increment()
Increment count.
-
-