Package org.jcsp.net

Class NetChannelInputProcess

  • All Implemented Interfaces:
    CSProcess

    class NetChannelInputProcess
    extends java.lang.Object
    implements CSProcess
    A process for network input (RX).

    This is a package-private implementation class.

    • Constructor Detail

      • NetChannelInputProcess

        NetChannelInputProcess​(java.lang.String label,
                               RejectableChannel out)
        Constructor which takes a label to assign to the channel's VCN and a ChannelOutput object on which to output any data received from over the network.
        Parameters:
        label - the label to assign to the VCN. If this is null then no label will be assigned.
        out - the ChannelOutput object on which to forward any data received from over the network.
    • Method Detail

      • breakChannel

        void breakChannel()
      • getChannelIndex

        long getChannelIndex()
      • readFromNetChannel

        private java.lang.Object readFromNetChannel()
        Reads a message from the network communications channel. Acknowledges and ignores LinkLost messages.

        Returns:
        The first Message read from the network.
      • run

        public void run()
        Handle this link. Gets data and sends acknowlegements. Runs forever.
        Specified by:
        run in interface CSProcess