@Deprecated
public class CombinedEventsManager
extends java.lang.Object
event handlers
during integration.EventHandler
,
EventState
Constructor and Description |
---|
CombinedEventsManager()
Deprecated.
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(EventHandler handler,
double maxCheckInterval,
double convergence,
int maxIterationCount)
Deprecated.
Add an events handler.
|
void |
clearEventsHandlers()
Deprecated.
Remove all the events handlers that have been added to the manager.
|
boolean |
evaluateStep(StepInterpolator interpolator)
Deprecated.
Evaluate the impact of the proposed step on all managed
event handlers.
|
java.util.Collection<EventHandler> |
getEventsHandlers()
Deprecated.
Get all the events handlers that have been added to the manager.
|
java.util.Collection<EventState> |
getEventsStates()
Deprecated.
Get all the events state wrapping the handlers that have been added to the manager.
|
double |
getEventTime()
Deprecated.
Get the occurrence time of the first event triggered in the
last evaluated step.
|
boolean |
isEmpty()
Deprecated.
Check if the manager does not manage any event handlers.
|
boolean |
reset(double t,
double[] y)
Deprecated.
Let the event handlers reset the state if they want.
|
void |
stepAccepted(double t,
double[] y)
Deprecated.
Inform the event handlers that the step has been accepted
by the integrator.
|
boolean |
stop()
Deprecated.
Check if the integration should be stopped at the end of the
current step.
|
public CombinedEventsManager()
public void addEventHandler(EventHandler handler, double maxCheckInterval, double convergence, int maxIterationCount)
handler
- event handlermaxCheckInterval
- maximal time interval between events
checks (this interval prevents missing sign changes in
case the integration steps becomes very large)convergence
- convergence threshold in the event time searchmaxIterationCount
- upper limit of the iteration count in
the event time searchgetEventsHandlers()
,
clearEventsHandlers()
public java.util.Collection<EventHandler> getEventsHandlers()
addEventHandler(EventHandler, double, double, int)
,
clearEventsHandlers()
,
getEventsStates()
public void clearEventsHandlers()
public java.util.Collection<EventState> getEventsStates()
getEventsHandlers()
public boolean isEmpty()
public boolean evaluateStep(StepInterpolator interpolator) throws DerivativeException, IntegratorException
interpolator
- step interpolator for the proposed stepDerivativeException
- if the interpolator fails to
compute the function somewhere within the stepIntegratorException
- if an event cannot be locatedpublic double getEventTime()
public void stepAccepted(double t, double[] y) throws IntegratorException
t
- value of the independent time variable at the
end of the stepy
- array containing the current value of the state vector
at the end of the stepIntegratorException
- if the value of one of the
events states cannot be evaluatedpublic boolean stop()
public boolean reset(double t, double[] y) throws IntegratorException
t
- value of the independent time variable at the
beginning of the next stepy
- array were to put the desired state vector at the beginning
of the next stepIntegratorException
- if one of the events states
that should reset the state fails to do it"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"