dea.hc.jds
Class TCPRead
java.lang.Object
dea.hc.jds.TCPRead
- All Implemented Interfaces:
- java.util.EventListener, IDebugLevels, java.lang.Runnable, SerialPortEventListener
- public class TCPRead
- extends java.lang.Object
- implements java.lang.Runnable, SerialPortEventListener, IDebugLevels
Title: Time Commander Plus Reader class
Description: Class reading data from the Time Commander Plus serail port and putting the data in a local queue.
Copyright: Copyright (c) 2005
Company: RMRR
@author David Abigt
@version 1.0
Fields inherited from interface dea.common.IDebugLevels |
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSerialPort
public SerialPort getSerialPort()
setSerialPort
public void setSerialPort(SerialPort serialPort)
popQueueHead
public ReadQueueObject popQueueHead()
getInstance
public static TCPRead getInstance(CommPortIdentifier portId)
throws PortInUseException,
java.util.TooManyListenersException,
java.io.IOException,
UnsupportedCommOperationException
- get singleton
- Throws:
PortInUseException
java.util.TooManyListenersException
java.io.IOException
UnsupportedCommOperationException
startEcho
public void startEcho()
throws java.io.IOException
- Send command to Time Commander to turn echo on.
- Throws:
java.io.IOException
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
serialEvent
public void serialEvent(SerialPortEvent event)
- Specified by:
serialEvent
in interface SerialPortEventListener
Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.