Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Application toolkit providing BT device registration of processed and awaited devices. More...
Classes | |
class | DeviceID |
Specifies unique device identities, using BDAddressAndType as key. More... | |
class | DeviceQuery |
Specifies devices queries to act upon. More... | |
interface | DeviceQueryMatch |
Interface for user defined DeviceQuery matching criteria and algorithm. More... | |
Static Public Member Functions | |
static void | addToProcessedDevices (final BDAddressAndType a, final String n) |
static void | addToWaitForDevices (final String addrOrNameSub) |
static boolean | areAllDevicesProcessed () |
Returns true if all awaited devices have been processed . More... | |
static boolean | areAllDevicesProcessed (final DeviceQueryMatch m) |
Returns true if all awaited devices have been processed . More... | |
static void | clearProcessedDevices () |
Clears internal list. More... | |
static void | clearWaitForDevices () |
Clears internal list. More... | |
static int | getProcessedDeviceCount () |
static List< DeviceID > | getProcessedDevices () |
Returns a copy of the current collection of processed DeviceID . More... | |
static String | getProcessedDevicesString () |
static List< DeviceQuery > | getWaitForDevices () |
Returns the reference of the current list of DeviceQuery , not a copy. More... | |
static int | getWaitForDevicesCount () |
static String | getWaitForDevicesString () |
static boolean | isDeviceProcessed (final BDAddressAndType a) |
static boolean | isWaitingForAnyDevice () |
static boolean | isWaitingForDevice (final EUI48 address, final String name) |
Returns true if the given address and/or name matches any of the awaited devices . More... | |
static boolean | isWaitingForDevice (final EUI48 address, final String name, final DeviceQueryMatch m) |
Returns true if the given address and/or name matches any of the awaited devices . More... | |
Application toolkit providing BT device registration of processed and awaited devices.
The latter on a pattern matching basis, i.e. EUI48Sub or name-sub.
Definition at line 43 of file BTDeviceRegistry.java.
|
static |
|
static |
|
static |
|
static |
|
static |
Returns the reference of the current list of DeviceQuery
, not a copy.
Definition at line 157 of file BTDeviceRegistry.java.
|
static |
Clears internal list.
Definition at line 163 of file BTDeviceRegistry.java.
|
static |
Definition at line 167 of file BTDeviceRegistry.java.
|
static |
Definition at line 170 of file BTDeviceRegistry.java.
|
static |
|
static |
|
static |
Returns a copy of the current collection of processed DeviceID
.
Definition at line 182 of file BTDeviceRegistry.java.
|
static |
Clears internal list.
Definition at line 188 of file BTDeviceRegistry.java.
|
static |
Returns true
if the given address
and/or name
matches
any of the awaited devices
.
Matching criteria and algorithm is defined by the given DeviceQueryMatch
.
Definition at line 221 of file BTDeviceRegistry.java.
|
static |
Returns true
if the given address
and/or name
matches
any of the awaited devices
.
Matching criteria is either the awaited device's DeviceQuery#addressSub
or DeviceQuery#nameSub
, whichever is set.
Matching algorithm is a simple contains
pattern match, i.e. the given address
or name
contains the corresponding DeviceQuery
element.
Definition at line 245 of file BTDeviceRegistry.java.
|
static |
Returns true
if all awaited devices
have been processed
.
Matching criteria and algorithm is defined by the given DeviceQueryMatch
.
Definition at line 260 of file BTDeviceRegistry.java.
|
static |
Returns true
if all awaited devices
have been processed
.
Matching criteria is either the awaited device's DeviceQuery#addressSub
or DeviceQuery#nameSub
, whichever is set.
Matching algorithm is a simple contains
pattern match, i.e. the processed DeviceID
contains one element of DeviceQuery
.
Definition at line 289 of file BTDeviceRegistry.java.