public class DeviceMonitorEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
ARRIVAL
enum for arrival/departure event types
|
static int |
DEPARTURE
enum for arrival/departure event types
|
Modifier and Type | Method and Description |
---|---|
DSPortAdapter |
getAdapter()
Returns DSPortAdapter the monitor was using when the event was generated
|
long |
getAddressAsLongAt(int index)
Returns the device address at the specified index as a primitive long.
|
java.lang.String |
getAddressAsStringAt(int index)
Returns the device address at the specified index as a String.
|
byte[] |
getAddressAt(int index)
Returns the device address at the specified index as a byte array.
|
OneWireContainer |
getContainerAt(int index)
Returns the OneWireContainer for the address at the specified index
|
int |
getDeviceCount()
Returns the number of devices associated with this event
|
int |
getEventType()
Returns the event type (ARRIVAL | DEPARTURE)
|
AbstractDeviceMonitor |
getMonitor()
Returns the monitor which generated this event
|
OWPath |
getPathForContainerAt(int index)
Returns the Path object for the device at the specified index
|
public static final int ARRIVAL
public static final int DEPARTURE
public int getEventType()
public AbstractDeviceMonitor getMonitor()
public DSPortAdapter getAdapter()
public int getDeviceCount()
public OneWireContainer getContainerAt(int index)
public OWPath getPathForContainerAt(int index)
public long getAddressAsLongAt(int index)
public byte[] getAddressAt(int index)
public java.lang.String getAddressAsStringAt(int index)
Copyright © 1999-2012 Maxim Integrated Products. All Rights Reserved.