ist.palcom.base.networking
Class BluetoothDiscovery

java.lang.Object
  extended by ist.palcom.base.Channel
      extended by ist.palcom.base.networking.BluetoothDiscovery

public class BluetoothDiscovery
extends Channel


Field Summary
static javax.bluetooth.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()
           
 java.lang.String getServiceAddress()
           
 void searchDevices()
           
 void searchServices()
           
 long timeToNextDiscovery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PALCOM_SERVICE_ID

public static javax.bluetooth.UUID PALCOM_SERVICE_ID
Constructor Detail

BluetoothDiscovery

public BluetoothDiscovery()
                   throws javax.bluetooth.BluetoothStateException
Throws:
javax.bluetooth.BluetoothStateException
Method Detail

dataAvailable

public boolean dataAvailable()
Description copied from class: 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 class Channel

getNumberOfServices

public int getNumberOfServices()

getNumberOfDevices

public int getNumberOfDevices()

getServiceAddress

public java.lang.String getServiceAddress()

timeToNextDiscovery

public long timeToNextDiscovery()

searchDevices

public void searchDevices()
                   throws javax.bluetooth.BluetoothStateException
Throws:
javax.bluetooth.BluetoothStateException

searchServices

public void searchServices()
                    throws javax.bluetooth.BluetoothStateException
Throws:
javax.bluetooth.BluetoothStateException