|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.orekit.propagation.events.EventState
public class EventState
This class handles the state for one event detector during integration steps.
This class is heavily based on the class with the same name from the Apache commons-math library. The changes
performed consist in replacing raw types (double and double arrays) with space dynamics types (AbsoluteDate,
SpacecraftState).
Each time the propagator proposes a step, the event detector should be checked. This class handles the state of one detector during one propagation step, with references to the state at the end of the preceding step. This information is used to determine if the detector should trigger an event or not during the proposed step (and hence the step should be reduced to ensure the event occurs at a bound rather than inside the step).
See Orekit issue 110 for more information. Default constructor changed in order to instanciate a bracketing solver, to solve the bracketing exception.
| Constructor Summary | |
|---|---|
EventState(EventDetector detector)
Simple constructor. |
|
EventState(EventDetector detector,
UnivariateSolver solver)
Constructor allowing the user to provide the solver used in switch detection. |
|
| Method Summary | |
|---|---|
boolean |
evaluateStep(OrekitStepInterpolator interpolator)
Evaluate the impact of the proposed step on the event detector. See Orekit issue 110 for more information. |
boolean |
evaluateStep(SpacecraftState state)
Evaluate the impact of the proposed step on the event handler. |
EventDetector |
getEventDetector()
Get the underlying event detector. |
AbsoluteDate |
getEventTime()
Get the occurrence time of the event triggered in the current step. |
boolean |
isPendingReset()
Check if some reset is being triggered. |
void |
reinitializeBegin(SpacecraftState state0)
Reinitialize the beginning of the step. |
boolean |
removeDetector()
Check if the current detector should be removed at the end of the current step. |
SpacecraftState |
reset(SpacecraftState oldState)
Let the event detector reset the state if it wants. |
void |
stepAccepted(SpacecraftState state)
Acknowledge the fact the step has been accepted by the propagator. |
boolean |
stop()
Check if the propagation should be stopped at the end of the current step. |
void |
storeState(SpacecraftState state0)
Reinitialize event state with provided time and state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventState(EventDetector detector,
UnivariateSolver solver)
detector - monitored event detectorsolver - the UnivariateSolver used in switch detectionpublic EventState(EventDetector detector)
detector - monitored event detector| Method Detail |
|---|
public EventDetector getEventDetector()
public void reinitializeBegin(SpacecraftState state0)
throws OrekitException
state0 - state value at the beginning of the step
OrekitException - if the event detector value cannot be evaluated at the beginning of the steppublic boolean isPendingReset()
public void storeState(SpacecraftState state0)
throws OrekitException
state0 - SpacecraftState current state
OrekitException - SpacecraftState
public boolean evaluateStep(SpacecraftState state)
throws OrekitException
state - current state
OrekitException - SpacecraftState
public boolean evaluateStep(OrekitStepInterpolator interpolator)
throws OrekitException,
TooManyEvaluationsException,
NoBracketingException
interpolator - step interpolator for the proposed step
OrekitException - if the switching function cannot be evaluated
TooManyEvaluationsException - if an event cannot be located
NoBracketingException - if bracketing cannot be performedpublic AbsoluteDate getEventTime()
public void stepAccepted(SpacecraftState state)
throws OrekitException
state - value of the state vector at the end of the step
OrekitException - if the value of the switching function cannot be evaluatedpublic boolean stop()
public boolean removeDetector()
public SpacecraftState reset(SpacecraftState oldState)
throws OrekitException
oldState - value of the state vector at the beginning of the next step
OrekitException - if the state cannot be reset by the event detector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||