コード例 #1
0
 /**
  * Constructs a new BufferedOne2OneChannelIntImpl with the specified ChannelDataStoreInt.
  *
  * @param data the ChannelDataStoreInt used to store the data for the channel
  */
 public BufferedOne2OneChannelIntImpl(ChannelDataStoreInt data)
 {
     if (data == null)
     {
         throw new ArgumentException
                   ("Null ChannelDataStoreInt given to channel constructor ...\n");
     }
     this.data = (ChannelDataStoreInt)data.Clone();
 }
コード例 #2
0
 /**
  * Constructs a new BufferedOne2OneChannel with the specified ChannelDataStore.
  *
  * @param data the ChannelDataStore used to store the data for the channel
  */
 public PoisonableBufferedOne2OneChannelInt(ChannelDataStoreInt data, int _immunity)
 {
     if (data == null)
     {
         throw new ArgumentException
                   ("Null ChannelDataStore given to channel constructor ...\n");
     }
     this.data = (ChannelDataStoreInt)data.Clone();
     immunity  = _immunity;
 }