public class ODEBisectionEventSolver extends java.lang.Object implements ODEEventSolver, ODEAdaptiveSolver
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
MAX
Maximum number of bisections allowed
|
BISECTION_EVENT_NOT_FOUND, DID_NOT_CONVERGE, NO_ERROR
コンストラクタと説明 |
---|
ODEBisectionEventSolver(ODE ode,
java.lang.Class<?> solverClass)
Creates a new solver that uses the bisection method for finding the events.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addEvent(StateEvent event)
Adds a StateEvent to the list of events
|
int |
getErrorCode()
Gets the error code.
|
boolean |
getEventHappened()
Gets the eventHappend flag.
|
double |
getStepSize()
Gets the step size.
|
double |
getTolerance()
Gets the tolerance of the adaptive ODE sovler.
|
void |
initialize(double stepSize)
Initializes the ODE solver.
|
void |
removeEvent(StateEvent event)
Removes a StateEvent from the list of events
|
void |
setStepSize(double stepSize)
Sets the initial step size.
|
void |
setTolerance(double tol)
Sets the tolerance of the adaptive ODE sovler.
|
double |
step()
Advances the ODE as usual, except if an event takes place.
|
public static final int MAX
public ODEBisectionEventSolver(ODE ode, java.lang.Class<?> solverClass)
ode
- The ode to solvesolverClass
- The ODESolver class to use.public void addEvent(StateEvent event)
addEvent
インタフェース内 ODEEventSolver
event
- The event to be addedpublic void removeEvent(StateEvent event)
removeEvent
インタフェース内 ODEEventSolver
event
- The event to be removedpublic void initialize(double stepSize)
ODESolver
initialize
インタフェース内 ODESolver
public void setStepSize(double stepSize)
ODESolver
setStepSize
インタフェース内 ODESolver
public double getStepSize()
ODESolver
getStepSize
インタフェース内 ODESolver
public void setTolerance(double tol)
ODEAdaptiveSolver
setTolerance
インタフェース内 ODEAdaptiveSolver
tol
- the tolerancepublic double getTolerance()
ODEAdaptiveSolver
getTolerance
インタフェース内 ODEAdaptiveSolver
public boolean getEventHappened()
public double step()
public int getErrorCode()
getErrorCode
インタフェース内 ODEAdaptiveSolver