DeviceMonitorEvent Class Reference

Inherits java::util::EventObject.

List of all members.


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

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.

Constructor & Destructor Documentation

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

Creates a new DeviceMonitor event with the specified characteristics.

Parameters:
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


Member Function Documentation

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

DSPortAdapter getAdapter (  ) 

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

Returns:
DSPortAdapter the monitor was using

int getDeviceCount (  ) 

Returns the number of devices associated with this event.

Returns:
the number of devices associated with this event

OneWireContainer getContainerAt ( int  index  ) 

Returns the OneWireContainer for the address at the specified 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.

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.

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

String getAddressAsStringAt ( int  index  ) 

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

Returns:
the device address at the specified index


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

Generated on Thu Aug 28 15:42:31 2008 for 1-Wire API for .NET by  doxygen 1.5.6