|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.dalsemi.onewire.application.monitor.AbstractDeviceMonitor
|
+--com.dalsemi.onewire.application.monitor.NetworkDeviceMonitor
Class NetworkDeviceMonitor represents the monitor that searches the 1-Wire net, including the traversal of branches, looing for new arrivals and departures.
| Constructor Summary | |
NetworkDeviceMonitor(DSPortAdapter adapter)
Create a complex monitor that does search branches |
|
| Method Summary | |
void |
addBranch(OWPath path)
Adds a branch for searching. |
void |
cleanUpStalePathReferences()
The device monitor will internally cache OWPath objects for each 1-Wire device. |
boolean |
getBranchAutoSearching()
Indicates whether or not branches are automatically traversed. |
OWPath |
getDevicePath(Long address)
Returns the OWPath of the device with the given address. |
void |
search(Vector arrivals,
Vector departures)
Performs a search of the 1-Wire network, with branch searching |
void |
setAdapter(DSPortAdapter adapter)
Sets this monitor to search a new DSPortAdapter |
void |
setBranchAutoSearching(boolean enabled)
Indicates whether or not branches are automatically traversed. |
| Methods inherited from class com.dalsemi.onewire.application.monitor.AbstractDeviceMonitor |
addDeviceMonitorEventListener, cleanUpStaleContainerReferences, getAdapter, getAllAddresses, getDeviceContainer, getDeviceContainer, getDeviceContainer, getDeviceContainer, getDevicePath, getDevicePath, getDevicePath, getMaxErrorCount, getMaxStateCount, isMonitorRunning, killMonitor, pauseMonitor, putDeviceContainer, putDeviceContainer, putDeviceContainer, putDeviceContainer, resetSearch, resumeMonitor, run, setMaxErrorCount, setMaxStateCount |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NetworkDeviceMonitor(DSPortAdapter adapter)
the - DSPortAdapter this monitor should search| Method Detail |
public void setAdapter(DSPortAdapter adapter)
setAdapter in class AbstractDeviceMonitorthe - DSPortAdapter this monitor should searchpublic void setBranchAutoSearching(boolean enabled)
enabled - if true, all branches are automatically traversed during a
search operation.public boolean getBranchAutoSearching()
public void addBranch(OWPath path)
path - A branch to be searched during the next search routinepublic OWPath getDevicePath(Long address)
getDevicePath in class AbstractDeviceMonitoraddress - a Long object representing the address of the devicepublic void cleanUpStalePathReferences()
cleanUpStalePathReferences in class AbstractDeviceMonitor
public void search(Vector arrivals,
Vector departures)
throws OneWireException,
OneWireIOException
search in class AbstractDeviceMonitorarrivals - A vector of Long objects, represent new arrival addresses.departures - A vector of Long objects, represent departed addresses.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||