/// <summary>
 /// Initializes the receiver
 /// </summary>
 /// <param name="b"></param>
 /// <param name="k"></param>
 protected void SetUp(int b, int k)
 {
     if (!(b >= 2 && k >= 1))
     {
         throw new ArgumentException(Cern.LocalizedResources.Instance().Exception_AssertionB_K);
     }
     this.bufferSet = new DoubleBufferSet(b, k);
     this.Clear();
 }
Exemple #2
0
 /// <summary>
 /// Initializes the receiver
 /// </summary>
 /// <param name="b"></param>
 /// <param name="k"></param>
 protected void SetUp(int b, int k)
 {
     if (!(b >= 2 && k >= 1))
     {
         throw new ArgumentException("Assertion: b>=2 && k>=1");
     }
     this.bufferSet = new DoubleBufferSet(b, k);
     this.Clear();
 }
Exemple #3
0
        /// <summary>
        /// Returns a deep copy of the receiver.
        /// </summary>
        /// <returns>a deep copy of the receiver.</returns>
        public override Object Clone()
        {
            DoubleBufferSet copy = (DoubleBufferSet)base.Clone();

            copy.buffers = (DoubleBuffer[])copy.buffers.Clone();
            for (int i = buffers.Length; --i >= 0;)
            {
                copy.buffers[i] = (DoubleBuffer)copy.buffers[i].Clone();
            }
            return(copy);
        }