Added getSectorsPerDisk.

This commit is contained in:
Robert Greene 2004-06-03 03:12:00 +00:00
parent 0caa8011e1
commit 119297dfa1

View File

@ -176,4 +176,13 @@ public abstract class ImageOrder {
int size = diskImageManager.getPhysicalSize();
diskImageManager.setDiskImage(new byte[size]);
}
/**
* Answer with the total number of sectors in a disk.
* This is used to size the disk and compare sizes instead of using byte counts
* which can differ.
*/
public int getSectorsPerDisk() {
return getTracksPerDisk() * getSectorsPerTrack();
}
}