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
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OneWireMonitorEvent
public OneWireMonitorEvent(OneWireMonitor owm,
DSPortAdapter adapter,
long address)
- Constructor OneWireMonitorEvent
- Parameters:
owm
- adapter
- address
-
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.