com.dalsemi.onewire.utils
Class NetworkMonitorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.dalsemi.onewire.utils.NetworkMonitorEvent
All Implemented Interfaces:
java.io.Serializable

public class NetworkMonitorEvent
extends java.util.EventObject

1-Wire Network Event. Used for keeping the state of the 1-Wire Monitor Event.

Version:
0.00, 18 September 2000
See Also:
Serialized Form

Constructor Summary
NetworkMonitorEvent(NetworkMonitor nm, DSPortAdapter adapter, long address, OWPath path)
          Creates an network monitor event
 
Method Summary
 DSPortAdapter getAdapter()
          Retrieve the adapter
 byte[] getAddress()
          Retrieve the address as a byte array
 long getAddressAsLong()
          Retrieve the address as a long
 java.lang.String getAddressAsString()
          Retrieve the address as a string
 OneWireContainer getDeviceContainer()
          Retrieve the device as a container
 OWPath getOWPath()
          Retrieve the path
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkMonitorEvent

public NetworkMonitorEvent(NetworkMonitor nm,
                           DSPortAdapter adapter,
                           long address,
                           OWPath path)
Creates an network monitor event
Parameters:
nm -  
adapter - the DSPortAdapter that the device is on
address - address of the device
path - OWPath that the device is on
Method Detail

getDeviceContainer

public OneWireContainer getDeviceContainer()
Retrieve the device as a container
Returns:
the container for the device

getAdapter

public DSPortAdapter getAdapter()
Retrieve the adapter
Returns:
the adapter the device is on

getOWPath

public OWPath getOWPath()
Retrieve the path
Returns:
the OWPath that the device is on

getAddress

public byte[] getAddress()
Retrieve the address as a byte array
Returns:
the address as a byte array

getAddressAsLong

public long getAddressAsLong()
Retrieve the address as a long
Returns:
the address as a long

getAddressAsString

public java.lang.String getAddressAsString()
Retrieve the address as a string
Returns:
the address as a string