fr.imag.adele.bundle.tagitproducer
Class TagItReader

java.lang.Object
  extended byjava.lang.Thread
      extended byfr.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


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TagItReader(Properties properties, TagItListener tagItListener)
          Constructor
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagItReader

public TagItReader(Properties properties,
                   TagItListener tagItListener)
            throws Exception
Constructor

Method Detail

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)