jmce.sim.disk
Class AbstractDiskController
java.lang.Object
jmce.sim.AbstractHardware
jmce.sim.AbstractPeripheral
jmce.sim.disk.AbstractDiskController
- All Implemented Interfaces:
- DiskController, Hardware, Peripheral
- Direct Known Subclasses:
- FDC, FDC, FDC, PD765
public class AbstractDiskController
- extends AbstractPeripheral
- implements DiskController
Abstract implementation of DiskCntroller.
Implements all function not hardare depending.
- Version:
- 1.00
- Author:
- Mario Viara
Methods inherited from class jmce.sim.AbstractHardware |
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jmce.sim.Hardware |
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName |
drive
protected int drive
nullDisk
protected final Disk nullDisk
disk
protected Disk disk
AbstractDiskController
public AbstractDiskController()
getDrive
public int getDrive()
- Specified by:
getDrive
in interface DiskController
setDrive
public void setDrive(int drive)
throws SIMException
- Specified by:
setDrive
in interface DiskController
- Throws:
SIMException
getDiskCount
public int getDiskCount()
- Description copied from interface:
DiskController
- Return the number of attached drive.
- Specified by:
getDiskCount
in interface DiskController
getDisk
public Disk getDisk(int n)
throws SIMException
- Description copied from interface:
DiskController
- Return the specified Disk.
- Specified by:
getDisk
in interface DiskController
- Throws:
SIMException
addDirDiskIBM3740
public void addDirDiskIBM3740(java.lang.String dir)
addDirDiskCPM
public void addDirDiskCPM(java.lang.String dir,
DPB dpb)
addImageDisk
public void addImageDisk(java.lang.String name,
DPB dpb)
addImageDiskIBM3740
public void addImageDiskIBM3740(java.lang.String name)
addNullDisk
public void addNullDisk()