T - type of the field elementpublic class FieldNegateDetector<T extends org.hipparchus.CalculusFieldElement<T>> extends FieldAbstractDetector<FieldNegateDetector<T>,T>
g function.DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD| Modifier | Constructor and Description |
|---|---|
protected |
FieldNegateDetector(FieldAdaptableInterval<T> newMaxCheck,
T newThreshold,
int newMaxIter,
FieldEventHandler<T> newHandler,
FieldEventDetector<T> original)
Private constructor.
|
|
FieldNegateDetector(FieldEventDetector<T> original)
Create a new event detector that negates an existing event detector.
|
| Modifier and Type | Method and Description |
|---|---|
protected FieldNegateDetector<T> |
create(FieldAdaptableInterval<T> newMaxCheck,
T newThreshold,
int newMaxIter,
FieldEventHandler<T> newHandler)
Build a new instance.
|
T |
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.
|
FieldEventDetector<T> |
getOriginal()
Get the delegate event detector.
|
void |
init(FieldSpacecraftState<T> s0,
FieldAbsoluteDate<T> t)
Initialize event handler at the start of a propagation.
|
getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, isForward, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThresholdpublic FieldNegateDetector(FieldEventDetector<T> original)
This detector will be initialized with the same FieldEventDetector.getMaxCheckInterval(), FieldEventDetector.getThreshold(), and
FieldEventDetector.getMaxIterationCount() as original. Initially this
detector will use the FieldContinueOnEvent event handler.
original - detector.protected FieldNegateDetector(FieldAdaptableInterval<T> newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<T> newHandler, FieldEventDetector<T> original)
newMaxCheck - max check interval.newThreshold - convergence threshold in seconds.newMaxIter - max iterations.newHandler - event handler.original - event detector.public FieldEventDetector<T> getOriginal()
public void init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> t)
FieldAbstractDetectorThis 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>>init in class FieldAbstractDetector<FieldNegateDetector<T extends org.hipparchus.CalculusFieldElement<T>>,T extends org.hipparchus.CalculusFieldElement<T>>s0 - initial statet - target time for the integrationpublic T g(FieldSpacecraftState<T> s)
FieldAbstractDetectorg in interface FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>g in class FieldAbstractDetector<FieldNegateDetector<T extends org.hipparchus.CalculusFieldElement<T>>,T extends org.hipparchus.CalculusFieldElement<T>>s - the current state information: date, kinematics, attitudeprotected FieldNegateDetector<T> create(FieldAdaptableInterval<T> newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<T> newHandler)
FieldAbstractDetectorcreate in class FieldAbstractDetector<FieldNegateDetector<T extends org.hipparchus.CalculusFieldElement<T>>,T extends org.hipparchus.CalculusFieldElement<T>>newMaxCheck - maximum checking intervalnewThreshold - convergence threshold (s)newMaxIter - maximum number of iterations in the event time searchnewHandler - event handler to call at event occurrencesCopyright © 2002-2023 CS GROUP. All rights reserved.