Package org.orekit.propagation.events
Class PythonFieldEventDetector<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.events.PythonFieldEventDetector<T>
-
- All Implemented Interfaces:
FieldEventDetector<T>
public class PythonFieldEventDetector<T extends CalculusFieldElement<T>> extends Object implements FieldEventDetector<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected long
pythonObject
Part of JCC Python interface to object
-
Constructor Summary
Constructors Constructor Description PythonFieldEventDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
T
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.FieldEventHandler<T>
getHandler()
Get the handler.FieldAdaptableInterval<T>
getMaxCheckInterval()
Get maximal time interval between switching function checks.int
getMaxIterationCount()
Get maximal number of iterations in the event time search.T
getThreshold()
Get the convergence threshold in the event time search.void
init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> t)
Initialize event handler at the start of a propagation.void
pythonDecRef()
long
pythonExtension()
void
pythonExtension(long pythonObject)
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
-
pythonExtension
public long pythonExtension()
-
finalize
public void finalize() throws Throwable
-
pythonDecRef
public void pythonDecRef()
-
init
public void init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> t)
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 interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Parameters:
s0
- initial statet
- target time for the integration
-
g
public T g(FieldSpacecraftState<T> s)
Compute the value of the switching function. This function must be continuous (at least in its roots neighborhood), as the integrator will need to find its roots to locate the events.- Specified by:
g
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Parameters:
s
- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
getThreshold
public T getThreshold()
Get the convergence threshold in the event time search.- Specified by:
getThreshold
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Returns:
- convergence threshold (s)
-
getMaxCheckInterval
public FieldAdaptableInterval<T> getMaxCheckInterval()
Get maximal time interval between switching function checks.- Specified by:
getMaxCheckInterval
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Returns:
- maximal time interval (s) between switching function checks
-
getMaxIterationCount
public int getMaxIterationCount()
Get maximal number of iterations in the event time search.- Specified by:
getMaxIterationCount
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Returns:
- maximal number of iterations in the event time search
-
getHandler
public FieldEventHandler<T> getHandler()
Description copied from interface:FieldEventDetector
Get the handler.- Specified by:
getHandler
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Returns:
- event handler to call at event occurrences
-
-