1-Wire API for .NET Version 4.00
Public Member Functions | Static Public Attributes | Protected Attributes | Package Functions

DeviceMonitorEvent Class Reference

Represents a group of 1-Wire addresses that have either arrived to or departed from the 1-Wire network. More...

Inherits java::util::EventObject.

List of all members.

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.

Detailed Description

Represents a group of 1-Wire addresses that have either arrived to or departed from the 1-Wire network.

Author:
SH
Version:
1.00

Constructor & Destructor Documentation

DeviceMonitorEvent ( int  eventType,
AbstractDeviceMonitor  source,
DSPortAdapter  adapter,
Vector  addresses 
) [package]

Creates a new DeviceMonitor event with the specified characteristics.

Parameters:
eventTypeThe type of event (ARRIVAL | DEPARTURE)
sourceThe monitor which generated the event
adapterThe DSPortAdapter the monitor was using
addressesVector of addresses for devices

Member Function Documentation

DSPortAdapter getAdapter ( )

Returns DSPortAdapter the monitor was using when the event was generated.

Returns:
DSPortAdapter the monitor was using
long getAddressAsLongAt ( int  index)

Returns the device address at the specified index as a primitive long.

Returns:
the device address at the specified index
String getAddressAsStringAt ( int  index)

Returns the device address at the specified index as a String.

Returns:
the device address at the specified index
byte [] getAddressAt ( int  index)

Returns the device address at the specified index as a byte array.

Returns:
the device address at the specified index
OneWireContainer getContainerAt ( int  index)

Returns the OneWireContainer for the address at the specified index.

Returns:
the OneWireContainer for the address at the specified index
int getDeviceCount ( )

Returns the number of devices associated with this event.

Returns:
the number of devices associated with this event
int getEventType ( )

Returns the event type (ARRIVAL | DEPARTURE)

Returns:
the event type (ARRIVAL | DEPARTURE)
AbstractDeviceMonitor getMonitor ( )

Returns the monitor which generated this event.

Returns:
the monitor which generated this event
OWPath getPathForContainerAt ( int  index)

Returns the Path object for the device at the specified index.

Returns:
the Path object for the device at the specified index

The documentation for this class was generated from the following file: