Package org.orekit.propagation.events
Class FieldLongitudeExtremumDetector<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.events.FieldAbstractDetector<D,T>
-
- org.orekit.propagation.events.FieldAbstractGeographicalDetector<FieldLongitudeExtremumDetector<T>,T>
-
- org.orekit.propagation.events.FieldLongitudeExtremumDetector<T>
-
- Type Parameters:
T- type of the field elements
- All Implemented Interfaces:
FieldEventDetector<T>
public class FieldLongitudeExtremumDetector<T extends CalculusFieldElement<T>> extends FieldAbstractGeographicalDetector<FieldLongitudeExtremumDetector<T>,T>
Detector for longitude extrema.- Since:
- 14.0
- Author:
- Romain Serra
- See Also:
LongitudeExtremumDetector
-
-
Field Summary
-
Fields inherited from class org.orekit.propagation.events.FieldAbstractDetector
DEFAULT_MAX_CHECK, DEFAULT_MAX_ITER, DEFAULT_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description FieldLongitudeExtremumDetector(Field<T> field, BodyShape body)Build a new detector.FieldLongitudeExtremumDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, BodyShape body)Constructor with full parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FieldLongitudeExtremumDetector<T>create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler)Build a new instance.Tg(FieldSpacecraftState<T> s)Compute the value of the switching function.-
Methods inherited from class org.orekit.propagation.events.FieldAbstractGeographicalDetector
getBodyShape
-
Methods inherited from class org.orekit.propagation.events.FieldAbstractDetector
checkIfForward, getDetectionSettings, getHandler, init, isForward, withDetectionSettings, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThreshold
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.events.FieldEventDetector
dependsOnMainVariablesOnly, dependsOnTimeOnly, finish, getMaxCheckInterval, getMaxIterationCount, getThreshold, reset
-
-
-
-
Constructor Detail
-
FieldLongitudeExtremumDetector
public FieldLongitudeExtremumDetector(Field<T> field, BodyShape body)
Build a new detector.The new instance uses default values for maximal checking interval (
FieldAbstractDetector.DEFAULT_MAX_CHECK) and convergence threshold (FieldAbstractDetector.DEFAULT_THRESHOLD).- Parameters:
field- the type of numbers to use.body- body on which the longitude is defined
-
FieldLongitudeExtremumDetector
public FieldLongitudeExtremumDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, BodyShape body)
Constructor with full parameters.This constructor is not public as users are expected to use the builder API with the various
withXxx()methods to set up the instance in a readable manner without using a huge amount of parameters.- Parameters:
detectionSettings- event detection settingshandler- event handler to call at event occurrencesbody- body on which the longitude is defined- Since:
- 13.0
-
-
Method Detail
-
create
protected FieldLongitudeExtremumDetector<T> create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler)
Build a new instance.- Specified by:
createin classFieldAbstractDetector<FieldLongitudeExtremumDetector<T extends CalculusFieldElement<T>>,T extends CalculusFieldElement<T>>- Parameters:
detectionSettings- detection settingsnewHandler- event handler to call at event occurrences- Returns:
- a new instance of the appropriate sub-type
-
g
public T g(FieldSpacecraftState<T> s)
Description copied from interface:FieldEventDetectorCompute 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.- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
-