public class BlaubotJsr82BluetoothAdapter extends java.lang.Object implements IBlaubotAdapter
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.Semaphore |
bluetoothAdapterSempaphore |
static int |
CROWNING_PREPARATION_TIMEOUT |
static int |
NO_PEASANTS_KING_TIMEOUT |
| Constructor and Description |
|---|
BlaubotJsr82BluetoothAdapter(BlaubotUUIDSet uuidSet,
IBlaubotDevice ownDevice) |
| Modifier and Type | Method and Description |
|---|---|
Blaubot |
getBlaubot()
Get the current blaubot instance
|
BlaubotAdapterConfig |
getBlaubotAdapterConfig()
Configuration object for hardware specific adapter settings.
|
IBlaubotConnectionAcceptor |
getConnectionAcceptor()
Get the connection acceptor that is in charge to retrieve incoming connections issued by compatible
IBlaubotConnector implementations.
|
ConnectionStateMachineConfig |
getConnectionStateMachineConfig()
The adapter specific
ConnectionStateMachine configuration. |
IBlaubotConnector |
getConnector()
Get the connector for this adapter.
|
BlaubotUUIDSet |
getUUIDSet() |
void |
setBlaubot(Blaubot blaubotInstance)
Setter for dependency injection of the blaubot instance.
|
public static final int NO_PEASANTS_KING_TIMEOUT
public static final int CROWNING_PREPARATION_TIMEOUT
protected java.util.concurrent.Semaphore bluetoothAdapterSempaphore
public BlaubotJsr82BluetoothAdapter(BlaubotUUIDSet uuidSet, IBlaubotDevice ownDevice) throws javax.bluetooth.BluetoothStateException
uuidSet - the uuid setownDevice - th own devicejavax.bluetooth.BluetoothStateException - if the Jsr82 implementation is not available or cant access the bluetooth hardwarepublic IBlaubotConnector getConnector()
IBlaubotAdaptergetConnector in interface IBlaubotAdapterpublic IBlaubotConnectionAcceptor getConnectionAcceptor()
IBlaubotAdaptergetConnectionAcceptor in interface IBlaubotAdapterpublic BlaubotUUIDSet getUUIDSet()
public void setBlaubot(Blaubot blaubotInstance)
IBlaubotAdaptersetBlaubot in interface IBlaubotAdapterblaubotInstance - the blaubot instancepublic Blaubot getBlaubot()
IBlaubotAdaptergetBlaubot in interface IBlaubotAdapterpublic ConnectionStateMachineConfig getConnectionStateMachineConfig()
IBlaubotAdapterConnectionStateMachine configuration.getConnectionStateMachineConfig in interface IBlaubotAdapterpublic BlaubotAdapterConfig getBlaubotAdapterConfig()
IBlaubotAdaptergetBlaubotAdapterConfig in interface IBlaubotAdapter