hmi.sensors.eyebox2.directaccess
Class EyePairListenerUpdater

java.lang.Object
  extended by java.lang.Thread
      extended by hmi.sensors.eyebox2.directaccess.EyePairListenerUpdater
All Implemented Interfaces:
Runnable

public class EyePairListenerUpdater
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  int eyeId
           
private  EyePair eyePair
           
private  ArrayList<EyePair> eyes
           
private  XuukListener listener
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
EyePairListenerUpdater(XuukListener listener, ArrayList<EyePair> eyes)
          This constructor creates an instance of the Updater that will send a list of all currently detected eyepairs to the given listener
EyePairListenerUpdater(XuukListener listener, EyePair eyePair)
          This constructor creates an instance of the Updater that will send a new or changed eyepair to the given listener.
EyePairListenerUpdater(XuukListener listener, int eyeId)
          This constructor creates an instance of the Updater that will send the id of the eyepair that disappeared to the given listener
 
Method Summary
 void run()
          This method will start the thread and send the required info (as specified in the constructor) to the given listener and then stop.
 
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

listener

private XuukListener listener

eyePair

private EyePair eyePair

eyeId

private int eyeId

eyes

private ArrayList<EyePair> eyes
Constructor Detail

EyePairListenerUpdater

public EyePairListenerUpdater(XuukListener listener,
                              EyePair eyePair)
This constructor creates an instance of the Updater that will send a new or changed eyepair to the given listener. This means an eyepair that is newly detected, or an eyepair that changed it's mode from looking to non-looking, or vice versa

Parameters:
listener - the listener to send the new eyepair to
eyePair - the new detected or changed eyepair

EyePairListenerUpdater

public EyePairListenerUpdater(XuukListener listener,
                              int eyeId)
This constructor creates an instance of the Updater that will send the id of the eyepair that disappeared to the given listener

Parameters:
listener - the listener to send the disappeared face to
eyeId - the id of the eyes that disappeared

EyePairListenerUpdater

public EyePairListenerUpdater(XuukListener listener,
                              ArrayList<EyePair> eyes)
This constructor creates an instance of the Updater that will send a list of all currently detected eyepairs to the given listener

Parameters:
listener - the listener to send the list of faces to
eyes - the list of eyepairs that are currently detected
Method Detail

run

public void run()
This method will start the thread and send the required info (as specified in the constructor) to the given listener and then stop.

Specified by:
run in interface Runnable
Overrides:
run in class Thread