Serializable
, EventDetector
public class ElevationDetector extends AbstractDetector<ElevationDetector>
The default implementation behavior is to continue
propagation at raising and to stop
propagation
at setting. This can be changed by calling
AbstractDetector.withHandler(EventHandler)
after construction.
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor | Description |
---|---|
ElevationDetector(double maxCheck,
double 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.
|
ElevationDetector(TopocentricFrame topo) |
Creates an instance of Elevation detector based on passed in topocentric frame
and the minimum elevation angle.
|
Modifier and Type | Method | Description |
---|---|---|
protected ElevationDetector |
create(double newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler<? super ElevationDetector> newHandler) |
Build a new instance.
|
double |
g(SpacecraftState 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.
|
ElevationDetector |
withConstantElevation(double newMinElevation) |
Setup the minimum elevation for detection.
|
ElevationDetector |
withElevationMask(ElevationMask newElevationMask) |
Setup the elevation mask for detection using the passed in mask object.
|
ElevationDetector |
withRefraction(AtmosphericRefractionModel newRefractionModel) |
Setup the elevation detector to use an atmospheric refraction model in its
calculations.
|
eventOccurred, getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
public ElevationDetector(TopocentricFrame topo)
uses default values for maximal checking interval (AbstractDetector.DEFAULT_MAXCHECK
)
and convergence threshold (AbstractDetector.DEFAULT_THRESHOLD
).
topo
- reference to a topocentric modelwithConstantElevation(double)
,
withElevationMask(ElevationMask)
,
withRefraction(AtmosphericRefractionModel)
public ElevationDetector(double maxCheck, double 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 ElevationDetector create(double newMaxCheck, double newThreshold, int newMaxIter, EventHandler<? super ElevationDetector> newHandler)
create
in class AbstractDetector<ElevationDetector>
newMaxCheck
- maximum checking interval (s)newThreshold
- 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 double g(SpacecraftState s) throws OrekitException
g
in interface EventDetector
g
in class AbstractDetector<ElevationDetector>
s
- the current state information: date, kinematics, attitudeOrekitException
- if some specific error occurspublic ElevationDetector 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 ElevationDetector withElevationMask(ElevationMask newElevationMask)
newElevationMask
- elevation mask to use for the computationgetElevationMask()
public ElevationDetector 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-2018 CS Systèmes d'information. All rights reserved.