|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.AbstractReceiver
ptolemy.domains.sdf.kernel.SDFReceiver
ptolemy.distributed.domains.sdf.kernel.DistributedSDFReceiver
public class DistributedSDFReceiver
The DistributedSDFReceiver class extends SDFReceiver with an unique ID. This is useful in order to unambiguously identify receivers in a distributed environment.
SDFReceiver
Red (cxh) |
Red (kapokasa) |
Field Summary | |
---|---|
private java.lang.Integer |
ID
ID of the receiver. |
private static java.lang.Integer |
lastID
Static member that contains the next ID value to be assigned to the next receiver constructed. |
private boolean |
VERBOSE
Enables debugging messages. |
Fields inherited from class ptolemy.domains.sdf.kernel.SDFReceiver |
---|
_waitingTokens, INFINITE_CAPACITY |
Constructor Summary | |
---|---|
DistributedSDFReceiver()
Construct an empty receiver with no container and unique ID. |
|
DistributedSDFReceiver(int size)
Construct an empty receiver with no container, given size and unique ID. |
|
DistributedSDFReceiver(java.lang.Integer newID)
Construct an empty receiver with no container and a given ID. |
|
DistributedSDFReceiver(IOPort container)
Construct an empty receiver with the specified container and unique ID. |
|
DistributedSDFReceiver(IOPort container,
int size)
Construct an empty receiver with the specified container, size and unique ID. |
Method Summary | |
---|---|
java.lang.Integer |
getID()
Return the ID of the receiver. |
private void |
init()
Initialize the receiver with an ID of value lastID. lastID is increased by 1. |
Methods inherited from class ptolemy.domains.sdf.kernel.SDFReceiver |
---|
clear, elementList, get, get, getArray, getCapacity, getHistoryCapacity, hasRoom, hasRoom, hasToken, hasToken, historyElements, historySize, put, setCapacity, setHistoryCapacity, size |
Methods inherited from class ptolemy.actor.AbstractReceiver |
---|
getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private boolean VERBOSE
private static java.lang.Integer lastID
private java.lang.Integer ID
Constructor Detail |
---|
public DistributedSDFReceiver()
public DistributedSDFReceiver(int size)
size
- The size of the queue in the receiver.public DistributedSDFReceiver(IOPort container) throws IllegalActionException
container
- The container of the receiver.
IllegalActionException
- If the container does
not accept this receiver.public DistributedSDFReceiver(IOPort container, int size) throws IllegalActionException
container
- The container of the receiver.size
- The size of the queue in the receiver.
IllegalActionException
- If the container does
not accept this receiver.public DistributedSDFReceiver(java.lang.Integer newID)
newID
- The new ID for the Receiver.Method Detail |
---|
public java.lang.Integer getID()
private void init()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |