Class FieldRelativeDistanceDetector<T extends CalculusFieldElement<T>>
- Type Parameters:
T- type of the field elements
- All Implemented Interfaces:
FieldEventDetector<T>
The default implementation behavior is to stop propagation.
This can be changed by calling FieldAbstractDetector.withHandler(org.orekit.propagation.events.handlers.FieldEventHandler) after construction.
As this detector needs two objects (moving relative to each other), it embeds one
coordinates provider for the secondary object and is registered as an event detector in
the propagator of the primary object. The secondary object coordinates provider will
therefore be driven by this detector (and hence by the propagator in which this detector is registered).
For efficiency reason during the event search loop, it is recommended to have the secondary provider be an analytical propagator or an ephemeris. A numerical propagator as a secondary propagator works but is expected to be computationally costly.
- Since:
- 12.1
- Author:
- Romain Serra
- See Also:
-
Field Summary
Fields inherited from class org.orekit.propagation.events.FieldAbstractDetector
DEFAULT_MAX_CHECK, DEFAULT_MAX_ITER, DEFAULT_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFieldRelativeDistanceDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, FieldPVCoordinatesProvider<T> secondaryPVProvider, T distanceThreshold) Constructor.FieldRelativeDistanceDetector(FieldPVCoordinatesProvider<T> secondaryPVProvider, T distanceThreshold) Constructor with default values. -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldRelativeDistanceDetector<T> create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler) Build a new instance.g(FieldSpacecraftState<T> s) Thegis positive when the relative distance is larger or equal than the threshold, non-positive otherwise.Get the relative distance threshold.Get the secondary position-velocity provider stored in this instance.Methods inherited from class org.orekit.propagation.events.FieldAbstractDetector
checkIfForward, getDetectionSettings, getEventFunction, getHandler, init, isForward, toEventDetector, 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
-
FieldRelativeDistanceDetector
public FieldRelativeDistanceDetector(FieldPVCoordinatesProvider<T> secondaryPVProvider, T distanceThreshold) Constructor with default values.By default, the implemented behavior is to
stoppropagation at detection.- Parameters:
secondaryPVProvider- PVCoordinates provider of the other object defining relative distance.distanceThreshold- Relative distance threshold for event detection
-
FieldRelativeDistanceDetector
protected FieldRelativeDistanceDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, FieldPVCoordinatesProvider<T> secondaryPVProvider, T distanceThreshold) Constructor.This constructor is to be used if the user wants to change the default behavior of the detector.
- Parameters:
detectionSettings- Detection settings.handler- Event handler to call at event occurrences.secondaryPVProvider- PVCoordinates provider of the other object defining relative distance.distanceThreshold- Relative distance threshold for event detection- Since:
- 12.2
- See Also:
-
-
Method Details
-
g
Thegis positive when the relative distance is larger or equal than the threshold, non-positive otherwise.- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
create
protected FieldRelativeDistanceDetector<T> create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler) Build a new instance.- Specified by:
createin classFieldAbstractDetector<FieldRelativeDistanceDetector<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
-
getSecondaryPVProvider
Get the secondary position-velocity provider stored in this instance.- Returns:
- the secondary position-velocity provider stored in this instance
-
getDistanceThreshold
Get the relative distance threshold.- Returns:
- threshold triggering detection
-