|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.dalsemi.onewire.utils.OneWireMonitor
This class allows an application to be notified of arriving and departing 1-Wire devices on a 1-Wire network.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
OneWireMonitor(DSPortAdapter adapter)
Create a 1-Wire monitoring object attached to the specified adapter. |
Method Summary | |
void |
addEventListener(OneWireMonitorEventListener owmel)
Add an event listener that should be notified in case of 1-Wire event. |
void |
killMonitor()
|
void |
removeEventListener(OneWireMonitorEventListener owmel)
Remove an event listener. |
void |
run()
Start up the show. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OneWireMonitor(DSPortAdapter adapter)
adapter
- 1-Wire adapter the monitor should use to scan
for arrivals and departures of 1-Wire devices.Method Detail |
public void killMonitor()
public void addEventListener(OneWireMonitorEventListener owmel) throws java.util.TooManyListenersException
owmel
- Event listener to addpublic void removeEventListener(OneWireMonitorEventListener owmel)
owmel
- Event listener to removepublic void run()
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |