T - type of the field elementspublic class FieldElevationDetector<T extends org.hipparchus.CalculusFieldElement<T>> extends FieldAbstractDetector<FieldElevationDetector<T>,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.
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD| Modifier | Constructor and Description |
|---|---|
|
FieldElevationDetector(org.hipparchus.Field<T> field,
TopocentricFrame topo)
Creates an instance of Elevation detector based on passed in topocentric frame
and the minimum elevation angle.
|
protected |
FieldElevationDetector(FieldAdaptableInterval<T> maxCheck,
T threshold,
int maxIter,
FieldEventHandler<T> handler,
double minElevation,
ElevationMask mask,
AtmosphericRefractionModel refractionModel,
TopocentricFrame topo)
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected FieldElevationDetector<T> |
create(FieldAdaptableInterval<T> newMaxCheck,
T newThreshold,
int newMaxIter,
FieldEventHandler<T> newHandler)
Build a new instance.
|
T |
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.
|
ElevationMask |
getElevationMask()
Returns the currently configured elevation mask.
|
double |
getMinElevation()
Returns the currently configured minimum valid elevation value.
|
AtmosphericRefractionModel |
getRefractionModel()
Returns the currently configured refraction model.
|
TopocentricFrame |
getTopocentricFrame()
Returns the currently configured topocentric frame definitions.
|
FieldElevationDetector<T> |
withConstantElevation(double newMinElevation)
Setup the minimum elevation for detection.
|
FieldElevationDetector<T> |
withElevationMask(ElevationMask newElevationMask)
Setup the elevation mask for detection using the passed in mask object.
|
FieldElevationDetector<T> |
withRefraction(AtmosphericRefractionModel newRefractionModel)
Setup the elevation detector to use an atmospheric refraction model in its
calculations.
|
getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThresholdpublic FieldElevationDetector(org.hipparchus.Field<T> field, TopocentricFrame topo)
uses default values for maximal checking interval (FieldAbstractDetector.DEFAULT_MAXCHECK)
and convergence threshold (FieldAbstractDetector.DEFAULT_THRESHOLD).
field - type of the elementstopo - reference to a topocentric modelwithConstantElevation(double),
withElevationMask(ElevationMask),
withRefraction(AtmosphericRefractionModel)public FieldElevationDetector(T maxCheck, T threshold, TopocentricFrame topo)
maxCheck - maximum checking interval (s)threshold - maximum divergence threshold (s)topo - reference to a topocentric modelwithConstantElevation(double),
withElevationMask(ElevationMask),
withRefraction(AtmosphericRefractionModel)protected FieldElevationDetector(FieldAdaptableInterval<T> maxCheck, T threshold, int maxIter, FieldEventHandler<T> handler, double minElevation, ElevationMask mask, AtmosphericRefractionModel refractionModel, TopocentricFrame topo)
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.
maxCheck - maximum checking intervalthreshold - convergence threshold (s)maxIter - maximum number of iterations in the event time searchhandler - event handler to call at event occurrencesminElevation - minimum elevation in radians (rad)mask - reference to elevation maskrefractionModel - reference to refraction modeltopo - reference to a topocentric modelprotected FieldElevationDetector<T> create(FieldAdaptableInterval<T> newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<T> newHandler)
create in class FieldAbstractDetector<FieldElevationDetector<T extends org.hipparchus.CalculusFieldElement<T>>,T extends org.hipparchus.CalculusFieldElement<T>>newMaxCheck - maximum checking intervalnewThreshold - convergence threshold (s)newMaxIter - maximum number of iterations in the event time searchnewHandler - event handler to call at event occurrencespublic ElevationMask getElevationMask()
withConstantElevation(double)withElevationMask(ElevationMask)public double getMinElevation()
Double.NaN if instance has been configured with withElevationMask(ElevationMask)withConstantElevation(double)public AtmosphericRefractionModel getRefractionModel()
withRefraction(AtmosphericRefractionModel)public TopocentricFrame getTopocentricFrame()
public T g(FieldSpacecraftState<T> s)
g in interface FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>g in class FieldAbstractDetector<FieldElevationDetector<T extends org.hipparchus.CalculusFieldElement<T>>,T extends org.hipparchus.CalculusFieldElement<T>>s - the current state information: date, kinematics, attitudepublic FieldElevationDetector<T> withConstantElevation(double newMinElevation)
This will override an elevation mask if it has been configured as such previously.
newMinElevation - minimum elevation for visibility in radians (rad)getMinElevation()public FieldElevationDetector<T> withElevationMask(ElevationMask newElevationMask)
newElevationMask - elevation mask to use for the computationgetElevationMask()public FieldElevationDetector<T> withRefraction(AtmosphericRefractionModel newRefractionModel)
To disable the refraction when copying an existing elevation detector, call this method with a null argument.
newRefractionModel - refraction model to use for the computationgetRefractionModel()Copyright © 2002-2023 CS GROUP. All rights reserved.