|
||||||||||
| 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.sdf.kernel.SDFDirector
Director for the synchronous dataflow (SDF) model of computation.
Actors are assumed to consume and produce exactly one token per channel on each firing. Actors that do not follow this convention should set the appropriate parameters on input and output ports to declare the number of tokens they produce or consume. See the
SDFScheduler,
SDFReceiver,
Serialized Form
| Green (neuendor) |
| Green (neuendor) |
| Nested Class Summary |
| Nested classes inherited from class ptolemy.kernel.util.NamedObj |
ptolemy.kernel.util.NamedObj.ContainedObjectsIterator |
| Field Summary | |
ptolemy.data.expr.Parameter |
allowDisconnectedGraphs
A parameter representing whether disconnected graphs are permitted. |
ptolemy.data.expr.Parameter |
allowRateChanges
A parameter representing whether dynamic rate changes are permitted. |
ptolemy.data.expr.Parameter |
iterations
A Parameter representing the number of times that postfire may be called before it returns false. |
ptolemy.data.expr.Parameter |
vectorizationFactor
A Parameter representing the requested vectorization factor. |
| 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 | |
SDFDirector()
Construct a director in the default workspace with an empty string as its name. |
|
SDFDirector(ptolemy.kernel.CompositeEntity container,
java.lang.String name)
Construct a director in the given container with the given name. |
|
SDFDirector(ptolemy.kernel.util.Workspace workspace)
Construct a director in the workspace with an empty name. |
|
| Method Summary | |
protected boolean |
_writeAccessRequired()
Override the base class to indicate that this director does not need write access on the workspace during an iteration. |
void |
attributeChanged(ptolemy.kernel.util.Attribute attribute)
React to a change in an attribute. |
void |
initialize()
Initialize the actors associated with this director and then set the iteration count to zero. |
ptolemy.actor.Receiver |
newReceiver()
Return a new receiver consistent with the SDF domain. |
boolean |
postfire()
Return false if the system has finished executing, either by reaching the iteration limit, or having an actor in the system return false in postfire. |
boolean |
prefire()
Check the input ports of the container composite actor (if there are any) to see whether they have enough tokens, and return true if they do. |
void |
preinitialize()
Preinitialize the actors associated with this director and compute the schedule. |
boolean |
transferInputs(ptolemy.actor.IOPort port)
Override the base class method to transfer enough tokens to complete an internal iteration. |
boolean |
transferOutputs(ptolemy.actor.IOPort port)
Override the base class method to transfer enough tokens to fulfill the output production rate. |
| Methods inherited from class ptolemy.actor.sched.StaticSchedulingDirector |
_setScheduler, addDebugListener, fire, getScheduler, invalidateSchedule, isScheduleValid, removeDebugListener, setScheduler, setScheduleValid |
| Methods inherited from class ptolemy.actor.Director |
_description, _isEmbedded, _isTopLevel, domainPolymorphicTransferInputs, domainPolymorphicTransferOutputs, fireAt, fireAtCurrentTime, getCurrentTime, getNextIterationTime, getTimeResolution, initialize, invalidateResolvedTypes, iterate, needWriteAccess, requestInitialization, setContainer, setCurrentTime, setTimeResolution, stop, stopFire, terminate, wrapup |
| Methods inherited from class ptolemy.kernel.util.Attribute |
_getContainedObject, _propagateExistence, clone, getContainer, setName |
| Methods inherited from class ptolemy.kernel.util.NamedObj |
_addAttribute, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setPersistent, setSource, toplevel, toString, uniqueName, validateSettables, workspace |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public ptolemy.data.expr.Parameter allowDisconnectedGraphs
public ptolemy.data.expr.Parameter allowRateChanges
public ptolemy.data.expr.Parameter iterations
public ptolemy.data.expr.Parameter vectorizationFactor
| Constructor Detail |
public SDFDirector()
throws ptolemy.kernel.util.IllegalActionException,
ptolemy.kernel.util.NameDuplicationException
public SDFDirector(ptolemy.kernel.util.Workspace workspace)
throws ptolemy.kernel.util.IllegalActionException,
ptolemy.kernel.util.NameDuplicationException
workspace - The workspace for this object.
public SDFDirector(ptolemy.kernel.CompositeEntity container,
java.lang.String name)
throws ptolemy.kernel.util.IllegalActionException,
ptolemy.kernel.util.NameDuplicationException
container - Container of the director.name - Name of this director.
ptolemy.kernel.util.IllegalActionException - If the director is not compatible
with the specified container. May be thrown in a derived class.
ptolemy.kernel.util.NameDuplicationException - If the container is not a
CompositeActor and the name collides with an entity in the container.| Method Detail |
public void attributeChanged(ptolemy.kernel.util.Attribute attribute)
throws ptolemy.kernel.util.IllegalActionException
attribute - The changed parameter.
ptolemy.kernel.util.IllegalActionException - If the parameter set is not valid.
public void initialize()
throws ptolemy.kernel.util.IllegalActionException
ptolemy.kernel.util.IllegalActionException - If the initialize() method of
one of the associated actors throws it, or if there is no
scheduler.public ptolemy.actor.Receiver newReceiver()
public boolean prefire()
throws ptolemy.kernel.util.IllegalActionException
ptolemy.kernel.util.IllegalActionException - If port methods throw it.
public void preinitialize()
throws ptolemy.kernel.util.IllegalActionException
ptolemy.kernel.util.IllegalActionException - If the preinitialize() method of
one of the associated actors throws it.
public boolean postfire()
throws ptolemy.kernel.util.IllegalActionException
ptolemy.kernel.util.IllegalActionException - If the iterations parameter
does not contain a legal value.
public boolean transferInputs(ptolemy.actor.IOPort port)
throws ptolemy.kernel.util.IllegalActionException
port - The port to transfer tokens from.
ptolemy.kernel.util.IllegalActionException - If the port is not an opaque
input port, or if there are not enough input tokens available.
public boolean transferOutputs(ptolemy.actor.IOPort port)
throws ptolemy.kernel.util.IllegalActionException
port - The port to transfer tokens from.
ptolemy.kernel.util.IllegalActionException - If the port is not an opaque
output port.protected boolean _writeAccessRequired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||