public class PythonAbstractDetector<T extends EventDetector> extends AbstractDetector<T>
Propagator.addEventDetector(EventDetector)
,
Serialized FormDEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor and Description |
---|
PythonAbstractDetector(double maxCheck,
double threshold,
int maxIter,
EventHandler<T> handler) |
Modifier and Type | Method and Description |
---|---|
T |
create(double newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler<T> newHandler)
Build a new instance.
|
void |
finalize()
Part of JCC Python interface to object
|
double |
g(SpacecraftState s)
Compute the value of the switching function.
|
double |
getMaxCheckInterval()
Get maximal time interval between switching function checks.
|
int |
getMaxIterationCount()
Get maximal number of iterations in the event time search.
|
double |
getThreshold()
Get the convergence threshold in the event time search.
|
void |
init(SpacecraftState s0,
AbsoluteDate t)
Initialize event handler at the start of a propagation.
|
void |
pythonDecRef()
Part of JCC Python interface to object
|
long |
pythonExtension()
Part of JCC Python interface to object
|
void |
pythonExtension(long pythonObject)
Part of JCC Python interface to object
|
eventOccurred, getHandler, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
public PythonAbstractDetector(double maxCheck, double threshold, int maxIter, EventHandler<T> handler)
public void pythonExtension(long pythonObject)
public long pythonExtension()
public void finalize() throws Throwable
public void pythonDecRef()
public void init(SpacecraftState s0, AbsoluteDate t)
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.
init
in interface EventDetector
init
in class AbstractDetector<T extends EventDetector>
s0
- initial statet
- target time for the integrationpublic double g(SpacecraftState s) throws OrekitException
g
in interface EventDetector
g
in class AbstractDetector<T extends EventDetector>
s
- the current state information: date, kinematics, attitudeOrekitException
- if some specific error occurspublic double getMaxCheckInterval()
getMaxCheckInterval
in interface EventDetector
getMaxCheckInterval
in class AbstractDetector<T extends EventDetector>
public int getMaxIterationCount()
getMaxIterationCount
in interface EventDetector
getMaxIterationCount
in class AbstractDetector<T extends EventDetector>
public double getThreshold()
getThreshold
in interface EventDetector
getThreshold
in class AbstractDetector<T extends EventDetector>
public T create(double newMaxCheck, double newThreshold, int newMaxIter, EventHandler<T> newHandler)
create
in class AbstractDetector<T extends EventDetector>
newMaxCheck
- maximum checking interval (s)newThreshold
- convergence threshold (s)newMaxIter
- maximum number of iterations in the event time searchnewHandler
- event handler to call at event occurrencesCopyright © 2002-2015 CS Systèmes d'information. All rights reserved.