ist.palcom.mal.bt
Class BluetoothDiscoveryThread

java.lang.Object
  extended by ist.palcom.palcomthreads.PalcomThread
      extended by ist.palcom.palcomthreads.PalcomPriorityThread
          extended by ist.palcom.mal.bt.BluetoothDiscoveryThread

public class BluetoothDiscoveryThread
extends PalcomPriorityThread

This class implements ist.palcom.mal.BluetoothCommunicationThread BluetoothCommunicationThread is a CommunicationThread for Bluetooth communication. It sends an receives on one Bluetooth socket and is thus the rfcomm connection to a specific host

See Also:
CommunicationThread

Constructor Summary
protected BluetoothDiscoveryThread(PalcomScheduler scheduler, BluetoothConnectionManagerThread connectionManager, AbstractMediaManager.DistributorThread distributor)
           
 
Method Summary
 void run()
          This method is overridden by subclasses.
protected  void setUp()
          Perform socket set-up if needed.
protected  void tearDown()
          Close socket if needed.
 
Methods inherited from class ist.palcom.palcomthreads.PalcomPriorityThread
getPriority, setPriority
 
Methods inherited from class ist.palcom.palcomthreads.PalcomThread
askEvent, disableIOEvents, disablePeriodicEvents, enableIOEvent, enablePeriodicEvents, getScheduler, putEvent, terminate, waitEvent, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BluetoothDiscoveryThread

protected BluetoothDiscoveryThread(PalcomScheduler scheduler,
                                   BluetoothConnectionManagerThread connectionManager,
                                   AbstractMediaManager.DistributorThread distributor)
                            throws javax.bluetooth.BluetoothStateException
Throws:
javax.bluetooth.BluetoothStateException
Method Detail

setUp

protected void setUp()
              throws javax.bluetooth.BluetoothStateException
Perform socket set-up if needed.

Throws:
javax.bluetooth.BluetoothStateException

tearDown

protected void tearDown()
Close socket if needed.


run

public void run()
Description copied from class: PalcomThread
This method is overridden by subclasses.

Overrides:
run in class PalcomThread