BioRadio SDK - Java Android  1.1
com.glneurotech.devices.common.GenericDevice Class Reference
Inheritance diagram for com.glneurotech.devices.common.GenericDevice:
com.glneurotech.devices.common.DaqDevice com.glneurotech.devices.common.IDaqDevice

Public Member Functions

 GenericDevice (HardwareLinkHandler linkHandler, String id, Optional< Integer > signalBufferSize) throws IOException
 
 GenericDevice (HardwareLinkHandler linkHandler, String id, Optional< Integer > signalBufferSize, boolean leaveTransportOpen) throws IOException
 
final String getFriendlyName ()
 
void processPacketForStatusData (DeviceDataPacket packet)
 
void processPacketForSignalData (DeviceDataPacket packet)
 
boolean waitForStatusInitialization ()
 
void startAcquisition ()
 
void stopAcquisition ()
 
void initializeSignalGroups (Optional< Integer > signalBufferSize)
 
DeviceTypeCode getDeviceType ()
 
void close () throws IOException
 
- Public Member Functions inherited from com.glneurotech.devices.common.DaqDevice
boolean getIsConnected ()
 
final boolean getIsDeviceLocked ()
 
final void setIsDeviceLocked (boolean value)
 
final boolean getIsAcquiring ()
 
final boolean getIsRecording ()
 
final void setIsRecording (boolean value)
 
boolean connect ()
 
abstract void processPacketForStatusData (DeviceDataPacket packet)
 
abstract void processPacketForSignalData (DeviceDataPacket packet)
 
abstract boolean waitForStatusInitialization ()
 
void disconnect ()
 
final void onSignalBufferOverflow (SignalDataEventArgs args)
 
final void onGeneralOperationError (EventArgs args)
 
final void onCommuncationError (CommunicationErrorArgs args)
 
abstract void startAcquisition ()
 
abstract void stopAcquisition ()
 
abstract void initializeSignalGroups (Optional< Integer > signalBufferSize)
 
void unlockDevice () throws InterruptedException, TimeoutException
 
void lockDevice () throws InterruptedException, TimeoutException
 
void setDeviceTime () throws InterruptedException, TimeoutException
 
void setDeviceTime (LocalDateTime time) throws InterruptedException, TimeoutException
 
final String getHardwareVersion ()
 
final void setHardwareVersion (String value)
 
final String getFirmwareVersion ()
 
final void setFirmwareVersion (String value)
 
final String getName ()
 
final void setName (String value)
 
abstract DeviceTypeCode getDeviceType ()
 
final ArrayList< SignalGroupgetSignalGroups ()
 
final HardwareLinkHandler getConnection ()
 
final void setConnection (HardwareLinkHandler value)
 
 DaqDevice (HardwareLinkHandler hardwareLink, String name, Optional< Integer > signalBufferSize) throws IOException
 
final void startRecording (GlntStream outputStream)
 
final void stopRecording ()
 
final void getDeviceId () throws InterruptedException, TimeoutException
 
final DeviceTypeCode getInternalDeviceType () throws InterruptedException, TimeoutException
 
void close () throws IOException
 

Additional Inherited Members

- Public Attributes inherited from com.glneurotech.devices.common.DaqDevice
Event< EventHandler< SignalDataEventArgs > > SignalBufferOverflowed = new Event<EventHandler<SignalDataEventArgs>>()
 
Event< EventHandler< CommunicationErrorArgs > > CommunicationError = new Event<EventHandler<CommunicationErrorArgs>>()
 
Event< EventHandler< EventArgs > > GeneralOperationError = new Event<EventHandler<EventArgs>>()
 
- Static Public Attributes inherited from com.glneurotech.devices.common.DaqDevice
static final int _NUM_OF_RETRY = 10
 
static final int _TIMEOUT_MS = 1000
 
- Protected Member Functions inherited from com.glneurotech.devices.common.DaqDevice
void setIsConnected (boolean value)
 
final void setIsAcquiring (boolean value)
 
void getInternalFirmwareVersion () throws InterruptedException, TimeoutException
 

Detailed Description

This class can be used by device managers to create a generic device with DeviceType info only

Constructor & Destructor Documentation

◆ GenericDevice() [1/2]

com.glneurotech.devices.common.GenericDevice.GenericDevice ( HardwareLinkHandler  linkHandler,
String  id,
Optional< Integer >  signalBufferSize 
) throws IOException

Overloaded constructor.

Parameters
linkHandlerTake a HardwareLinkHandler.
idTake a string.
signalBufferSizeTake an optional integer value.
Exceptions
IOException

◆ GenericDevice() [2/2]

com.glneurotech.devices.common.GenericDevice.GenericDevice ( HardwareLinkHandler  linkHandler,
String  id,
Optional< Integer >  signalBufferSize,
boolean  leaveTransportOpen 
) throws IOException

Overloaded constructor.

Parameters
linkHandlerTake a HardwareLinkHandler.
idTake a string.
signalBufferSizeTake an optional integer value.
leaveTransportOpenTake a boolean value.
Exceptions
IOException

Member Function Documentation

◆ close()

void com.glneurotech.devices.common.GenericDevice.close ( ) throws IOException

Close the connection.

Exceptions
IOException

◆ getDeviceType()

DeviceTypeCode com.glneurotech.devices.common.GenericDevice.getDeviceType ( )

Gets device type.

Returns

◆ getFriendlyName()

final String com.glneurotech.devices.common.GenericDevice.getFriendlyName ( )

Gets friendly name method.

Returns

◆ initializeSignalGroups()

void com.glneurotech.devices.common.GenericDevice.initializeSignalGroups ( Optional< Integer >  signalBufferSize)

Initialize signal groups.

Parameters
signalBufferSizeTake an optional integer.

◆ processPacketForSignalData()

void com.glneurotech.devices.common.GenericDevice.processPacketForSignalData ( DeviceDataPacket  packet)

Process packet for signal data.

Parameters
packetTake a DeviceDataPacket as parameter.

◆ processPacketForStatusData()

void com.glneurotech.devices.common.GenericDevice.processPacketForStatusData ( DeviceDataPacket  packet)

Process packet for status data.

Parameters
packetTake a DeviceDataPacket as parameter.

◆ startAcquisition()

void com.glneurotech.devices.common.GenericDevice.startAcquisition ( )

Start acquisition.

Implements com.glneurotech.devices.common.IDaqDevice.

◆ stopAcquisition()

void com.glneurotech.devices.common.GenericDevice.stopAcquisition ( )

Stop acquisition.

Implements com.glneurotech.devices.common.IDaqDevice.

◆ waitForStatusInitialization()

boolean com.glneurotech.devices.common.GenericDevice.waitForStatusInitialization ( )

Waits for status initialization - return true.

Returns

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