Class 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)
    • 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.
    • Method Detail

      • getID

        public java.lang.Integer getID()
        Return the ID of the receiver.
        Returns:
        The ID of the Receiver.