1-Wire API for .NET Version 4.00
|
Represents a group of 1-Wire addresses that have either arrived to or departed from the 1-Wire network. More...
Inherits java::util::EventObject.
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. |
Represents a group of 1-Wire addresses that have either arrived to or departed from the 1-Wire network.
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 |
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.
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.