Serializable
, EventDetector
public class LongitudeExtremumDetector extends AbstractDetector<LongitudeExtremumDetector>
This detector identifies when a spacecraft reaches its extremum longitudes with respect to a central body.
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor | Description |
---|---|
LongitudeExtremumDetector(double maxCheck,
double threshold,
OneAxisEllipsoid body) |
Build a detector.
|
LongitudeExtremumDetector(OneAxisEllipsoid body) |
Build a new detector.
|
Modifier and Type | Method | Description |
---|---|---|
protected LongitudeExtremumDetector |
create(double newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler<? super LongitudeExtremumDetector> newHandler) |
Build a new instance.
|
double |
g(SpacecraftState s) |
Compute the value of the detection function.
|
BodyShape |
getBody() |
Get the body on which the geographic zone is defined.
|
eventOccurred, getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
public LongitudeExtremumDetector(OneAxisEllipsoid body)
The new instance uses default values for maximal checking interval
(AbstractDetector.DEFAULT_MAXCHECK
) and convergence threshold (AbstractDetector.DEFAULT_THRESHOLD
).
body
- body on which the longitude is definedpublic LongitudeExtremumDetector(double maxCheck, double threshold, OneAxisEllipsoid body)
maxCheck
- maximal checking interval (s)threshold
- convergence threshold (s)body
- body on which the longitude is definedprotected LongitudeExtremumDetector create(double newMaxCheck, double newThreshold, int newMaxIter, EventHandler<? super LongitudeExtremumDetector> newHandler)
create
in class AbstractDetector<LongitudeExtremumDetector>
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 BodyShape getBody()
public double g(SpacecraftState s) throws OrekitException
The value is the spacecraft longitude time derivative.
g
in interface EventDetector
g
in class AbstractDetector<LongitudeExtremumDetector>
s
- the current state information: date, kinematics, attitudeOrekitException
- if some specific error occursCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.