Package ptolemy.actor

Interface CommunicationAspect

    • Field Detail

      • decoratorHighlightColorName

        static final java.lang.String decoratorHighlightColorName
        The parameter name of the decorator highlight color.
        See Also:
        Constant Field Values
    • Method Detail

      • createIntermediateReceiver

        Receiver createIntermediateReceiver​(Receiver receiver)
                                     throws IllegalActionException
        Create a receiver to mediate a communication via the specified receiver.
        Parameters:
        receiver - Receiver whose communication is to be mediated.
        Returns:
        A new receiver.
        Throws:
        IllegalActionException - If the receiver cannot be created.
      • registerListener

        void registerListener​(CommunicationAspectListener monitor)
        Add a communication aspect monitor to the list of listeners.
        Parameters:
        monitor - The communication aspect monitor.
      • reset

        void reset()
        Reset the CommunicationAspect.
      • sendToken

        void sendToken​(Receiver source,
                       Receiver receiver,
                       Token token)
                throws IllegalActionException
        Take the specified token and mediate communication to the specified receiver. An implementer could, for example, delay the communication to account for resource contention. Or, it could make a record of the energy consumed by the communication.
        Parameters:
        source - Receiver that sent the token.
        receiver - The receiver for which this communication aspect is mediating communication.
        token - The token for the communication to mediate.
        Throws:
        IllegalActionException - If the token cannot be sent.