public class AdapterDetector extends Object implements EventDetector
This class is intended to be a base class for changing behaviour of a wrapped existing detector. This base class delegates all its methods to the wrapped detector. Classes extending it can therefore override only the methods they want to change.
Constructor and Description |
---|
AdapterDetector(EventDetector detector)
Build an adaptor wrapping an existing detector.
|
Modifier and Type | Method and Description |
---|---|
double |
g(SpacecraftState s)
Compute the value of the switching function.
|
EventDetector |
getDetector()
Get the wrapped detector.
|
EventHandler |
getHandler()
Get the handler.
|
AdaptableInterval |
getMaxCheckInterval()
Get maximal time interval between switching function checks.
|
int |
getMaxIterationCount()
Get maximal number of iterations in the event time search.
|
double |
getThreshold()
Get the convergence threshold in the event time search.
|
void |
init(SpacecraftState s0,
AbsoluteDate t)
Initialize event handler at the start of a propagation.
|
public AdapterDetector(EventDetector detector)
detector
- detector to wrappublic EventDetector getDetector()
public void init(SpacecraftState s0, AbsoluteDate t)
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
init
in interface EventDetector
s0
- initial statet
- target time for the integrationpublic double g(SpacecraftState s)
g
in interface EventDetector
s
- the current state information: date, kinematics, attitudepublic double getThreshold()
getThreshold
in interface EventDetector
public AdaptableInterval getMaxCheckInterval()
getMaxCheckInterval
in interface EventDetector
public int getMaxIterationCount()
getMaxIterationCount
in interface EventDetector
public EventHandler getHandler()
getHandler
in interface EventDetector
Copyright © 2002-2023 CS GROUP. All rights reserved.