Class FieldElevationDetector<T extends CalculusFieldElement<T>>
- Type Parameters:
T- type of the field elements
- All Implemented Interfaces:
FieldEventDetector<T>
The default implementation behavior is to continue
propagation at raising and to stop propagation
at setting. This can be changed by calling
FieldAbstractDetector.withHandler(FieldEventHandler) after construction.
- Author:
- Hank Grabowski
-
Field Summary
Fields inherited from class org.orekit.propagation.events.FieldAbstractDetector
DEFAULT_MAX_CHECK, DEFAULT_MAX_ITER, DEFAULT_THRESHOLD -
Constructor Summary
ConstructorsConstructorDescriptionFieldElevationDetector(Field<T> field, TopocentricFrame topo) Creates an instance of Elevation detector based on passed in topocentric frame and the minimum elevation angle.FieldElevationDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, AbstractElevationCrossingFunction elevationCrossingFunction) Protected constructor with full parameters.FieldElevationDetector(T maxCheck, T threshold, TopocentricFrame topo) Creates an instance of Elevation detector based on passed in topocentric frame and overrides of default maximal checking interval and convergence threshold values. -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldElevationDetector<T> create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler) Build a new instance.g(FieldSpacecraftState<T> s) Compute the value of the switching function.Returns the currently configured elevation mask.doubleReturns the currently configured minimum valid elevation value.Returns the currently configured refraction model.toEventDetector(EventHandler eventHandler) Build non-Field instance.withConstantElevation(double newMinElevation) Setup the minimum elevation for detection.withElevationMask(ElevationMask newElevationMask) Setup the elevation mask for detection using the passed in mask object.withRefraction(AtmosphericRefractionModel newRefractionModel) Setup the elevation detector to use an atmospheric refraction model in its calculations.Methods inherited from class org.orekit.propagation.events.FieldAbstractTopocentricDetector
getElevation, getTopocentricFrameMethods 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
-
FieldElevationDetector
Creates an instance of Elevation detector based on passed in topocentric frame and the minimum elevation angle.uses default values for maximal checking interval (
FieldAbstractDetector.DEFAULT_MAX_CHECK) and convergence threshold (FieldAbstractDetector.DEFAULT_THRESHOLD).- Parameters:
field- type of the elementstopo- reference to a topocentric model- See Also:
-
FieldElevationDetector
Creates an instance of Elevation detector based on passed in topocentric frame and overrides of default maximal checking interval and convergence threshold values.- Parameters:
maxCheck- maximum checking interval (s)threshold- maximum divergence threshold (s)topo- reference to a topocentric model- See Also:
-
FieldElevationDetector
public FieldElevationDetector(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> handler, AbstractElevationCrossingFunction elevationCrossingFunction) 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- detection settingshandler- event handler to call at event occurrenceselevationCrossingFunction- elevation crossing function- Since:
- 14.0
-
-
Method Details
-
create
protected FieldElevationDetector<T> create(FieldEventDetectionSettings<T> detectionSettings, FieldEventHandler<T> newHandler) Build a new instance.- Specified by:
createin classFieldAbstractDetector<FieldElevationDetector<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
-
getElevationMask
Returns the currently configured elevation mask.- Returns:
- elevation mask
(null if instance has been configured with
withConstantElevation(double) - See Also:
-
getMinElevation
public double getMinElevation()Returns the currently configured minimum valid elevation value.- Returns:
- minimum elevation value
(
Double.NaNif instance has been configured withwithElevationMask(ElevationMask) - See Also:
-
getRefractionModel
Returns the currently configured refraction model.- Returns:
- refraction model
- See Also:
-
g
Compute the value of the switching function. This function measures the difference between the current elevation (and azimuth if necessary) and the reference mask or minimum value.- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
withConstantElevation
Setup the minimum elevation for detection.This will override an elevation mask if it has been configured as such previously.
- Parameters:
newMinElevation- minimum elevation for visibility in radians (rad)- Returns:
- a new detector with updated configuration (the instance is not changed)
- Since:
- 6.1
- See Also:
-
withElevationMask
Setup the elevation mask for detection using the passed in mask object.- Parameters:
newElevationMask- elevation mask to use for the computation- Returns:
- a new detector with updated configuration (the instance is not changed)
- Since:
- 6.1
- See Also:
-
withRefraction
Setup the elevation detector to use an atmospheric refraction model in its calculations.To disable the refraction when copying an existing elevation detector, call this method with a null argument.
- Parameters:
newRefractionModel- refraction model to use for the computation- Returns:
- a new detector with updated configuration (the instance is not changed)
- Since:
- 6.1
- See Also:
-
toEventDetector
Build non-Field instance.- Overrides:
toEventDetectorin classFieldAbstractDetector<FieldElevationDetector<T extends CalculusFieldElement<T>>,T extends CalculusFieldElement<T>> - Parameters:
eventHandler- event handler- Returns:
- event detector
-