T
- type of the field elementpublic class FieldAdapterDetector<T extends org.hipparchus.CalculusFieldElement<T>> extends Object implements FieldEventDetector<T>
This class is intended to be a base class for changing behaviour of a wrapped existing detector. This base class delegates all its methods to the wrapped detector. Classes extending it can therefore override only the methods they want to change.
Constructor and Description |
---|
FieldAdapterDetector(FieldEventDetector<T> detector)
Build an adaptor wrapping an existing detector.
|
Modifier and Type | Method and Description |
---|---|
T |
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.
|
FieldEventDetector<T> |
getDetector()
Get the wrapped detector.
|
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.
|
public FieldAdapterDetector(FieldEventDetector<T> detector)
detector
- detector to wrappublic FieldEventDetector<T> getDetector()
public void init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> 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.
The default implementation does nothing
init
in interface FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>
s0
- initial statet
- target time for the integrationpublic T g(FieldSpacecraftState<T> s)
g
in interface FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>
s
- the current state information: date, kinematics, attitudepublic T getThreshold()
getThreshold
in interface FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>
public FieldAdaptableInterval<T> getMaxCheckInterval()
getMaxCheckInterval
in interface FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>
public int getMaxIterationCount()
getMaxIterationCount
in interface FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>
public FieldEventHandler<T> getHandler()
getHandler
in interface FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>
Copyright © 2002-2023 CS GROUP. All rights reserved.