|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.dalsemi.onewire.utils.OneWireMonitorEvent
This class encapsulates a 1-Wire network event such as
arrival or departure. This class is created by an instance of OneWireMonitor
,
and passed into a class implementing OneWireMonitorEventListener
using
the methods oneWireArrival()
and oneWireDeparture()
OneWireMonitor
,
OneWireMonitorEventListener
, Serialized FormConstructor Summary | |
OneWireMonitorEvent(Object source,
OneWireContainer owc)
Create a new OneWireMonitorEvent that will return the specified contianer. NOTE: This constructor is meant to be used for debug purposes, specifically for the iB-IDE to report events. |
|
OneWireMonitorEvent(OneWireMonitor owm,
DSPortAdapter adapter,
long address)
Create a new OneWireMonitorEvent with specified adapter, and address |
|
OneWireMonitorEvent(OneWireMonitor owm,
OneWireContainer owc)
Create a new OneWireMonitorEvent that will return the specified contianer. NOTE: This constructor is meant to be used for debug purposes, specifically for the iB-IDE to report events. |
Method Summary | |
DSPortAdapter |
getAdapter()
Retrieves the adapter on which the event occurred. |
byte[] |
getAddress()
Retrieves the address of the 1-Wire device causing the event. |
long |
getAddressAsLong()
Retrieves the address of the 1-Wire device causing the event. |
String |
getAddressAsString()
Retrieves the address of the 1-Wire device causing the event. |
OneWireContainer |
getDeviceContainer()
Retrieves the container for the device causing the event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OneWireMonitorEvent(OneWireMonitor owm, DSPortAdapter adapter, long address)
owm
- reference to OneWireMonitor
generating the eventadapter
- 1-Wire adapter where device is locatedaddress
- 1-Wire network address of devicepublic OneWireMonitorEvent(OneWireMonitor owm, OneWireContainer owc)
OneWireMonitorEvent(OneWireMonitor,DSPortAdapter,long)
constructor.owm
- reference to OneWireMonitor
generating the eventowc
- container that will be returned by this event objectOneWireMonitorEvent(OneWireMonitor,DSPortAdapter,long)
public OneWireMonitorEvent(Object source, OneWireContainer owc)
OneWireMonitorEvent(OneWireMonitor,DSPortAdapter,long)
constructor.owm
- reference to the source generating the eventowc
- container that will be returned by this event objectOneWireMonitorEvent(OneWireMonitor,DSPortAdapter,long)
Method Detail |
public OneWireContainer getDeviceContainer()
OneWireContainer
encapsulating the state of the
1-Wire device generating the eventpublic DSPortAdapter getAdapter()
DSPortAdapter
of the adapter on which the 1-Wire event was generatedpublic byte[] getAddress()
Address
public long getAddressAsLong()
Address
public String getAddressAsString()
Address
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |