public class BlaubotWifiP2PAdapter extends java.lang.Object implements IBlaubotAdapter
| Constructor and Description |
|---|
BlaubotWifiP2PAdapter(BlaubotUUIDSet uuidSet,
WifiP2pManager manager,
WifiManager wifiManager,
Channel acceptorChannel) |
| Modifier and Type | Method and Description |
|---|---|
protected Channel |
getAcceptorWifiChannel() |
Blaubot |
getBlaubot()
Get the current blaubot instance
|
BlaubotAdapterConfig |
getBlaubotAdapterConfig()
Configuration object for hardware specific adapter settings.
|
BlaubotWifiP2PBroadcastReceiver |
getBlaubotWifiP2PBroadcastReceiver() |
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.
|
protected BlaubotUUIDSet |
getUuidSet() |
protected WifiP2pManager |
getWifiP2pManager() |
void |
setBlaubot(Blaubot blaubotInstance)
Setter for dependency injection of the blaubot instance.
|
public BlaubotWifiP2PAdapter(BlaubotUUIDSet uuidSet, WifiP2pManager manager, WifiManager wifiManager, Channel acceptorChannel)
public IBlaubotConnector getConnector()
IBlaubotAdaptergetConnector in interface IBlaubotAdapterpublic IBlaubotConnectionAcceptor getConnectionAcceptor()
IBlaubotAdaptergetConnectionAcceptor in interface IBlaubotAdapterprotected BlaubotUUIDSet getUuidSet()
protected WifiP2pManager getWifiP2pManager()
protected Channel getAcceptorWifiChannel()
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 IBlaubotAdapterpublic BlaubotWifiP2PBroadcastReceiver getBlaubotWifiP2PBroadcastReceiver()