Package org.orekit.propagation.events
Class ExtremumAngularSeparationDetector
java.lang.Object
org.orekit.propagation.events.AbstractDetector<ExtremumAngularSeparationDetector>
org.orekit.propagation.events.ExtremumAngularSeparationDetector
- All Implemented Interfaces:
EventDetector
public class ExtremumAngularSeparationDetector
extends AbstractDetector<ExtremumAngularSeparationDetector>
Detector of local extrema with angular separation.
- Since:
- 13.1
- Author:
- Romain Serra
- See Also:
-
Field Summary
Fields inherited from class org.orekit.propagation.events.AbstractDetector
DEFAULT_MAX_CHECK, DEFAULT_MAX_ITER, DEFAULT_THRESHOLD -
Constructor Summary
ConstructorsConstructorDescriptionExtremumAngularSeparationDetector(EventDetectionSettings detectionSettings, EventHandler handler, ExtendedPositionProvider beacon, ExtendedPositionProvider observer) Constructor with full parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExtremumAngularSeparationDetectorcreate(EventDetectionSettings detectionSettings, EventHandler newHandler) Build a new instance.doubleg(SpacecraftState s) Compute the value of the switching function.Get the beacon at the center of the proximity zone.Get the observer for the spacecraft.Methods inherited from class org.orekit.propagation.events.AbstractDetector
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.EventDetector
finish, getMaxCheckInterval, getMaxIterationCount, getThreshold, reset
-
Constructor Details
-
ExtremumAngularSeparationDetector
public ExtremumAngularSeparationDetector(EventDetectionSettings detectionSettings, EventHandler handler, ExtendedPositionProvider beacon, ExtendedPositionProvider observer) Constructor with full parameters.- Parameters:
detectionSettings- detection settingshandler- event handler to call at event occurrencesbeacon- beacon at the center of the proximity zoneobserver- observer for the spacecraft, that may also see the beacon at the same time if they are too close to each other
-
-
Method Details
-
getBeacon
Get the beacon at the center of the proximity zone.- Returns:
- beacon at the center of the proximity zone
-
getObserver
Get the observer for the spacecraft.- Returns:
- observer for the spacecraft
-
g
Compute 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
-
create
protected ExtremumAngularSeparationDetector create(EventDetectionSettings detectionSettings, EventHandler newHandler) Build a new instance.- Specified by:
createin classAbstractDetector<ExtremumAngularSeparationDetector>- Parameters:
detectionSettings- detection settingsnewHandler- event handler to call at event occurrences- Returns:
- a new instance of the appropriate sub-type
-