com.dalsemi.onewire.utils
Class OneWireMonitorEvent

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

public class OneWireMonitorEvent
extends java.util.EventObject

This class encapsulates a 1-Wire network event such as arrival or departure.

See Also:
Serialized Form

Constructor Summary
OneWireMonitorEvent(OneWireMonitor owm, DSPortAdapter adapter, long address)
          Constructor OneWireMonitorEvent
 
Method Summary
 DSPortAdapter getAdapter()
          Retrieve the adapter on which the event occurred.
 byte[] getAddress()
          Retrieve the address of the 1-Wire device causing the event.
 long getAddressAsLong()
          Retrieve the address of the 1-Wire device causing the event.
 java.lang.String getAddressAsString()
          Retrieve the address of the 1-Wire device causing the event.
 OneWireContainer getDeviceContainer()
          Retrieve the container for the device causing the event.
 
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

OneWireMonitorEvent

public OneWireMonitorEvent(OneWireMonitor owm,
                           DSPortAdapter adapter,
                           long address)
Constructor OneWireMonitorEvent
Parameters:
owm -  
adapter -  
address -  
Method Detail

getDeviceContainer

public OneWireContainer getDeviceContainer()
Retrieve the container for the device causing the event.

getAdapter

public DSPortAdapter getAdapter()
Retrieve the adapter on which the event occurred.

getAddress

public byte[] getAddress()
Retrieve the address of the 1-Wire device causing the event.

getAddressAsLong

public long getAddressAsLong()
Retrieve the address of the 1-Wire device causing the event.

getAddressAsString

public java.lang.String getAddressAsString()
Retrieve the address of the 1-Wire device causing the event.