Exemple #1
0
 public HBA(HBA oldH)
 {
     Count = 0;
     hdd   = new List <disk>();
     this.hdd.InsertRange(0, oldH.hdd);
     Count += oldH.Count;
 }
Exemple #2
0
 public raid0(disk dType)
 {
     array = new HBA();
     for (int i = 0; i < minHDD; i++)
     {
         array.addDisk(dType);
         arrayCapacity += dType.getSize();
     }
 }
Exemple #3
0
 public raid5(disk dType)
 {
     array = new HBA();
     for (int i = 0; i < minHDD; i++)
     {
         addDisk(dType);
         arrayCapacity += dType.getSize();
     }
     arrayCapacity = (array.Count - 1) * array.getDisk(0).getSize();
 }
Exemple #4
0
 public raid0()
 {
     array         = new HBA();
     arrayCapacity = 0;
 }