hmi.sensors.eyebox2.directaccess
Class FaceListenerUpdater

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

public class FaceListenerUpdater
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  Face face
           
private  int faceId
           
private  ArrayList<Face> faces
           
private  XuukListener listener
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FaceListenerUpdater(XuukListener listener, ArrayList<Face> faces)
          This constructor creates an instance of the Updater that will send a list of all currently detected faces to the given listener
FaceListenerUpdater(XuukListener listener, Face face)
          This constructor creates an instance of the Updater that will send a new face to the given listener.
FaceListenerUpdater(XuukListener listener, int faceId)
          This constructor creates an instance of the Updater that will send the id of the face 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

face

private Face face

faceId

private int faceId

faces

private ArrayList<Face> faces
Constructor Detail

FaceListenerUpdater

public FaceListenerUpdater(XuukListener listener,
                           Face face)
This constructor creates an instance of the Updater that will send a new face to the given listener.

Parameters:
listener - the listener to send the new face to
face - the new detected face

FaceListenerUpdater

public FaceListenerUpdater(XuukListener listener,
                           int faceId)
This constructor creates an instance of the Updater that will send the id of the face that disappeared to the given listener

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

FaceListenerUpdater

public FaceListenerUpdater(XuukListener listener,
                           ArrayList<Face> faces)
This constructor creates an instance of the Updater that will send a list of all currently detected faces to the given listener

Parameters:
listener - the listener to send the list of faces to
faces - the list of faces 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