1.0.0

org.eclipse.soda.dk.comm
Class SerialStatusEventThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.eclipse.soda.dk.comm.SerialStatusEventThread
All Implemented Interfaces:
java.lang.Runnable

 class SerialStatusEventThread
extends java.lang.Thread

Version:
1.0.0

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  NSSerialPort serialPort
          Define the serial port (NSSerialPort) field.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SerialStatusEventThread(int fd, NSSerialPort sp)
          Constructs an instance of this class from the specified fd and sp parameters.
 
Method Summary
 int getPollingTime()
          Gets the polling time (int) value.
 int getStopThreadFlag()
          Gets the stop thread flag (int) value.
 void run()
          Run.
 void setStopThreadFlag(int value)
          Sets the stop thread flag value.
 
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

serialPort

NSSerialPort serialPort
Define the serial port (NSSerialPort) field.

Constructor Detail

SerialStatusEventThread

SerialStatusEventThread(int fd,
                        NSSerialPort sp)
Constructs an instance of this class from the specified fd and sp parameters.

Parameters:
fd - The fd (int) parameter.
sp - The sp (NSSerialPort) parameter.
Method Detail

getPollingTime

public int getPollingTime()
Gets the polling time (int) value.

Returns:
The polling time (int) value.

getStopThreadFlag

public int getStopThreadFlag()
Gets the stop thread flag (int) value.

Returns:
The stop thread flag (int) value.
See Also:
setStopThreadFlag(int)

run

public void run()
Run.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

setStopThreadFlag

public void setStopThreadFlag(int value)
Sets the stop thread flag value.

Parameters:
value - The value (int) parameter.
See Also:
getStopThreadFlag()

1.0.0

Copyright (c) 1999, 2007 IBM