OWPathElement Class Reference

List of all members.


Detailed Description

1-Wire® Network path element.

Instances of this class are used to represent a single branch of a complex 1-Wire network.

Usage

Example

Enumerate through the 1-wire path elements in the 1-Wire path 'path' and print information:

 
   OWPathElement path_element;

   // enumerature through the path elements
   for (Enumeration path_enum = path.getAllOWPathElements(); 
           path_enum.hasMoreElements(); )
   {

      // cast the enum as a OWPathElement
      path_element = (OWPathElement)path_enum.nextElement();

      // print info
      System.out.println("Address: " + path_element.getContainer().getAddressAsString());
      System.out.println("Channel number: " + path_element.getChannel()); 
   }
  

See also:
com.dalsemi.onewire.utils.OWPath

com.dalsemi.onewire.container.OneWireContainer

Version:
0.00, 18 September 2000
Author:
DS

Public Member Functions

 OWPathElement (OneWireContainer owcInstance, int channelNumber)
 Create a new 1-Wire path element.
OneWireContainer getContainer ()
 Get the 1-Wire container for this 1-Wire path element.
int getChannel ()
 Get the channel number of this 1-Wire path element.

Constructor & Destructor Documentation

OWPathElement ( OneWireContainer  owcInstance,
int  channelNumber 
)

Create a new 1-Wire path element.

Parameters:
owcInstance device that is the path element. Must implement SwitchContainer.
channelNumber channel number of the 1-Wire path


Member Function Documentation

OneWireContainer getContainer (  ) 

Get the 1-Wire container for this 1-Wire path element.

Returns:
OneWireContainer of this 1-Wire path element
See also:
com.dalsemi.onewire.container.OneWireContainer

int getChannel (  ) 

Get the channel number of this 1-Wire path element.

Returns:
channel number of this element


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

Generated on Thu Aug 28 15:42:38 2008 for 1-Wire API for .NET by  doxygen 1.5.6