BioRadio SDK - Java Android  1.1
com.glneurotech.devices.common.VirtualDeviceAdapter Class Reference
Inheritance diagram for com.glneurotech.devices.common.VirtualDeviceAdapter:
com.glneurotech.devices.common.IDeviceAdapter

Public Member Functions

final IDaqDevice getBaseDevice ()
 
final void setBaseDevice (IDaqDevice value)
 
final RingBufferTransport getBufferTransportLayer ()
 
final void setBufferTransportLayer (RingBufferTransport value)
 
final GlntStream getInputFile ()
 
final void setInputFile (GlntStream value)
 
 VirtualDeviceAdapter (IDaqDevice device, RingBufferTransport bufferTransport, GlntStream inputStream) throws IOException
 
final void feedNextChunk () throws IOException
 
final void feedNextChunk (int chunkSize) throws IOException
 
final boolean getEndOfFileReached ()
 
final void close () throws IOException
 

Static Public Attributes

static final int DefaultChunkSize = 32767
 

Detailed Description

Provides access to a "virtual" device that accepts input data from a file rather than streaming from a physical device.

Constructor & Destructor Documentation

◆ VirtualDeviceAdapter()

com.glneurotech.devices.common.VirtualDeviceAdapter.VirtualDeviceAdapter ( IDaqDevice  device,
RingBufferTransport  bufferTransport,
GlntStream  inputStream 
) throws IOException

Virtual device adapter.

Parameters
deviceTake an IDaqDevice.
bufferTransportTake a RingBufferTransport.
inputStreamTake a GlntStream.
Exceptions
IOException

Member Function Documentation

◆ close()

final void com.glneurotech.devices.common.VirtualDeviceAdapter.close ( ) throws IOException

Close the file or stop acquisition and disconnect the device.

Exceptions
IOException

◆ feedNextChunk() [1/2]

final void com.glneurotech.devices.common.VirtualDeviceAdapter.feedNextChunk ( ) throws IOException

Streams the next chunk of data to the virtual device.

◆ feedNextChunk() [2/2]

final void com.glneurotech.devices.common.VirtualDeviceAdapter.feedNextChunk ( int  chunkSize) throws IOException

Streams a chunk of data of a specified length to the virtual device.

Parameters
chunkSizeThe number of bytes to stream to the device.

◆ getBaseDevice()

final IDaqDevice com.glneurotech.devices.common.VirtualDeviceAdapter.getBaseDevice ( )

The underlying DaqDevice object receiving input data from the file.

◆ getEndOfFileReached()

final boolean com.glneurotech.devices.common.VirtualDeviceAdapter.getEndOfFileReached ( )

Indicates when the end of the input file has been reached and there is no more data to feed to the device.

Member Data Documentation

◆ DefaultChunkSize

final int com.glneurotech.devices.common.VirtualDeviceAdapter.DefaultChunkSize = 32767
static

The default number of bytes that will be read from the input file and fed to the virtual device input stream. This value is 32,767.


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