Emu8255
Class OutputThread

java.lang.Object
  extended by java.lang.Thread
      extended by Emu8255.OutputThread
All Implemented Interfaces:
java.lang.Runnable

public class OutputThread
extends java.lang.Thread

This class repeatedly reads from IO_FILE (C:\emu8086.io) every msec milliseconds checking whether or not a new value has been written to a port.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
OutputThread(Emu8255 mainclass, Emu8255GUI gui, int msec)
          Parameterized Constructor.
 
Method Summary
 void run()
          This method actually reads from file.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputThread

public OutputThread(Emu8255 mainclass,
                    Emu8255GUI gui,
                    int msec)
Parameterized Constructor.

Parameters:
gui - A reference to the Emu8255 user interface.
msec - Time delay between each reading from file.
Method Detail

run

public void run()
This method actually reads from file. Because of underlying limitations, the application is aware of a new value been written to a port,
when it's different from the previous one. This may obviously lead to an unexpected and undesired behaviour.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
Throws:
java.lang.InterruptedException
See Also:
IO