| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for devices (e.g. RAM, graphic card,
  printer, etc). A device is a block of consecutive
  addressable units which will be attached to an
  AddressSpace. Other Hardware
  objects (mainly CPUs) can read from or
  write to the Device via the AddressSpace.
  The addresses of these calls will be translated by
  the AddressSpace to the relative address of
  the Device.
| Method Summary | |
 byte | 
getByte(int address)
Get the byte at the given address.  | 
 int | 
getNumberOfUnits()
Return the number of addressable units.  | 
 int | 
getValue(int address)
Get the value of the addressable unit at the given address.  | 
 void | 
setByte(int address,
        byte value)
Set the byte at the given address.  | 
 void | 
setValue(int address,
         int value)
Set the value of the addressable unit at the given address.  | 
| Methods inherited from interface jfrace.Hardware | 
getNumberOfBits, reset | 
| Method Detail | 
public int getNumberOfUnits()
public int getValue(int address)
getByte should be
  supported.address - Memory address.
public void setValue(int address,
                     int value)
setByte should be
  supported.address - Memory address.value - the new value.public byte getByte(int address)
getValue but has a better performance.
  address - Memory address.address.
public void setByte(int address,
                    byte value)
setValue but has a better performance.
  address - Memory address.value - new value of the byte at address.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||