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
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 onaddress
- address of the devicepath
- OWPath that the device is on
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