|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jfrace.device.DummyDevice
Dummy device. Occupies one byte in the address space. Returns always 0.
| 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 |
public DummyDevice()
| Method Detail |
public void reset()
Hardwarereset in interface Hardwarepublic int getNumberOfBits()
getNumberOfBits in interface Hardwarepublic int getNumberOfUnits()
getNumberOfUnits in interface Devicepublic int getValue(int address)
getValue in interface Devicejfrace.Deviceaddress - Memory address.
public void setValue(int address,
int value)
setValue in interface Devicejfrace.Deviceaddress - Memory address.value - the new value.public byte getByte(int address)
getByte in interface Devicejfrace.Deviceaddress - Memory address.address.
public void setByte(int address,
byte value)
setByte in interface Devicejfrace.Deviceaddress - 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 | |||||||||