public HBA(HBA oldH) { Count = 0; hdd = new List <disk>(); this.hdd.InsertRange(0, oldH.hdd); Count += oldH.Count; }
public raid0(disk dType) { array = new HBA(); for (int i = 0; i < minHDD; i++) { array.addDisk(dType); arrayCapacity += dType.getSize(); } }
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(); }
public raid0() { array = new HBA(); arrayCapacity = 0; }