hmi.sensors.eyebox2.directaccess
Class EyePairListenerUpdater
java.lang.Object
java.lang.Thread
hmi.sensors.eyebox2.directaccess.EyePairListenerUpdater
- All Implemented Interfaces:
- Runnable
public class EyePairListenerUpdater
- 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
eyePair
private EyePair eyePair
eyeId
private int eyeId
eyes
private ArrayList<EyePair> eyes
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 toeyePair - 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 toeyeId - 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 toeyes - the list of eyepairs 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