|
|||||||||
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.kernel.util.Attribute
ptolemy.actor.Director
ptolemy.distributed.actor.DistributedDirector
public class DistributedDirector
The DistributedDirector extends Director to function on a distributed environment. It provides receivers of the type DistributedSDFReceiver. //TODO: Make it more generic that the type of receivers it provides can be changed in case different MoC are to be implemented.
Director
,
Serialized Form
Red (cxh) |
Red (kapokasa) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary | |
---|---|
private java.util.HashMap |
idsReceiversMap
Map from IDs to the receiver containing the ID. |
private int |
lastId
Starting ID number for whenever a receiver is created and the list of IDs is empty. |
private java.util.LinkedList |
listOfIds
List of IDs to assign no newly created receivers. |
private boolean |
VERBOSE
When true depicts debugging messages. |
Fields inherited from class ptolemy.actor.Director |
---|
_actorsFinishedExecution, _currentTime, _finishRequested, _initializables, _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 | |
---|---|
DistributedDirector()
Construct a director in the default workspace with an empty string as its name. |
|
DistributedDirector(CompositeEntity container,
java.lang.String name)
Construct a director in the given container with the given name. |
|
DistributedDirector(Workspace workspace)
Construct a director in the workspace with an empty name. |
Method Summary | |
---|---|
java.util.HashMap |
getIdsReceiversMap()
Return the map from ID to the receiver containing the ID. |
Receiver |
newReceiver()
Return a DistributedSDFReceiver. |
void |
setListOfIds(java.util.LinkedList list)
Specify the list of IDs to be used for Receiver creation by the newReceiver method. |
Methods inherited from class ptolemy.kernel.util.Attribute |
---|
_checkContainer, _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 |
---|
private java.util.LinkedList listOfIds
private int lastId
private boolean VERBOSE
private java.util.HashMap idsReceiversMap
Constructor Detail |
---|
public DistributedDirector()
public DistributedDirector(Workspace workspace)
workspace
- The workspace of this object.public DistributedDirector(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this director.
IllegalActionException
- If the name has a period in it, or
the director is not compatible with the specified container, or if
the time resolution parameter is malformed.
NameDuplicationException
- If the container already contains
an entity with the specified name.Method Detail |
---|
public java.util.HashMap getIdsReceiversMap()
public Receiver newReceiver()
newReceiver
in class Director
public void setListOfIds(java.util.LinkedList list)
list
- A list of IDs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |