Class DistributedDirector

  • All Implemented Interfaces:
    java.lang.Cloneable, Executable, Initializable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class DistributedDirector
    extends Director
    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.
    Since:
    Ptolemy II 5.1
    Version:
    $Id$
    Author:
    Daniel Lazaro Cuadrado (kapokasa@kom.aau.dk)
    See Also:
    Director
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (kapokasa)
    • Method Detail

      • getIdsReceiversMap

        public java.util.HashMap getIdsReceiversMap()
        Return the map from ID to the receiver containing the ID.
        Returns:
        A HashMap from ID to the receiver containing the ID.
      • newReceiver

        public Receiver newReceiver()
        Return a DistributedSDFReceiver. The receiver created will have the next available ID in the listOfIds that has been previously set. In case the listOfIds is empty, the ID will be a number starting from 1000 (lastID). This should never occur! It is there for testing purposes and could be removed.
        Overrides:
        newReceiver in class Director
        Returns:
        A DistributedSDFReceiver with the next available ID in the listOfIds.
      • setListOfIds

        public void setListOfIds​(java.util.LinkedList list)
        Specify the list of IDs to be used for Receiver creation by the newReceiver method.
        Parameters:
        list - A list of IDs.