jfrace.device
Class DummyDevice

java.lang.Object
  |
  +--jfrace.device.DummyDevice
All Implemented Interfaces:
Device, Hardware
Direct Known Subclasses:
ELZET80Keyboard

public class DummyDevice
extends java.lang.Object
implements Device

Dummy device. Occupies one byte in the address space. Returns always 0.

Author:
Franz-Josef Elmer

Constructor Summary
DummyDevice()
           
 
Method Summary
 byte getByte(int address)
          Return 0.
 int getNumberOfBits()
          Return 8.
 int getNumberOfUnits()
          Return 1.
 int getValue(int address)
          Return 0.
 void reset()
          Reset the hardware.
 void setByte(int address, byte value)
          Does nothing.
 void setValue(int address, int value)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyDevice

public DummyDevice()
Method Detail

reset

public void reset()
Description copied from interface: Hardware
Reset the hardware. After reseting this hardware will be in a well-defined state.
Specified by:
reset in interface Hardware

getNumberOfBits

public int getNumberOfBits()
Return 8.
Specified by:
getNumberOfBits in interface Hardware

getNumberOfUnits

public int getNumberOfUnits()
Return 1.
Specified by:
getNumberOfUnits in interface Device

getValue

public int getValue(int address)
Return 0.
Specified by:
getValue in interface Device
Following copied from interface: jfrace.Device
Parameters:
address - Memory address.
Returns:
the value.

setValue

public void setValue(int address,
                     int value)
Does nothing.
Specified by:
setValue in interface Device
Following copied from interface: jfrace.Device
Parameters:
address - Memory address.
value - the new value.

getByte

public byte getByte(int address)
Return 0.
Specified by:
getByte in interface Device
Following copied from interface: jfrace.Device
Parameters:
address - Memory address.
Returns:
the value of the byte at address.

setByte

public void setByte(int address,
                    byte value)
Does nothing.
Specified by:
setByte in interface Device
Following copied from interface: jfrace.Device
Parameters:
address - Memory address.
value - new value of the byte at address.