BioRadio SDK - Java Android
1.1
|
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< SignalGroup > | getSignalGroups () |
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 |
This class can be used by device managers to create a generic device with DeviceType info only
com.glneurotech.devices.common.GenericDevice.GenericDevice | ( | HardwareLinkHandler | linkHandler, |
String | id, | ||
Optional< Integer > | signalBufferSize | ||
) | throws IOException |
Overloaded constructor.
linkHandler | Take a HardwareLinkHandler. |
id | Take a string. |
signalBufferSize | Take an optional integer value. |
IOException |
com.glneurotech.devices.common.GenericDevice.GenericDevice | ( | HardwareLinkHandler | linkHandler, |
String | id, | ||
Optional< Integer > | signalBufferSize, | ||
boolean | leaveTransportOpen | ||
) | throws IOException |
Overloaded constructor.
linkHandler | Take a HardwareLinkHandler. |
id | Take a string. |
signalBufferSize | Take an optional integer value. |
leaveTransportOpen | Take a boolean value. |
IOException |
void com.glneurotech.devices.common.GenericDevice.close | ( | ) | throws IOException |
Close the connection.
IOException |
DeviceTypeCode com.glneurotech.devices.common.GenericDevice.getDeviceType | ( | ) |
Gets device type.
final String com.glneurotech.devices.common.GenericDevice.getFriendlyName | ( | ) |
Gets friendly name method.
void com.glneurotech.devices.common.GenericDevice.initializeSignalGroups | ( | Optional< Integer > | signalBufferSize | ) |
Initialize signal groups.
signalBufferSize | Take an optional integer. |
void com.glneurotech.devices.common.GenericDevice.processPacketForSignalData | ( | DeviceDataPacket | packet | ) |
Process packet for signal data.
packet | Take a DeviceDataPacket as parameter. |
void com.glneurotech.devices.common.GenericDevice.processPacketForStatusData | ( | DeviceDataPacket | packet | ) |
Process packet for status data.
packet | Take a DeviceDataPacket as parameter. |
void com.glneurotech.devices.common.GenericDevice.startAcquisition | ( | ) |
Start acquisition.
Implements com.glneurotech.devices.common.IDaqDevice.
void com.glneurotech.devices.common.GenericDevice.stopAcquisition | ( | ) |
Stop acquisition.
Implements com.glneurotech.devices.common.IDaqDevice.
boolean com.glneurotech.devices.common.GenericDevice.waitForStatusInitialization | ( | ) |
Waits for status initialization - return true.