Class BlackHoleInt

  • All Implemented Interfaces:
    CSProcess

    public final class BlackHoleInt
    extends java.lang.Object
    implements CSProcess
    Black holes anything sent to it.

    Process Diagram

    Description

    BlackHoleInt is a process that accepts everything sent to it. This class can be used to ignore the output from a process while ensuring that the data is always read from the channel.

    Note: this functionality is (more efficiently) provided by a BlackHoleChannelInt.

    Channel Protocols

    Input Channels
    in int All channels in this package carry integers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ChannelInputInt in
      The input Channel
    • Constructor Summary

      Constructors 
      Constructor Description
      BlackHoleInt​(ChannelInputInt in)
      Construct a new BlackHoleInt process with the input Channel in.
    • Method Summary

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

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

      • BlackHoleInt

        public BlackHoleInt​(ChannelInputInt in)
        Construct a new BlackHoleInt process with the input Channel in.
        Parameters:
        in - the input channel
    • Method Detail

      • run

        public void run()
        The main body of this process.
        Specified by:
        run in interface CSProcess