hmi.sensors.eyebox2.directaccess
Class FaceListenerUpdater
java.lang.Object
java.lang.Thread
hmi.sensors.eyebox2.directaccess.FaceListenerUpdater
- All Implemented Interfaces:
- Runnable
public class FaceListenerUpdater
- extends Thread
|
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 |
listener
private XuukListener listener
face
private Face face
faceId
private int faceId
faces
private ArrayList<Face> faces
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 toface - 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 tofaceId - 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 tofaces - the list of faces that are currently detected
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