fr.imag.adele.bundle.tagitproducer
Class TagItReader
java.lang.Object
java.lang.Thread
fr.imag.adele.bundle.tagitproducer.TagItReader
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator, EventListener, Runnable, javax.comm.SerialPortEventListener
- public class TagItReader
- extends Thread
- implements javax.comm.SerialPortEventListener, org.osgi.framework.BundleActivator
Method Summary |
void |
run()
loop to send "Read TRP Detail" commands |
void |
serialEvent(javax.comm.SerialPortEvent event)
event handler to read the "Read TRP Detail" response command |
void |
start(org.osgi.framework.BundleContext bundleContext)
|
void |
stop(org.osgi.framework.BundleContext bundleContext)
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
TagItReader
public TagItReader(Properties properties,
TagItListener tagItListener)
throws Exception
- Constructor
run
public void run()
- loop to send "Read TRP Detail" commands
- Specified by:
run
in interface Runnable
serialEvent
public void serialEvent(javax.comm.SerialPortEvent event)
- event handler to read the "Read TRP Detail" response command
- Specified by:
serialEvent
in interface javax.comm.SerialPortEventListener
- See Also:
SerialPortEventListener.serialEvent(javax.comm.SerialPortEvent)
start
public void start(org.osgi.framework.BundleContext bundleContext)
throws Exception
- Specified by:
start
in interface org.osgi.framework.BundleActivator
- Throws:
Exception
- See Also:
BundleActivator.start(org.osgi.framework.BundleContext)
stop
public void stop(org.osgi.framework.BundleContext bundleContext)
throws Exception
- Specified by:
stop
in interface org.osgi.framework.BundleActivator
- Throws:
Exception
- See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)