Package org.hipparchus.ode.events
Class EventOccurrence
java.lang.Object
org.hipparchus.ode.events.EventOccurrence
Class to hold the data related to an event occurrence that is needed to decide how
to modify integration.
- Since:
- 3.O
-
Constructor Summary
ConstructorDescriptionEventOccurrence
(Action action, ODEState newState, double stopTime) Create a new occurrence of an event. -
Method Summary
Modifier and TypeMethodDescriptionGet the user requested action.Get the new state for a reset action.double
Get the new time for a stop action.
-
Constructor Details
-
EventOccurrence
Create a new occurrence of an event.- Parameters:
action
- the user requested action.newState
- for a reset event. Should be the current state unless the action isAction.RESET_STATE
.stopTime
- to stop propagation if the action isAction.STOP
. Used to move the stop time to just after the root.
-
-
Method Details
-
getAction
Get the user requested action.- Returns:
- the action.
-
getNewState
Get the new state for a reset action.- Returns:
- the new state.
-
getStopTime
public double getStopTime()Get the new time for a stop action.- Returns:
- when to stop propagation.
-