|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dioscuri.module.AbstractModule dioscuri.module.ModuleMouse dioscuri.module.mouse.Mouse
public class Mouse
An implementation of a mouse module.
Metadata module
********************************************
general.type : mouse
general.name : Serial mouse
general.architecture : Von Neumann
general.description : Models a serial mouse
general.creator : Koninklijke Bibliotheek, Nationaal Archief of the Netherlands
general.version : 1.0
general.keywords : Mouse, Keyboard, serial, PS/2
general.relations : Serialport, Keyboard
general.yearOfIntroduction : 1987
general.yearOfEnding :
general.ancestor : DE-9 RS-232 serial mouse
general.successor : USB mouse
Notes:
- mouse can use one of the following connection types:
+ serial port
+ PS/2 via keyboard controller
- all controller aspects are implemented in keyboard: (mouse is only pointing device but not controller)
+ I/O ports
+ IRQ handling
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface dioscuri.interfaces.Module |
---|
Module.Type |
Field Summary |
---|
Fields inherited from class dioscuri.module.AbstractModule |
---|
type |
Constructor Summary | |
---|---|
Mouse(Emulator owner)
Class constructor |
Method Summary | |
---|---|
void |
controlMouse(byte value)
|
byte |
getDataFromBuffer()
Returns the head of the buffer FIFO, data is automatically removed from buffer |
java.lang.String |
getDump()
Return a dump of module status |
byte |
getSerialData()
|
boolean |
isBufferEmpty()
|
boolean |
isDataAvailable()
|
void |
mouseMotion(java.awt.event.MouseEvent event)
|
boolean |
reset()
Reset all parameters of module. |
void |
setMouseEnabled(boolean status)
|
void |
setMouseType(java.lang.String type)
|
void |
setSerialData(byte data)
|
void |
storeBufferData(boolean forceEnqueue)
|
Methods inherited from class dioscuri.module.AbstractModule |
---|
getConnection, getConnections, getDebugMode, getExpectedConnections, getType, isConnected, setConnection, setDebugMode, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mouse(Emulator owner)
Method Detail |
---|
public boolean reset()
reset
in interface Module
reset
in class AbstractModule
AbstractModule
public java.lang.String getDump()
getDump
in interface Module
getDump
in class AbstractModule
AbstractModule
public void setMouseEnabled(boolean status)
setMouseEnabled
in class ModuleMouse
ModuleMouse
public void setMouseType(java.lang.String type)
setMouseType
in class ModuleMouse
ModuleMouse
public boolean isBufferEmpty()
isBufferEmpty
in class ModuleMouse
ModuleMouse
public void storeBufferData(boolean forceEnqueue)
storeBufferData
in class ModuleMouse
ModuleMouse
public byte getDataFromBuffer()
getDataFromBuffer
in class ModuleMouse
ModuleMouse
public void controlMouse(byte value)
controlMouse
in class ModuleMouse
ModuleMouse
public void mouseMotion(java.awt.event.MouseEvent event)
mouseMotion
in class ModuleMouse
ModuleMouse
public boolean isDataAvailable()
isDataAvailable
in interface UART
public byte getSerialData()
getSerialData
in interface UART
public void setSerialData(byte data)
setSerialData
in interface UART
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |