Class DistributedSDFReceiver
- java.lang.Object
-
- ptolemy.actor.AbstractReceiver
-
- ptolemy.domains.sdf.kernel.SDFReceiver
-
- ptolemy.distributed.domains.sdf.kernel.DistributedSDFReceiver
-
- All Implemented Interfaces:
Receiver
public class DistributedSDFReceiver extends SDFReceiver
The DistributedSDFReceiver class extends SDFReceiver with an unique ID. This is useful in order to unambiguously identify receivers in a distributed environment.- Since:
- Ptolemy II 5.1
- Version:
- $Id$
- Author:
- Daniel Lazaro Cuadrado (kapokasa@kom.aau.dk)
- See Also:
SDFReceiver
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (kapokasa)
-
-
Field Summary
-
Fields inherited from class ptolemy.domains.sdf.kernel.SDFReceiver
_waitingTokens, INFINITE_CAPACITY
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getID()
Return the ID of the receiver.-
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
-
-
-
-
Constructor Detail
-
DistributedSDFReceiver
public DistributedSDFReceiver()
Construct an empty receiver with no container and unique ID.
-
DistributedSDFReceiver
public DistributedSDFReceiver(int size)
Construct an empty receiver with no container, given size and unique ID.- Parameters:
size
- The size of the queue in the receiver.
-
DistributedSDFReceiver
public DistributedSDFReceiver(IOPort container) throws IllegalActionException
Construct an empty receiver with the specified container and unique ID.- Parameters:
container
- The container of the receiver.- Throws:
IllegalActionException
- If the container does not accept this receiver.
-
DistributedSDFReceiver
public DistributedSDFReceiver(IOPort container, int size) throws IllegalActionException
Construct an empty receiver with the specified container, size and unique ID.- Parameters:
container
- The container of the receiver.size
- The size of the queue in the receiver.- Throws:
IllegalActionException
- If the container does not accept this receiver.
-
DistributedSDFReceiver
public DistributedSDFReceiver(java.lang.Integer newID)
Construct an empty receiver with no container and a given ID.- Parameters:
newID
- The new ID for the Receiver.
-
-