1-Wire API for .NET Version 4.00
Public Member Functions

DeviceMonitor Class Reference

Inherits com::dalsemi::onewire::application::monitor::AbstractDeviceMonitor.

List of all members.

Public Member Functions

 DeviceMonitor (DSPortAdapter adapter)
 Create a simple monitor that does not search branches.
void setAdapter (DSPortAdapter adapter)
 Sets this monitor to search a new DSPortAdapter.
OWPath getDevicePath (Long address)
 Returns the OWPath of the device with the given address.
void setDoAlarmSearch (boolean findAlarmingParts)
 Sets this monitor to search for alarming parts.
boolean getDoAlarmSearch ()
 See if Gets this monitor to search for alarming parts.
void search (Vector arrivals, Vector departures) throws OneWireException, OneWireIOException
 Performs a search of the 1-Wire network without searching branches.

Detailed Description

Class DeviceMonitor represents the monitor that searches the 1-Wire net for new arrivals. This monitor performs a simple search, meaning that no branches are explicitly traversed. If a branch is activated/deactivated between search cycles, this monitor will see the arrival/departure of new devices without reference to the branch which they lie on.

Author:
SH
Version:
1.01

Constructor & Destructor Documentation

Create a simple monitor that does not search branches.

Parameters:
theDSPortAdapter this monitor should search

Member Function Documentation

OWPath getDevicePath ( Long  address) [virtual]

Returns the OWPath of the device with the given address.

Parameters:
addressa Long object representing the address of the device
Returns:
The OWPath representing the network path to the device.

Implements AbstractDeviceMonitor.

boolean getDoAlarmSearch ( )

See if Gets this monitor to search for alarming parts.

Parameters:
theDSPortAdapter this monitor should search
void search ( Vector  arrivals,
Vector  departures 
) throws OneWireException, OneWireIOException [virtual]

Performs a search of the 1-Wire network without searching branches.

Parameters:
arrivalsA vector of Long objects, represent new arrival addresses.
departuresA vector of Long objects, represent departed addresses.

Implements AbstractDeviceMonitor.

void setAdapter ( DSPortAdapter  adapter) [virtual]

Sets this monitor to search a new DSPortAdapter.

Parameters:
theDSPortAdapter this monitor should search

Implements AbstractDeviceMonitor.

void setDoAlarmSearch ( boolean  findAlarmingParts)

Sets this monitor to search for alarming parts.

Parameters:
theDSPortAdapter this monitor should search

The documentation for this class was generated from the following file: