com.appliancestudio.jbluez
Class InquiryInfoDevice
java.lang.Object
|
+--com.appliancestudio.jbluez.InquiryInfoDevice
- public class InquiryInfoDevice
- extends java.lang.Object
Represents the information gather about a remote device during an HCI Inquiry.
Many devices may be found for an inquiry. The InquiryInfoDevice
class is the information relating to a single device. All the discovered devices are collectively kept in the InquiryInfo
class.
- Version:
- 1.0
- Author:
- Edward Kay, ed.kay@appliancestudio.com
- See Also:
InquiryInfo
Constructor Summary |
InquiryInfoDevice()
Default constructor. |
InquiryInfoDevice(BTAddress _bdaddr,
short _pscan_rep_mode,
short _pscan_period_mode,
short _pscan_mode,
short _dev_class0,
short _dev_class1,
short _dev_class2,
int _clock_offset)
Constructor which sets all the fields in the class. |
Method Summary |
boolean |
equals(InquiryInfoDevice dev)
Compares two InquiryInfoDevice objects to see if they represent the same Bluetooth device. |
java.lang.String |
toString()
Returns a String representation of all the data held in this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
bdaddr
public BTAddress bdaddr
pscan_rep_mode
public short pscan_rep_mode
pscan_period_mode
public short pscan_period_mode
pscan_mode
public short pscan_mode
dev_class0
public short dev_class0
dev_class1
public short dev_class1
dev_class2
public short dev_class2
clock_offset
public int clock_offset
InquiryInfoDevice
public InquiryInfoDevice()
- Default constructor.
InquiryInfoDevice
public InquiryInfoDevice(BTAddress _bdaddr,
short _pscan_rep_mode,
short _pscan_period_mode,
short _pscan_mode,
short _dev_class0,
short _dev_class1,
short _dev_class2,
int _clock_offset)
- Constructor which sets all the fields in the class. This is provided since when creating a new InquiryInfoDevice object in the native code (namely C), it is much more efficient since we do not have to ask the JVM for pointers to each individual field.
- Parameters:
_bdaddr
- _pscan_rep_mode
- _pscan_period_mode
- _pscan_mode
- _dev_class0
- _dev_class1
- _dev_class2
- _clock_offset
-
toString
public java.lang.String toString()
- Returns a String representation of all the data held in this object.
- Overrides:
toString
in class java.lang.Object
- Returns:
- A String representation of all the information represented by this
object.
equals
public boolean equals(InquiryInfoDevice dev)
- Compares two InquiryInfoDevice objects to see if they represent the same Bluetooth device. This is done by calling the
equals
method on the bdaddr
field, hence seeing if they have the same Bluetooth device address.
- Parameters:
dev
- The InquiryInfoDevice object for comparison.- Returns:
- True if the two InquiryInfoDevice objects represent the same
Bluetooth device, otherwise false.
Copyright © 2002 The Appliance Studio Limited