|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.actor.Director
ptolemy.actor.sched.StaticSchedulingDirector
ptolemy.domains.ct.kernel.CTDirector
ptolemy.domains.ct.kernel.CTMultiSolverDirector
ptolemy.domains.ct.kernel.CTEmbeddedDirector
An embedded director for CT inside CT/FSM. Conceptually, this director interacts with a continuous outer domain. As a consequence, this director exposes its step size control information. If the container of this director is a CTCompositeActor, then this information is further exposed to the outer domain.
Unlike the CTMixedSignalDirector, this director does not run ahead of the global time and rollback, simply because the step size control information is accessible from outer domain which has a continuous time and understands the meaning of step size.
CTMultiSolverDirector,
CTTransparentDirector,
Serialized Form
| Yellow (chf) |
| Yellow (liuj) |
| Nested Class Summary |
| Nested classes inherited from class ptolemy.kernel.util.NamedObj |
NamedObj.ContainedObjectsIterator |
| Field Summary |
| Fields inherited from class ptolemy.domains.ct.kernel.CTMultiSolverDirector |
breakpointODESolver, ODESolver |
| Fields inherited from class ptolemy.domains.ct.kernel.CTDirector |
_postfireReturns, _refireActors, errorTolerance, initStepSize, maxIterations, maxStepSize, minStepSize, startTime, stopTime, synchronizeToRealTime, timeResolution, valueResolution |
| Fields inherited from class ptolemy.actor.Director |
_currentTime, _stopRequested |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Fields inherited from interface ptolemy.actor.Executable |
COMPLETED, NOT_READY, STOP_ITERATING |
| Constructor Summary | |
CTEmbeddedDirector()
Construct a director in the default workspace with an empty string as its name. |
|
CTEmbeddedDirector(CompositeEntity container,
java.lang.String name)
Construct a director in the given container with the given name. |
|
CTEmbeddedDirector(Workspace workspace)
Construct a director in the workspace with an empty name. |
|
| Method Summary | |
boolean |
canBeInsideDirector()
Always return true indicating that this director can be an inside director. |
boolean |
canBeTopLevelDirector()
Always return false indicating that this director cannot be a top level director. |
void |
fire()
Execute the subsystem for one iteration. |
void |
fireAt(Actor actor,
double time)
Register the break point to this director and to the executive director. |
void |
initialize()
Set the current time to be the current time of the outside model. |
boolean |
isThisStepAccurate()
Return true if the current integration step is accurate. |
boolean |
postfire()
Update the states of actors directed by this director. |
double |
predictedStepSize()
Return the predicted next step size, which is the minimum of the prediction from step size control actors. |
boolean |
prefire()
Return true always. |
void |
preinitialize()
Check whether the container implements the CTStepSizeControlActor interface. |
double |
refinedStepSize()
Return the refined step size if the current fire is not accurate. |
| Methods inherited from class ptolemy.domains.ct.kernel.CTMultiSolverDirector |
_continuousPhaseExecution, _discretePhaseExecution, _fireOneIteration, _initParameters, _isOutputAccurate, _isStateAccurate, _predictNextStepSize, _prefireDynamicActors, _processBreakpoints, _refinedStepWRTOutput, _refinedStepWRTState, attributeChanged, getBreakpointSolver, getODESolver, hasCurrentEvent |
| Methods inherited from class ptolemy.actor.sched.StaticSchedulingDirector |
_setScheduler, addDebugListener, getScheduler, invalidateSchedule, isScheduleValid, removeDebugListener, setScheduler, setScheduleValid |
| Methods inherited from class ptolemy.actor.Director |
_description, _isEmbedded, _isTopLevel, domainPolymorphicTransferInputs, domainPolymorphicTransferOutputs, fireAtCurrentTime, getCurrentTime, getTimeResolution, initialize, invalidateResolvedTypes, iterate, needWriteAccess, requestInitialization, setContainer, setTimeResolution, stop, stopFire, terminate, transferInputs, transferOutputs, wrapup |
| Methods inherited from class ptolemy.kernel.util.Attribute |
_getContainedObject, _propagateExistence, clone, getContainer, setName |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ptolemy.domains.ct.kernel.CTTransparentDirector |
hasCurrentEvent |
| Constructor Detail |
public CTEmbeddedDirector()
public CTEmbeddedDirector(Workspace workspace)
workspace - The workspace of this object.
public CTEmbeddedDirector(CompositeEntity container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The container.name - Name of this director.
IllegalActionException - If the director is not compatible
with the specified container. May be thrown in a derived class.
NameDuplicationException - If the container is not a
CompositeActor and the name collides with an entity in the container.| Method Detail |
public boolean canBeInsideDirector()
canBeInsideDirector in class CTMultiSolverDirectorpublic boolean canBeTopLevelDirector()
canBeTopLevelDirector in class CTMultiSolverDirector
public void fire()
throws IllegalActionException
fire in interface Executablefire in class CTMultiSolverDirectorIllegalActionException - If one of the actors throw
it during one iteration.
public void fireAt(Actor actor,
double time)
throws IllegalActionException
fireAt in class CTDirectoractor - The actor that requested the firetime - The fire time
IllegalActionException - If the time is before
the current time, or there is no executive director.
public void initialize()
throws IllegalActionException
initialize in interface Executableinitialize in class CTMultiSolverDirectorIllegalActionException - If the instantiation of the solvers
does not succeed or one of the directed actors throws it.public boolean isThisStepAccurate()
isThisStepAccurate in interface CTTransparentDirector
public boolean postfire()
throws IllegalActionException
postfire in interface Executablepostfire in class CTMultiSolverDirectorIllegalActionException - Not thrown in this base class.public double predictedStepSize()
predictedStepSize in interface CTTransparentDirector
public boolean prefire()
throws IllegalActionException
prefire in interface Executableprefire in class CTMultiSolverDirectorIllegalActionException - Not thrown in this base class.
public void preinitialize()
throws IllegalActionException
preinitialize in interface Executablepreinitialize in class CTMultiSolverDirectorIllegalActionException - If the container of this
director does not implement CTStepSizeControlActor, or one of
the actors throws it.public double refinedStepSize()
refinedStepSize in interface CTTransparentDirector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||