|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.domains.ct.kernel.ODESolver
ptolemy.domains.ct.kernel.solver.FixedStepSolver
public abstract class FixedStepSolver
Abstract base class for fixed step size ODE solvers, which provides no error control. It provides base implementation for some methods that are shared by all fixed-step-size solvers.
Green (hyzheng) |
Green (hyzheng) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary |
---|
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Constructor Summary | |
---|---|
FixedStepSolver(Workspace workspace)
Construct a solver in the given workspace with a null string name. |
Method Summary | |
---|---|
protected void |
_advanceModelTime()
Override the method in the base abstract class to advance the model time. |
void |
fireDynamicActors()
Fire dynamic actors. |
void |
fireStateTransitionActors()
Fire state transition actors. |
int |
getAmountOfHistoryInformation()
Return 0 to indicate that no history information is needed by this solver. |
int |
getIntegratorAuxVariableCount()
Return 0 to indicate that an integrator under this solver needs no auxiliary variable. |
boolean |
integratorIsAccurate(CTBaseIntegrator integrator)
Return true always, since no error control is performed. |
double |
integratorPredictedStepSize(CTBaseIntegrator integrator)
Return the current step size of the director. |
Methods inherited from class ptolemy.domains.ct.kernel.ODESolver |
---|
_getRoundCount, _getSchedule, _incrementRoundCount, _isConverged, _makeSolverOf, _resetRoundCount, _setConverged, _voteForConverged, getContainer, integratorFire, resolveStates |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FixedStepSolver(Workspace workspace)
workspace
- Object for synchronization and version trackingMethod Detail |
---|
public void fireDynamicActors() throws IllegalActionException
fireDynamicActors
in class ODESolver
IllegalActionException
- If thrown in the super class or
the model time can not be set.public void fireStateTransitionActors() throws IllegalActionException
fireStateTransitionActors
in class ODESolver
IllegalActionException
- If thrown in the super class.public int getAmountOfHistoryInformation()
getAmountOfHistoryInformation
in class ODESolver
public int getIntegratorAuxVariableCount()
getIntegratorAuxVariableCount
in class ODESolver
public final boolean integratorIsAccurate(CTBaseIntegrator integrator)
integratorIsAccurate
in class ODESolver
integrator
- The integrator that wants to do the test.
public final double integratorPredictedStepSize(CTBaseIntegrator integrator)
integratorPredictedStepSize
in class ODESolver
integrator
- The integrator that want to predict the step size.
CTStepSizeControlActor.predictedStepSize()
protected void _advanceModelTime() throws IllegalActionException
_advanceModelTime
in class ODESolver
IllegalActionException
- If thrown in the super class or the
model time can not be set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |