Class DistributedTypedIORelation

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

    public class DistributedTypedIORelation
    extends TypedIORelation
    Extension of TypedIORelation for distributed environments. It overrides the deepReceivers method that returns the connected receivers to this relation. In this case, the relation only contains (is connected to) one DistributedReceiver in charge of forwarding tokens to the distributed services that are connected.
    Since:
    Ptolemy II 5.1
    Version:
    $Id$
    Author:
    Daniel Lazaro Cuadrado (kapokasa@kom.aau.dk)
    See Also:
    DistributedReceiver
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (kapokasa)
    • Constructor Detail

      • DistributedTypedIORelation

        public DistributedTypedIORelation()
        Construct a relation in the default workspace with an empty string as its name. Add the relation to the directory of the workspace.
      • DistributedTypedIORelation

        public DistributedTypedIORelation​(Workspace workspace)
        Construct a relation in the specified workspace with an empty string as a name. You can then change the name with setName(). If the workspace argument is null, then use the default workspace. Add the relation to the workspace directory.
        Parameters:
        workspace - The workspace that will list the relation.
      • DistributedTypedIORelation

        public DistributedTypedIORelation​(CompositeEntity container,
                                          java.lang.String name)
                                   throws IllegalActionException,
                                          NameDuplicationException
        Construct a relation with the given name contained by the specified entity. The container argument must not be null, or a NullPointerException will be thrown. This relation will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. This constructor write-synchronizes on the workspace.
        Parameters:
        container - The container.
        name - The name of the relation.
        Throws:
        IllegalActionException - If the container is incompatible with this relation.
        NameDuplicationException - If the name coincides with a relation already in the container.
    • Method Detail

      • setServicesReceiversListMap

        public void setServicesReceiversListMap​(java.util.HashMap servicesReceiversListMap)
        Specify the servicesReceiversListMap for the internal DistributedReceiver.
        Parameters:
        servicesReceiversListMap - for the internal DistributedReceiver.