jSyncManager

org.jSyncManager.JSerial.TestSuite
Class TerminalThread

java.lang.Object
  extended byorg.jSyncManager.JSerial.TestSuite.TerminalThread
All Implemented Interfaces:
java.lang.Runnable

class TerminalThread
extends java.lang.Object
implements java.lang.Runnable

A simple class to represent a thread for use by TerminalUI. This class simply creates a runnable object which is used as a thread by the TerminalUI to retrieve characters from the SerialInterface InputStream, and write them to the TerminalUI's display.

Version:
1.0
Author:
Brad Barclay.

Field Summary
 java.io.DataInputStream is
           
 TerminalUI parent
           
 boolean running
           
 
Constructor Summary
TerminalThread(java.io.DataInputStream is, TerminalUI parent)
          This constructor creates a new runnable thread for the TerminalUI class.
 
Method Summary
 void run()
          Starts the thread.
 void setRunning(boolean b)
          Used to signal wether or not this thread should continue to execute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

is

public java.io.DataInputStream is

parent

public TerminalUI parent

running

public boolean running
Constructor Detail

TerminalThread

public TerminalThread(java.io.DataInputStream is,
                      TerminalUI parent)
This constructor creates a new runnable thread for the TerminalUI class.

Parameters:
is - The DataInputStream for incoming character bytes.
parent - The TerminalUI parent object.
Method Detail

run

public void run()
Starts the thread.

Specified by:
run in interface java.lang.Runnable

setRunning

public void setRunning(boolean b)
Used to signal wether or not this thread should continue to execute.

Parameters:
b - true if this thread should continue to execute, false otherwise.

jSyncManager

Copyright (c) 1998 - 2003 Brad BARCLAY and others. All Rights Reserved.