public class NegateDetector extends AbstractDetector<NegateDetector>
g function.DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD| Constructor and Description |
|---|
NegateDetector(EventDetector original)
Create a new event detector that negates an existing event detector.
|
| Modifier and Type | Method and Description |
|---|---|
protected NegateDetector |
create(double newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler<? super NegateDetector> newHandler)
Build a new instance.
|
double |
g(SpacecraftState s)
Compute the value of the switching function.
|
void |
init(SpacecraftState s0,
AbsoluteDate t)
Initialize event handler at the start of a propagation.
|
eventOccurred, getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, isForward, resetState, withHandler, withMaxCheck, withMaxIter, withThresholdpublic NegateDetector(EventDetector original)
This detector will be initialized with the same EventDetector.getMaxCheckInterval(), EventDetector.getThreshold(), and
EventDetector.getMaxIterationCount() as original. Initially this
detector will use the ContinueOnEvent event handler.
original - detector.public void init(SpacecraftState s0, AbsoluteDate t)
AbstractDetectorThis method is called once at the start of the propagation. It may be used by the event handler to initialize some internal data if needed.
The default implementation does nothing
init in interface EventDetectorinit in class AbstractDetector<NegateDetector>s0 - initial statet - target time for the integrationpublic double g(SpacecraftState s) throws OrekitException
AbstractDetectorg in interface EventDetectorg in class AbstractDetector<NegateDetector>s - the current state information: date, kinematics, attitudeOrekitException - if some specific error occursprotected NegateDetector create(double newMaxCheck, double newThreshold, int newMaxIter, EventHandler<? super NegateDetector> newHandler)
AbstractDetectorcreate in class AbstractDetector<NegateDetector>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 occurrencesCopyright © 2002-2017 CS Systèmes d'information. All rights reserved.