nl.kbna.dioscuri.module
Class ModuleVideo

java.lang.Object
  extended by nl.kbna.dioscuri.module.Module
      extended by nl.kbna.dioscuri.module.ModuleDevice
          extended by nl.kbna.dioscuri.module.ModuleVideo
Direct Known Subclasses:
Video

public abstract class ModuleVideo
extends ModuleDevice

Interface representing a generic hardware module.


Constructor Summary
ModuleVideo()
           
 
Method Summary
abstract  byte getAttributePaletteRegister(int index)
          Returns a byte from attribute palette register at position index
abstract  byte getTextSnapshot(int index)
          Returns a byte from text snapshot at position index
abstract  byte[] getVideoBuffer()
          Returns a pointer to the whole video buffer
abstract  byte getVideoBufferByte(int index)
          Returns a byte from video buffer at position index
abstract  java.lang.String getVideoBufferCharacters()
          Returns all characters (as Unicode) that are currently in buffer
abstract  byte readMode(int addr)
          Video read mode implementations
abstract  void setTextSnapshot(int index, byte data)
          Stores a byte in text snapshot at position index
abstract  void setVideoBufferByte(int index, byte data)
          Stores a byte in video buffer at position index
abstract  void writeMode(int address, byte data)
          Video write mode implementations
 
Methods inherited from class nl.kbna.dioscuri.module.ModuleDevice
getIOPortByte, getIOPortDoubleWord, getIOPortWord, getUpdateInterval, setIOPortByte, setIOPortDoubleWord, setIOPortWord, setUpdateInterval, update
 
Methods inherited from class nl.kbna.dioscuri.module.Module
getConnection, getData, getDebugMode, getDump, getID, getName, getType, isConnected, isObserved, reset, setConnection, setData, setData, setDebugMode, setObserved, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleVideo

public ModuleVideo()
Method Detail

readMode

public abstract byte readMode(int addr)
Video read mode implementations


writeMode

public abstract void writeMode(int address,
                               byte data)
Video write mode implementations

Parameters:
address -
data -

getVideoBuffer

public abstract byte[] getVideoBuffer()
Returns a pointer to the whole video buffer

Returns:
byte[] containing the video buffer

getVideoBufferByte

public abstract byte getVideoBufferByte(int index)
Returns a byte from video buffer at position index

Parameters:
int - index
Returns:
byte from video buffer

setVideoBufferByte

public abstract void setVideoBufferByte(int index,
                                        byte data)
Stores a byte in video buffer at position index

Parameters:
int - index
byte - data

getVideoBufferCharacters

public abstract java.lang.String getVideoBufferCharacters()
Returns all characters (as Unicode) that are currently in buffer

Returns:
String containing all characters in the buffer or null when no characters exist

getTextSnapshot

public abstract byte getTextSnapshot(int index)
Returns a byte from text snapshot at position index

Parameters:
int - index
Returns:
byte from textsnapshot

setTextSnapshot

public abstract void setTextSnapshot(int index,
                                     byte data)
Stores a byte in text snapshot at position index

Parameters:
int - index
byte - data

getAttributePaletteRegister

public abstract byte getAttributePaletteRegister(int index)
Returns a byte from attribute palette register at position index

Parameters:
int - index
Returns:
byte from register