Class FieldAltitudeDetector<T extends CalculusFieldElement<T>>
- Type Parameters:
T- type of the field elements
- All Implemented Interfaces:
FieldEventDetector<T>
This class finds altitude events (i.e. satellite crossing a predefined altitude level above ground).
The default implementation behavior is to continue propagation when ascending and to stop
propagation when descending. This can be changed by calling
FieldAbstractDetector.withHandler(FieldEventHandler) after construction.
- Since:
- 9.0
- Author:
- Luc Maisonobe
- See Also:
-
Field Summary
Fields inherited from class org.orekit.propagation.events.FieldAbstractDetector
DEFAULT_MAX_CHECK, DEFAULT_MAX_ITER, DEFAULT_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFieldAltitudeDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, T altitude, BodyShape bodyShape) Protected constructor with full parameters.FieldAltitudeDetector(T altitude, BodyShape bodyShape) Build a new altitude detector.FieldAltitudeDetector(T maxCheck, T altitude, BodyShape bodyShape) Build a new altitude detector.FieldAltitudeDetector(T maxCheck, T threshold, T altitude, BodyShape bodyShape) Build a new altitude detector. -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldAltitudeDetector<T> create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler) Build a new instance.g(FieldSpacecraftState<T> s) Compute the value of the switching function.Get the threshold altitude value.toEventDetector(EventHandler eventHandler) Build non-Field instance.Methods inherited from class org.orekit.propagation.events.FieldAbstractGeographicalDetector
getBodyShapeMethods inherited from class org.orekit.propagation.events.FieldAbstractDetector
checkIfForward, getDetectionSettings, getEventFunction, getHandler, init, isForward, withDetectionSettings, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThresholdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.FieldEventDetector
finish, getMaxCheckInterval, getMaxIterationCount, getThreshold, reset
-
Constructor Details
-
FieldAltitudeDetector
Build a new altitude detector.This simple constructor takes default values for maximal checking interval (
FieldAbstractDetector.DEFAULT_MAX_CHECK) and convergence threshold (FieldAbstractDetector.DEFAULT_THRESHOLD).- Parameters:
altitude- threshold altitude valuebodyShape- body shape with respect to which altitude should be evaluated
-
FieldAltitudeDetector
Build a new altitude detector.This simple constructor takes default value for convergence threshold (
FieldAbstractDetector.DEFAULT_THRESHOLD).The maximal interval between altitude checks should be smaller than the half duration of the minimal pass to handle, otherwise some short passes could be missed.
- Parameters:
maxCheck- maximal checking interval (s)altitude- threshold altitude value (m)bodyShape- body shape with respect to which altitude should be evaluated
-
FieldAltitudeDetector
Build a new altitude detector.The maximal interval between altitude checks should be smaller than the half duration of the minimal pass to handle, otherwise some short passes could be missed.
The maximal interval between altitude checks should be smaller than the half duration of the minimal pass to handle, otherwise some short passes could be missed.
- Parameters:
maxCheck- maximal checking interval (s)threshold- convergence threshold (s)altitude- threshold altitude value (m)bodyShape- body shape with respect to which altitude should be evaluated
-
FieldAltitudeDetector
protected FieldAltitudeDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, T altitude, BodyShape bodyShape) Protected 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 occurrencesaltitude- threshold altitude value (m)bodyShape- body shape with respect to which altitude should be evaluated- Since:
- 13.0
-
-
Method Details
-
create
protected FieldAltitudeDetector<T> create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler) Build a new instance.- Specified by:
createin classFieldAbstractDetector<FieldAltitudeDetector<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
-
getAltitude
Get the threshold altitude value.- Returns:
- the threshold altitude value (m)
-
g
Compute the value of the switching function. This function measures the difference between the current altitude and the threshold altitude.- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
toEventDetector
Build non-Field instance.- Overrides:
toEventDetectorin classFieldAbstractDetector<FieldAltitudeDetector<T extends CalculusFieldElement<T>>,T extends CalculusFieldElement<T>> - Parameters:
eventHandler- event handler- Returns:
- event detector
-