Public Member Functions | |
int | getEventType () |
Returns the event type (ARRIVAL | DEPARTURE). | |
AbstractDeviceMonitor | getMonitor () |
Returns the monitor which generated this event. | |
DSPortAdapter | getAdapter () |
Returns DSPortAdapter the monitor was using when the event was generated. | |
int | getDeviceCount () |
Returns the number of devices associated with this event. | |
OneWireContainer | getContainerAt (int index) |
Returns the OneWireContainer for the address at the specified index. | |
OWPath | getPathForContainerAt (int index) |
Returns the Path object for the device at the specified index. | |
long | getAddressAsLongAt (int index) |
Returns the device address at the specified index as a primitive long. | |
byte[] | getAddressAt (int index) |
Returns the device address at the specified index as a byte array. | |
String | getAddressAsStringAt (int index) |
Returns the device address at the specified index as a String. | |
Static Public Attributes | |
static final int | ARRIVAL = 0 |
enum for arrival/departure event types | |
Protected Attributes | |
int | eventType = -1 |
The type of event (ARRIVAL|DEPARTURE). | |
AbstractDeviceMonitor | monitor = null |
The monitor which generated the event. | |
DSPortAdapter | adapter = null |
The DSPortAdapter the monitor was using at the time of event. | |
Vector | vDeviceAddress = null |
Vector of addresses for devices. | |
Package Functions | |
DeviceMonitorEvent (int eventType, AbstractDeviceMonitor source, DSPortAdapter adapter, Vector addresses) | |
Creates a new DeviceMonitor event with the specified characteristics. |
DeviceMonitorEvent | ( | int | eventType, | |
AbstractDeviceMonitor | source, | |||
DSPortAdapter | adapter, | |||
Vector | addresses | |||
) | [package] |
Creates a new DeviceMonitor event with the specified characteristics.
eventType | The type of event (ARRIVAL | DEPARTURE) | |
source | The monitor which generated the event | |
adapter | The DSPortAdapter the monitor was using | |
addresses | Vector of addresses for devices |
int getEventType | ( | ) |
Returns the event type (ARRIVAL | DEPARTURE).
AbstractDeviceMonitor getMonitor | ( | ) |
Returns the monitor which generated this event.
DSPortAdapter getAdapter | ( | ) |
Returns DSPortAdapter the monitor was using when the event was generated.
int getDeviceCount | ( | ) |
Returns the number of devices associated with this event.
OneWireContainer getContainerAt | ( | int | index | ) |
Returns the OneWireContainer for the address at the specified index.
OWPath getPathForContainerAt | ( | int | index | ) |
Returns the Path object for the device at the specified index.
long getAddressAsLongAt | ( | int | index | ) |
Returns the device address at the specified index as a primitive long.
byte [] getAddressAt | ( | int | index | ) |
Returns the device address at the specified index as a byte array.
String getAddressAsStringAt | ( | int | index | ) |
Returns the device address at the specified index as a String.