Serializable
, EventDetector
public class NegateDetector extends AbstractDetector<NegateDetector>
g
function.DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor | Description |
---|---|
NegateDetector(EventDetector original) |
Create a new event detector that negates an existing event detector.
|
Modifier and Type | Method | 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, withThreshold
public 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) throws OrekitException
AbstractDetector
This 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
This implementation sets the direction of propagation and initializes the event
handler. If a subclass overrides this method it should call
super.init(s0, t)
.
init
in interface EventDetector
init
in class AbstractDetector<NegateDetector>
s0
- initial statet
- target time for the integrationOrekitException
- if some specific error occurspublic double g(SpacecraftState s) throws OrekitException
AbstractDetector
g
in interface EventDetector
g
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)
AbstractDetector
create
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-2018 CS Systèmes d'information. All rights reserved.