|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.sim.AbstractHardware
jmce.sim.AbstractPeripheral
jmce.sim.disk.AbstractDisk
jmce.sim.disk.NullDisk
public class NullDisk
Null disk implementation.
Can have any size but always return error on any operation as read,write and mount.
Field Summary |
---|
Fields inherited from class jmce.sim.disk.AbstractDisk |
---|
buffer, head, mounted, numHead, numSector, numTrack, readOnly, sector, sectorSize, track |
Fields inherited from class jmce.sim.AbstractPeripheral |
---|
cpu |
Fields inherited from interface jmce.sim.Disk |
---|
ERROR, ERROR_SEEK, ERROR_WRITE_PROTECT |
Constructor Summary | |
---|---|
NullDisk()
|
Method Summary | |
---|---|
void |
dismount()
Dismount the disk |
boolean |
mount()
Mount the disk. |
int |
read(int pos)
Read one sector. |
int |
write(int pos)
Write one sector. |
Methods inherited from class jmce.sim.disk.AbstractDisk |
---|
format, getBuffer, getDiskSize, getDiskSizeString, getHead, getNumHead, getNumSector, getNumTrack, getReadOnly, getSector, getSectorSize, getTrack, isMounted, read, read, setHead, setMounted, setNumHead, setNumSector, setNumTrack, setReadOnly, setSector, setSectorSize, setTrack, write, write |
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 |
Constructor Detail |
---|
public NullDisk()
Method Detail |
---|
public void dismount() throws SIMException
Disk
dismount
in interface Disk
dismount
in class AbstractDisk
SIMException
public boolean mount() throws SIMException
Disk
mount
in interface Disk
mount
in class AbstractDisk
SIMException
public int read(int pos)
AbstractDisk
read
in class AbstractDisk
public int write(int pos)
AbstractDisk
write
in class AbstractDisk
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |