|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.kernel.util.NamedObj ptolemy.kernel.util.Attribute ptolemy.actor.Director ptolemy.actor.sched.StaticSchedulingDirector ptolemy.domains.sdf.kernel.SDFDirector ptolemy.distributed.domains.sdf.kernel.DistributedSDFDirector
Director for the distributed version of the synchronous dataflow (SDF) model of computation.
A DistributedSDFDirector is the class that controls execution of actors under the distributed version of the SDF domain. It extends SDFDirector.
By default, actor scheduling is handled by the DistributedSDFScheduler class. Furthermore, the newReceiver method creates Receivers of type DistributedSDFReceiver, which extends SDFReceiver.
See ptolemy.domains.sdf.kernel.SDFScheduler for more information about the SDF Domain.
DistributedServerRMIGeneric
,
DistributedSDFReceiver
,
DistributedSDFScheduler
,
SDFDirector
,
SDFScheduler
,
Serialized Form
Red (cxh) |
Red (kapokasa) |
Nested Class Summary |
Nested classes inherited from class ptolemy.kernel.util.NamedObj |
NamedObj.ContainedObjectsIterator |
Field Summary | |
Parameter |
parallelExecution
A Parameter representing whether a sequential or parallel execution will be performed. |
Parameter |
parallelSchedule
A Parameter representing whether a sequential or parallel schedule will be computed. |
Parameter |
pipelining
A Parameter representing whether a pipelined parallel execution will be performed. |
Fields inherited from class ptolemy.domains.sdf.kernel.SDFDirector |
_iterationCount, allowDisconnectedGraphs, allowRateChanges, constrainBufferSizes, iterations, period, synchronizeToRealTime, vectorizationFactor |
Fields inherited from class ptolemy.actor.sched.StaticSchedulingDirector |
_postfireReturns |
Fields inherited from class ptolemy.actor.Director |
_actorsFinishedExecution, _currentTime, _stopRequested, timeResolution |
Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Fields inherited from interface ptolemy.actor.Executable |
COMPLETED, NOT_READY, STOP_ITERATING |
Constructor Summary | |
DistributedSDFDirector()
Construct a director in the default workspace with an empty string as its name. |
|
DistributedSDFDirector(CompositeEntity container,
java.lang.String name)
Construct a director in the given container with the given name. |
|
DistributedSDFDirector(Workspace workspace)
Construct a director in the workspace with an empty name. |
Method Summary | |
void |
attributeChanged(Attribute attribute)
React to a change in an attribute. |
void |
fire()
Calculate the current schedule, if necessary, and iterate the contained actors in the order given by the schedule. |
void |
initialize()
Initialize the actors associated with this director (super). |
Receiver |
newReceiver()
Return a new receiver consistent with the Distributed-SDF domain. |
void |
preinitialize()
Preinitialize the actors associated with this director and compute the schedule (super). |
void |
wrapup()
Invoke the wrapup() method of all the actors contained in the director's container (super). |
Methods inherited from class ptolemy.domains.sdf.kernel.SDFDirector |
getModelNextIterationTime, postfire, prefire, suggestedModalModelDirectors, supportMultirateFiring, transferInputs, transferOutputs |
Methods inherited from class ptolemy.actor.sched.StaticSchedulingDirector |
_setScheduler, addDebugListener, getScheduler, invalidateSchedule, isScheduleValid, removeDebugListener, setScheduler |
Methods inherited from class ptolemy.actor.Director |
_description, _isEmbedded, _isTopLevel, _transferInputs, _transferOutputs, fireAt, fireAt, fireAtCurrentTime, getCurrentTime, getErrorTolerance, getModelStartTime, getModelStopTime, getModelTime, getNextIterationTime, getStartTime, getStopTime, getTimeResolution, initialize, invalidateResolvedTypes, isFireFunctional, isStopRequested, isStrict, iterate, requestInitialization, setContainer, setCurrentTime, setModelTime, stop, stopFire, terminate |
Methods inherited from class ptolemy.kernel.util.Attribute |
_getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public Parameter parallelSchedule
public Parameter pipelining
public Parameter parallelExecution
Constructor Detail |
public DistributedSDFDirector() throws IllegalActionException, NameDuplicationException
IllegalActionException
- If the name has a period in it, or
the director is not compatible with the specified container.
NameDuplicationException
- If the container already contains
an entity with the specified name.public DistributedSDFDirector(Workspace workspace) throws IllegalActionException, NameDuplicationException
workspace
- The workspace for this object.
IllegalActionException
- If the name has a period in it, or
the director is not compatible with the specified container.
NameDuplicationException
- If the container already contains
an entity with the specified name.public DistributedSDFDirector(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 SDFDirector
attribute
- The changed parameter.
IllegalActionException
- If the parameter set is not valid.public void fire() throws IllegalActionException
Iterating an actor involves calling the actor's iterate() method, which is equivalent to calling the actor's prefire(), fire() and postfire() methods in succession. If iterate() returns NOT_READY, indicating that the actor is not ready to execute, then an IllegalActionException will be thrown. The values returned from iterate() are recorded and are used to determine the value that postfire() will return at the end of the director's iteration.
This method may be overridden by some domains to perform additional domain-specific operations.
fire
in interface Executable
fire
in class StaticSchedulingDirector
IllegalActionException
- If any actor executed by this
actor return false in prefire.public void initialize() throws IllegalActionException
initialize
in interface Executable
initialize
in class SDFDirector
IllegalActionException
- If the initialize() method of
one of the associated actors throws it, or if there is no
scheduler.public Receiver newReceiver()
newReceiver
in class SDFDirector
public void preinitialize() throws IllegalActionException
preinitialize
in interface Executable
preinitialize
in class SDFDirector
IllegalActionException
- If the preinitialize() method of
one of the associated actors throws it.public void wrapup() throws IllegalActionException
wrapup
in interface Executable
wrapup
in class Director
IllegalActionException
- If the wrapup() method of
one of the associated actors throws it.ClientThread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |