Class CountAndContinue
- java.lang.Object
-
- org.orekit.propagation.events.handlers.CountingHandler
-
- org.orekit.propagation.events.handlers.CountAndContinue
-
- All Implemented Interfaces:
EventHandler
public class CountAndContinue extends CountingHandler
Event handler counting event occurrences and always returningAction.CONTINUE
.- Since:
- 13.0
- Author:
- Romain Serra
- See Also:
CountingHandler
-
-
Constructor Summary
Constructors Constructor Description CountAndContinue()
Constructor with count initialized at zero.CountAndContinue(int startingCount)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doesCount(SpacecraftState state, EventDetector 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.CountingHandler
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.EventHandler
finish, init, resetState
-
-
-
-
Method Detail
-
doesCount
protected boolean doesCount(SpacecraftState state, EventDetector detector, boolean increasing)
Method returning true if and only if the count needs to be incremented.- Specified by:
doesCount
in classCountingHandler
- 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.
-
-