ist.palcom.base
Class BluetoothDiscovery

java.lang.Object
  extended by ist.palcom.base.BluetoothDiscovery
All Implemented Interfaces:
Channel

public class BluetoothDiscovery
extends Object
implements Channel


Field Summary
static UUID PALCOM_SERVICE_ID
           
 
Constructor Summary
BluetoothDiscovery()
           
 
Method Summary
 boolean dataAvailable()
          This method should only be called by the System class, not from other classes.
 int getNumberOfDevices()
           
 int getNumberOfServices()
           
 String getServiceAddress()
           
 void searchDevices()
           
 void searchServices()
           
 long timeToNextDiscovery()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, println, toString
 

Field Detail

PALCOM_SERVICE_ID

public static UUID PALCOM_SERVICE_ID
Constructor Detail

BluetoothDiscovery

public BluetoothDiscovery()
Method Detail

dataAvailable

public boolean dataAvailable()
Description copied from interface: Channel
This method should only be called by the System class, not from other classes. It is used for implementing select on the JVM, and not used on the PalVM.

After a call to System's select or selectNow with this Channel (on the JVM), this method returns true if data is available, false otherwise. If no call to select or selectNow has been made, the result is undefined.

Specified by:
dataAvailable in interface Channel

getNumberOfServices

public int getNumberOfServices()

getNumberOfDevices

public int getNumberOfDevices()

getServiceAddress

public String getServiceAddress()

timeToNextDiscovery

public long timeToNextDiscovery()

searchDevices

public void searchDevices()

searchServices

public void searchServices()