|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.orekit.propagation.events.CombinedEventsDetectorsManager
public class CombinedEventsDetectorsManager
This class manages several event detectors during propagation.
This class is heavily based on the CombinedEventsManager class from the
Apache commons-math library. The changes performed consist in replacing
raw types (double and double arrays) with space dynamics types
(AbsoluteDate, SpacecraftState).
EventDetector,
Serialized Form| Constructor Summary | |
|---|---|
CombinedEventsDetectorsManager()
Simple constructor. |
|
| Method Summary | |
|---|---|
void |
addEventDetector(EventDetector detector)
Add an event detector. |
void |
clearEventsDetectors()
Remove all the events detectors that have been added to the handler. |
boolean |
evaluateStep(OrekitStepInterpolator interpolator)
Evaluate the impact of the proposed step on all handled events detectors. |
java.util.Collection<EventDetector> |
getEventsDetectors()
Get all the events detectors that have been added to the manager. |
AbsoluteDate |
getEventTime()
Get the occurrence time of the first event triggered in the last evaluated step. |
SpacecraftState |
reset(SpacecraftState oldSpacecraftState)
Let the events detectors reset the state if they want. |
void |
stepAccepted(SpacecraftState spacecraftState)
Inform the events detectors that the step has been accepted by the propagator. |
boolean |
stop()
Check if the propagation should be stopped at the end of the current step. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CombinedEventsDetectorsManager()
| Method Detail |
|---|
public void addEventDetector(EventDetector detector)
detector - event detector to addgetEventsDetectors(),
clearEventsDetectors()public java.util.Collection<EventDetector> getEventsDetectors()
addEventDetector(EventDetector),
clearEventsDetectors()public void clearEventsDetectors()
addEventDetector(EventDetector),
getEventsDetectors()
public boolean evaluateStep(OrekitStepInterpolator interpolator)
throws OrekitException,
org.apache.commons.math.ConvergenceException
interpolator - step interpolator for the proposed step
OrekitException - if the interpolator fails to
compute the function somewhere within the step
org.apache.commons.math.ConvergenceException - if an event cannot be locatedpublic AbsoluteDate getEventTime()
public void stepAccepted(SpacecraftState spacecraftState)
throws OrekitException
spacecraftState - state value at the end of the step
OrekitException - if the value of one of the
events detectors cannot be evaluatedpublic boolean stop()
public SpacecraftState reset(SpacecraftState oldSpacecraftState)
throws OrekitException
If several detectors reset the state at the same time, the former changes will be overriden by later changes, and only the last change will be returned. A better way to handle this is to use only one event detector for simultaneous changes.
oldSpacecraftState - value of the state vector at the beginning of the next step
OrekitException - if one of the events detectors
that should reset the state fails to do it
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||