jmce - 1_02

jmce.sim.terminal
Class ttyCRT

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.terminal.AbstractCRT
          extended by jmce.sim.terminal.ttyCRT
All Implemented Interfaces:
java.lang.Runnable, Hardware, MemoryWriteListener, CRT

public class ttyCRT
extends AbstractCRT
implements java.lang.Runnable

TTY implementation of CRT.

Native class for tty CRT. Current implementation support :

Version:
1.00
Author:
Mario Viara

Field Summary
 int DOWN
           
 int KEY_DEL
           
 int KEY_F10
           
 int LEFT
           
 int RIGHT
           
 int UP
           
 
Fields inherited from class jmce.sim.terminal.AbstractCRT
attMemory, charMemory, lineChanged, numCol, numRow, screenChanged, terminal
 
Constructor Summary
ttyCRT()
           
 
Method Summary
 void destroy()
          Destroy the device.
 void init(Hardware parent)
          Initialize the hardware.
 void run()
          Runner for polling the keyboard and if the screen is changed update the CRT.
 
Methods inherited from class jmce.sim.terminal.AbstractCRT
changedLine, getAtt, getChar, writeMemory
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Hardware
addHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Field Detail

UP

public final int UP
See Also:
Constant Field Values

DOWN

public final int DOWN
See Also:
Constant Field Values

LEFT

public final int LEFT
See Also:
Constant Field Values

RIGHT

public final int RIGHT
See Also:
Constant Field Values

KEY_F10

public final int KEY_F10
See Also:
Constant Field Values

KEY_DEL

public final int KEY_DEL
See Also:
Constant Field Values
Constructor Detail

ttyCRT

public ttyCRT()
Method Detail

init

public void init(Hardware parent)
          throws SIMException
Description copied from interface: Hardware
Initialize the hardware. This method must be called before any use of the interface. Only set ... / get ... method are allowed to be called before the intialization.

Specified by:
init in interface Hardware
Overrides:
init in class AbstractCRT
Parameters:
parent - Parent of this hardware.
Throws:
SIMException

destroy

public void destroy()
Description copied from interface: Hardware
Destroy the device. This method can be called only one time

Specified by:
destroy in interface Hardware
Overrides:
destroy in class AbstractHardware

run

public void run()
Runner for polling the keyboard and if the screen is changed update the CRT.

Specified by:
run in interface java.lang.Runnable

jmce - 1_02