예제 #1
0
 /**
  * Constructs a new BufferedOne2OneChannel with the specified ChannelDataStore.
  *
  * @param data the ChannelDataStore used to store the data for the channel
  */
 public BufferedOne2OneChannel(ChannelDataStore data)
 {
     if (data == null)
     {
         throw new ArgumentException
                   ("Null ChannelDataStore given to channel constructor ...\n");
     }
     this.data = (ChannelDataStore)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 PoisonableBufferedOne2OneChannel(ChannelDataStore data, int _immunity)
 {
     if (data == null)
     {
         throw new ArgumentException
                   ("Null ChannelDataStore given to channel constructor ...\n");
     }
     this.data = (ChannelDataStore)data.Clone();
     immunity  = _immunity;
 }