BioRadio SDK - Java Android  1.1
com.glneurotech.devices.bioradio.BioRadioDeviceManager Class Reference
Inheritance diagram for com.glneurotech.devices.bioradio.BioRadioDeviceManager:
com.glneurotech.devices.common.DeviceManager< BioRadioDevice >

Public Member Functions

 BioRadioDeviceManager (AndroidTransportProvider transportProvider)
 
String getBlueToothDeviceNamePrefix ()
 
BioRadioDevice createSpecificDevice (DeviceTypeCode deviceType, String deviceId, HardwareLinkHandler handler)
 
BioRadioDevice getBluetoothDevice (long macID)
 
BioRadioDevice getBluetoothDevice (String macID)
 
final BluetoothDeviceInfo [] discoverBluetoothDevices (Context appContext)
 
final com.glneurotech.devices.bioradio.VirtualDeviceAdapter createVirtualDevice (String fileName)
 
final void dispose ()
 
- Public Member Functions inherited from com.glneurotech.devices.common.DeviceManager< BioRadioDevice >
 DeviceManager (ITransportProvider transportProvider)
 
abstract String getBlueToothDeviceNamePrefix ()
 
getBluetoothDevice (long macID)
 
getBluetoothDevice (String deviceId)
 
getDeviceByComPort (String comPort)
 
getDeviceByTcpAddress (String hostname, int port)
 
final VirtualDeviceAdapter createVirtualDevice (GlntStream inputStream)
 
abstract T createSpecificDevice (DeviceTypeCode deviceType, String deviceId, HardwareLinkHandler handler)
 

Detailed Description

This class is used to help with the searching and creation of BioRadioDevice objects

Constructor & Destructor Documentation

◆ BioRadioDeviceManager()

com.glneurotech.devices.bioradio.BioRadioDeviceManager.BioRadioDeviceManager ( AndroidTransportProvider  transportProvider)

Constructor which takes an Android transport provider

Parameters
transportProviderTake an AndroidTransportProvider as parameter.

Member Function Documentation

◆ createSpecificDevice()

BioRadioDevice com.glneurotech.devices.bioradio.BioRadioDeviceManager.createSpecificDevice ( DeviceTypeCode  deviceType,
String  deviceId,
HardwareLinkHandler  handler 
)

Create specific device.

Parameters
deviceTypeTake a DeviceTypeCode for the device type.
deviceIdTake a string for the deviceId parameter.
handlerTake a HardwareLinkHandler for the handler parameter.
Returns
BioRadioDevice

◆ createVirtualDevice()

final com.glneurotech.devices.bioradio.VirtualDeviceAdapter com.glneurotech.devices.bioradio.BioRadioDeviceManager.createVirtualDevice ( String  fileName)

Creates a virtual device wrapper to allow reading data from a file recorded by the BioRadio to its internal memory.

The VirtualDeviceAdapter is a lightweight wrapper around the actual device instance, which allows a user to "feed" data in from the file and make it available on the device Signal instances. Typically, one will create an instance of VirtualDeviceAdapter and use it to loop through the data contained in the file until the end of the file is reached.

Parameters
fileNameThe full path to the file to be read
Returns
VirtualDeviceAdapter An adapter that can be used to parse the file and extract data.

◆ discoverBluetoothDevices()

final BluetoothDeviceInfo [] com.glneurotech.devices.bioradio.BioRadioDeviceManager.discoverBluetoothDevices ( Context  appContext)

Performs a search for devices in the vicinity.

Returns
An array of BluetoothDeviceInfo objects that contain information about the discovered devices.

◆ dispose()

final void com.glneurotech.devices.bioradio.BioRadioDeviceManager.dispose ( )

Dispose

◆ getBluetoothDevice() [1/2]

BioRadioDevice com.glneurotech.devices.bioradio.BioRadioDeviceManager.getBluetoothDevice ( long  macID)

Attempt to connect to a BioRadio device using BlueTooth

Parameters
macIDThe mac ID of the device
Returns
A BioRadioDevice object that represents the connected device.

◆ getBluetoothDevice() [2/2]

BioRadioDevice com.glneurotech.devices.bioradio.BioRadioDeviceManager.getBluetoothDevice ( String  macID)

Attempt to connect to a BioRadio device using BlueTooth

Parameters
macIDThe mac ID of the device
Returns
A BioRadioDevice object that represents the connected device.

◆ getBlueToothDeviceNamePrefix()

String com.glneurotech.devices.bioradio.BioRadioDeviceManager.getBlueToothDeviceNamePrefix ( )

Get bluetooth device name prefix

Returns
String

The documentation for this class was generated from the following file: