Class PythonFieldEventHandler<KK extends FieldEventDetector<T>,T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.events.handlers.PythonFieldEventHandler<KK,T>
-
- All Implemented Interfaces:
FieldEventHandler<KK,T>
public class PythonFieldEventHandler<KK extends FieldEventDetector<T>,T extends CalculusFieldElement<T>> extends Object implements FieldEventHandler<KK,T>
-
-
Constructor Summary
Constructors Constructor Description PythonFieldEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Action
eventOccurred(FieldSpacecraftState<T> s, KK detector, boolean increasing)
eventOccurred method mirrors the same interface method as inEventDetector
and its subclasses, but with an additional parameter that allows the calling method to pass in an object from the detector which would have potential additional data to allow the implementing class to determine the correct return state.void
finalize()
Part of JCC Python interface to objectvoid
init(FieldSpacecraftState<T> initialState, FieldAbsoluteDate<T> target)
Initialize event handler at the start of a propagation.void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to objectFieldSpacecraftState<T>
resetState(KK detector, FieldSpacecraftState<T> oldState)
Reset the state prior to continue propagation.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.events.handlers.FieldEventHandler
init
-
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
init
public void init(FieldSpacecraftState<T> initialState, FieldAbsoluteDate<T> target)
Initialize event handler at the start of a propagation.This method is called once at the start of the propagation. It may be used by the event handler to initialize some internal data if needed.
The default implementation does nothing
- Specified by:
init
in interfaceFieldEventHandler<KK extends FieldEventDetector<T>,T extends CalculusFieldElement<T>>
- Parameters:
initialState
- initial statetarget
- target date for the propagation
-
eventOccurred
public Action eventOccurred(FieldSpacecraftState<T> s, KK detector, boolean increasing)
eventOccurred method mirrors the same interface method as inEventDetector
and its subclasses, but with an additional parameter that allows the calling method to pass in an object from the detector which would have potential additional data to allow the implementing class to determine the correct return state.- Specified by:
eventOccurred
in interfaceFieldEventHandler<KK extends FieldEventDetector<T>,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
-
resetState
public FieldSpacecraftState<T> resetState(KK detector, FieldSpacecraftState<T> oldState)
Reset the state prior to continue propagation.This method is called after the step handler has returned and before the next step is started, but only when
eventOccurred(org.orekit.propagation.FieldSpacecraftState<T>, KK, boolean)
has itself returned theAction.RESET_STATE
indicator. It allows the user to reset the state for the next step, without perturbing the step handler of the finishing step. If theeventOccurred(org.orekit.propagation.FieldSpacecraftState<T>, KK, boolean)
never returns theAction.RESET_STATE
indicator, this function will never be called, and it is safe to simply return null.The default implementation simply return its argument.
- Specified by:
resetState
in interfaceFieldEventHandler<KK extends FieldEventDetector<T>,T extends CalculusFieldElement<T>>
- Parameters:
detector
- object with appropriate type that can be used in determining correct return stateoldState
- old state- Returns:
- new state
-
-