Package org.jcsp.net

Class Net2OneChannel

    • Field Detail

      • label

        private final java.lang.String label
    • Constructor Detail

      • Net2OneChannel

        private Net2OneChannel​(java.lang.String label,
                               AltingChannelInput actualChan,
                               RejectableChannel ch)
                        throws java.lang.IllegalArgumentException
        Creates a channel which receives data on a labelled VCN.
        Parameters:
        label - The label to apply to this channel's VCN.
        Throws:
        java.lang.IllegalArgumentException - if the label supplied is a null reference.
      • Net2OneChannel

        private Net2OneChannel​(AltingChannelInput actualChan,
                               RejectableChannel ch)
        Creates a zero-buffered channel reader. The getChannelLocation() method can be called to obtain the location information of the constructed channel.
    • Method Detail

      • getChannelLocation

        public NetChannelLocation getChannelLocation()
        Returns a new NetChannelLocation object which holds the information necessary for a networked ChannelOutput to establish a connection to this channel reader.
        Returns:
        the location information for this channel reader.
      • destroyReader

        public void destroyReader()
        Destroys this end of the channel.
      • getChannelIndex

        long getChannelIndex()
      • getFactoryClass

        public java.lang.Class getFactoryClass()
        Description copied from interface: NetChannelInput

        Returns a Class file of the factory used to construct the channel end.

        Returns:
        the Class of the factory class.
      • poison

        public void poison​(PoisonException poison)
        Currently, network channels are unpoisonable so this method has no effect.
      • checkPoison

        public void checkPoison()
                         throws PoisonException
        Currently, network channels are unpoisonable so this method will never throw a PoisonException
        Throws:
        PoisonException