BioRadio SDK - Java Android  1.1
com.glneurotech.devices.common.DeviceManager< T extends DaqDevice > Class Template Referenceabstract
Inheritance diagram for com.glneurotech.devices.common.DeviceManager< T extends DaqDevice >:
com.glneurotech.devices.common.IDeviceManager< T >

Public Member Functions

 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)
 
- Public Member Functions inherited from com.glneurotech.devices.common.IDeviceManager< T >
IDeviceAdapter createVirtualDevice (GlntStream inputStream)
 
getBluetoothDevice (long macID)
 
getBluetoothDevice (String deviceId)
 
getDeviceByComPort (String comPort)
 
getDeviceByTcpAddress (String hostname, int port)
 

Detailed Description

The abstract base class responsible for detecting and instantiating Great Lakes NeuroTechnologies data acquisition devices.

This is an abstract class and is not intended to be used directly in user programs.

Template Parameters
TThe specific type of Great Lakes NeuroTechnologies device for which this DeviceManager is responsible.

Constructor & Destructor Documentation

◆ DeviceManager()

Constructor for device manager class.

Parameters
transportProvider

Member Function Documentation

◆ createVirtualDevice()

final VirtualDeviceAdapter com.glneurotech.devices.common.DeviceManager< T extends DaqDevice >.createVirtualDevice ( GlntStream  inputStream)

Creates a virtual device with a file as a backing store.

Parameters
inputStreamThe stream containing the input data.
Returns
An VirtualDeviceAdapter object. CreateVirtualDevice can be used to create a VirtualDeviceAdapter that can be used to read data from a file as opposed to a real connected device. No physical device is required to use this method. This is useful for debugging or loading raw data from a file downloaded from the

◆ getBluetoothDevice() [1/2]

T com.glneurotech.devices.common.DeviceManager< T extends DaqDevice >.getBluetoothDevice ( long  macID)

Retrieves a reference to a T device based on a bluetooth connection. Use of this method requires a bluetooth radio installed on the host PC.

Parameters
macIDThe address of the bluetooth device
Returns

◆ getBluetoothDevice() [2/2]

T com.glneurotech.devices.common.DeviceManager< T extends DaqDevice >.getBluetoothDevice ( String  deviceId)

Retrieves a reference to a T device based on a bluetooth connection. Use of this method requires a bluetooth radio installed on the host PC.

Parameters
deviceIdThe address of the bluetooth device
Returns

◆ getBlueToothDeviceNamePrefix()

abstract String com.glneurotech.devices.common.DeviceManager< T extends DaqDevice >.getBlueToothDeviceNamePrefix ( )
abstract

Gets bluetooth device name prefix - abstract method.

Returns

◆ getDeviceByComPort()

T com.glneurotech.devices.common.DeviceManager< T extends DaqDevice >.getDeviceByComPort ( String  comPort)

Returns a device based on a predetermined serial COM port name.

Parameters
comPortTake a string for comPort parameter.
Returns
A device object of type T

◆ getDeviceByTcpAddress()

T com.glneurotech.devices.common.DeviceManager< T extends DaqDevice >.getDeviceByTcpAddress ( String  hostname,
int  port 
)

Returns the device connected at the specified hostname and port

Parameters
hostnameThe address of the device.
portThe port on which the device is listening.
Returns
A reference to the device. This method is currently used only for internal testing and should not be used in an application.

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