Package org.jcsp.net2

Class Link.TxLoop

java.lang.Object
org.jcsp.net2.Link.TxLoop
All Implemented Interfaces:
CSProcess
Enclosing class:
Link

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

    • input

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

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

    • TxLoop

      TxLoop(ChannelInput in, 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 Details

    • run

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