com.dalsemi.onewire.utils
Class NetworkMonitorEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.dalsemi.onewire.utils.NetworkMonitorEvent
- All Implemented Interfaces:
- Serializable
- public class NetworkMonitorEvent
- extends EventObject
1-Wire® complex Network Event. Used for keeping the state of the 1-Wire complex
Network monitor event.
- Version:
- 0.00, 18 September 2000
- See Also:
OWPath
,
NetworkMonitor
,
NetworkMonitorEventListener
, Serialized Form
NetworkMonitorEvent
public NetworkMonitorEvent(NetworkMonitor nm,
DSPortAdapter adapter,
long address,
OWPath path)
- Create a complex Network monitor event.
- Parameters:
nm
- NetworkMonitor instanceadapter
- the DSPortAdapter that the device is onaddress
- address of the devicepath
- OWPath that the device is on
getDeviceContainer
public OneWireContainer getDeviceContainer()
- Get the 1-Wire device that this event is about as a 1-Wire container.
- Returns:
- 1-Wire container for event 1-Wire device
getAdapter
public DSPortAdapter getAdapter()
- Get the adapter this event occurred on.
- Returns:
- adapter the event occurred on
getOWPath
public OWPath getOWPath()
- Get the 1-Wire path where the event occurred
- Returns:
- 1-Wire Path that the event 1-Wire device is on
getAddress
public byte[] getAddress()
- Get the address of the event 1-Wire device as a byte array
- Returns:
- address as a byte array
- See Also:
Address
getAddressAsLong
public long getAddressAsLong()
- Get the address of the event 1-Wire device as a long
- Returns:
- address as a long
- See Also:
Address
getAddressAsString
public String getAddressAsString()
- Get the address of the event 1-Wire device as a string
- Returns:
- address as a string
- See Also:
Address