Package org.jcsp.net2

Class Link.TxLoop

  • All Implemented Interfaces:
    CSProcess
    Enclosing class:
    Link

    final class Link.TxLoop
    extends java.lang.Object
    implements CSProcess
    The TxLoop for the Link. This could be implemented as a synchronized method call.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ChannelInput input
      The input channel to the TX process.
      private java.io.DataOutputStream outputStream
      The output stream connecting to the remote node's input stream.
    • Constructor Summary

      Constructors 
      Constructor Description
      TxLoop​(ChannelInput in, java.io.DataOutputStream stream)
      Constructor to create the TX part of the Link
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      The run loop of the TX process
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • input

        private final ChannelInput input
        The input channel to the TX process. Channels and Barriers send outgoing messages via this channel
      • outputStream

        private final java.io.DataOutputStream outputStream
        The output stream connecting to the remote node's input stream.
    • Constructor Detail

      • TxLoop

        TxLoop​(ChannelInput in,
               java.io.DataOutputStream stream)
        Constructor to create the TX part of the Link
        Parameters:
        in - The channel connecting into the Link TX from the various channels and barriers
        stream - The output stream connected to the remote node
    • Method Detail

      • run

        public void run()
        The run loop of the TX process
        Specified by:
        run in interface CSProcess