public class PropagationEventArgs extends EventArgs
Constructor and Description |
---|
PropagationEventArgs(JulianDate previousTime,
double[] previousState,
JulianDate currentDate,
double[] currentState,
PropagationEventTrigger trigger,
StepSizeInformation info)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCurrentState()
Gets the raw state at the end of the current step when this event is fired.
|
JulianDate |
getCurrentTime()
Gets the time at the end of the current step when this event is fired.
|
PropagationEventIndication |
getIndication()
Gets an indication of how the propagator should continue after this event.
|
double[] |
getPreviousState()
Gets the raw state at the beginning of the current step.
|
JulianDate |
getPreviousTime()
Gets the time at the beginning of the current step.
|
StepSizeInformation |
getStepSizeInformation()
Gets information about the last step taken by the integrator.
|
PropagationEventTrigger |
getTrigger()
Gets information about which method triggered this event.
|
void |
setIndication(PropagationEventIndication value)
Sets an indication of how the propagator should continue after this event.
|
void |
stopPropagation()
Sets the
Indication (get / set ) to PropagationEventIndication.STOP_PROPAGATION_AFTER_STEP
to prevent further propagation after this step. |
public PropagationEventArgs(@Nonnull JulianDate previousTime, double[] previousState, @Nonnull JulianDate currentDate, double[] currentState, @Nonnull PropagationEventTrigger trigger, @Nonnull StepSizeInformation info)
previousTime
- The time at the beginning of the current step.previousState
- The raw state at the beginning of the current step.currentDate
- The time at the end of the current step when the event is fired.currentState
- The raw state at the end of the current step when the event is fired.trigger
- Indication of which method triggered this event.info
- Information about the last step taken by the integrator.@Nonnull public final JulianDate getPreviousTime()
public final double[] getPreviousState()
@Nonnull public final JulianDate getCurrentTime()
public final double[] getCurrentState()
@Nonnull public final StepSizeInformation getStepSizeInformation()
@Nonnull public final PropagationEventTrigger getTrigger()
@Nonnull public final PropagationEventIndication getIndication()
public final void setIndication(@Nonnull PropagationEventIndication value)
public final void stopPropagation()
Indication
(get
/ set
) to PropagationEventIndication.STOP_PROPAGATION_AFTER_STEP
to prevent further propagation after this step. To continue propagation after stopping it,
call NumericalPropagator.propagate(Duration)
again or take steps manually by calling
NumericalPropagator.takeStep()
or NumericalPropagator.restep(double)
.