jmce - 1_02

jmce.sim.disk
Class AbstractDiskController

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by 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

Field Summary
protected  Disk disk
           
protected  int drive
           
protected  Disk nullDisk
           
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Constructor Summary
AbstractDiskController()
           
 
Method Summary
 void addDirDiskCPM(java.lang.String dir, DPB dpb)
           
 void addDirDiskIBM3740(java.lang.String dir)
           
 void addImageDisk(java.lang.String name, DPB dpb)
           
 void addImageDiskIBM3740(java.lang.String name)
           
 void addNullDisk()
           
 Disk getDisk(int n)
          Return the specified Disk.
 int getDiskCount()
          Return the number of attached drive.
 int getDrive()
           
 void setDrive(int drive)
           
 
Methods inherited from class jmce.sim.AbstractPeripheral
idle, registerCPU, setIdle, setLive
 
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.Peripheral
idle, registerCPU
 
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
 

Field Detail

drive

protected int drive

nullDisk

protected final Disk nullDisk

disk

protected Disk disk
Constructor Detail

AbstractDiskController

public AbstractDiskController()
Method Detail

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()

jmce - 1_02