|
||||||||||
| 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 |
NamedObj.ContainedObjectsIterator |
| Field Summary | |
Parameter |
allowDisconnectedGraphs
A parameter representing whether disconnected graphs are permitted. |
Parameter |
allowRateChanges
A parameter representing whether dynamic rate changes are permitted. |
Parameter |
iterations
A Parameter representing the number of times that postfire may be called before it returns false. |
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(CompositeEntity container,
java.lang.String name)
Construct a director in the given container with the given name. |
|
SDFDirector(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(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. |
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(IOPort port)
Override the base class method to transfer enough tokens to complete an internal iteration. |
boolean |
transferOutputs(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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Parameter allowDisconnectedGraphs
public Parameter allowRateChanges
public Parameter iterations
public Parameter vectorizationFactor
| Constructor Detail |
public SDFDirector()
throws IllegalActionException,
NameDuplicationException
public SDFDirector(Workspace workspace)
throws IllegalActionException,
NameDuplicationException
workspace - The workspace for this object.
public SDFDirector(CompositeEntity container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - Container of the director.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 void attributeChanged(Attribute attribute)
throws IllegalActionException
attributeChanged in class NamedObjattribute - The changed parameter.
IllegalActionException - If the parameter set is not valid.
public void initialize()
throws IllegalActionException
initialize in interface Executableinitialize in class DirectorIllegalActionException - If the initialize() method of
one of the associated actors throws it, or if there is no
scheduler.public Receiver newReceiver()
newReceiver in class Director
public boolean prefire()
throws IllegalActionException
prefire in interface Executableprefire in class StaticSchedulingDirectorIllegalActionException - If port methods throw it.
public void preinitialize()
throws IllegalActionException
preinitialize in interface Executablepreinitialize in class DirectorIllegalActionException - If the preinitialize() method of
one of the associated actors throws it.
public boolean postfire()
throws IllegalActionException
postfire in interface Executablepostfire in class StaticSchedulingDirectorIllegalActionException - If the iterations parameter
does not contain a legal value.
public boolean transferInputs(IOPort port)
throws IllegalActionException
transferInputs in class Directorport - The port to transfer tokens from.
IllegalActionException - If the port is not an opaque
input port, or if there are not enough input tokens available.IOPort.transferInputs()
public boolean transferOutputs(IOPort port)
throws IllegalActionException
transferOutputs in class Directorport - The port to transfer tokens from.
IllegalActionException - If the port is not an opaque
output port.IOPort.transferOutputs()protected boolean _writeAccessRequired()
_writeAccessRequired in class Director
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||