ikayaki.squid
Class SquidEmulator.DegausserEmu

java.lang.Object
  extended by java.lang.Thread
      extended by ikayaki.squid.SquidEmulator.DegausserEmu
All Implemented Interfaces:
SerialIOListener, Runnable, EventListener
Enclosing class:
SquidEmulator

private static class SquidEmulator.DegausserEmu
extends Thread
implements SerialIOListener

Runs degausser emulation process. Process incoming messages and sends data back. When message comes, process it (wait if needed for a while), updates own status and sends result back.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  Stack<String> commandStack
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SquidEmulator.DegausserEmu()
           
 
Method Summary
 void run()
           
 void serialIOEvent(SerialIOEvent event)
          Propagates serial port message event.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

commandStack

private Stack<String> commandStack
Constructor Detail

SquidEmulator.DegausserEmu

public SquidEmulator.DegausserEmu()
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

serialIOEvent

public void serialIOEvent(SerialIOEvent event)
Description copied from interface: SerialIOListener
Propagates serial port message event.

Specified by:
serialIOEvent in interface SerialIOListener
Parameters:
event - the event that happened.