NeuroDevice Class
Contents
Android
ru.neurotech.neurodevices
Class NeuroDevice
Related Classes
ru.neurotech.neurodevices.NeuroConnection
ru.neurotech.neurodevices.DeviceFeature
ru.neurotech.neurodevices.state.NeuroDeviceError
ru.neurotech.neurodevices.state.NeuroDeviceState
Classes hierarchy
- java.lang.Object
- ru.neurotech.common.VisualizableDevice
- ru.neurotech.neurodevices.NeuroDevice
Class definition
public class NeuroDevice extends VisualizableDevice
Represents Neurotech™ device on a layer of algorithmic functionality
Provides signal and misc channels and methods for signal processing and viewing</div>
Fields Summary
Modifier and Type | Field and Description |
SubscribersNotifier<NeuroDeviceState> | deviceStateChanged
Subscribe this event to get notifications about device state |
Constructor Summary
Constructor and Description |
NeuroDevice(long nativeObjPtr) |
Methods Summary
Modifier and Type | Method and Description |
void | close()
Close device and free all resources |
void | connect()
Establishes connection with device services |
void | disconnect()
Disconnects from device |
void | finalize() |
java.lang.String | getAddress()
Returns Bluetooth LE MAC address |
int | getBatteryLevel()
Returns battery charge level in percents |
NeuroDeviceError | getError()
Returns device error state information |
DeviceFeature[] | getFeature()
Returns supported device features |
java.lang.String | getName()
Returns name of BLE device |
NeuroDevice | getNeuroDevice()
Returns this object |
SignalSubsystem | getSignalSubsystem()
Returns subsystem for SIGNAL device feature |
NeuroDeviceState | getState()
Returns common device state |
StimulationSubsystem | getStimulationSubsystem()
Returns subsystem for STIMUL device feature |
Field Detail
deviceStateChanged
public final SubscribersNotifier<NeuroDeviceState> deviceStateChanged
Subscribe this event to get notifications about device state
Constructor Detail
NeuroDevice
public NeuroDevice(long nativeObjPtr)
Method Detail
finalize
public void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
close
public void close()
getState
public NeuroDeviceState getState()
Returns NeuroDevice state
- Returns:
- Device state
getError
public NeuroDeviceError getError()
Returns error type if device is in error state
- Returns:
- Error type for device error state
getName
public java.lang.String getName()
Description copied from class: VisualizableDevice
Returns name of BLE device
- Specified by:
VisualizableDevice.getName()
in class VisualizableDevice- Returns:
- BLE device name
getAddress
public java.lang.String getAddress()
Description copied from class: VisualizableDevice
- Specified by:
VisualizableDevice.getAddress()
in class VisualizableDevice- Returns:
- device unique address
getBatteryLevel
public int getBatteryLevel()
Description copied from class: VisualizableDevice
Returns battery state
- Specified by:
VisualizableDevice.getBatteryLevel()
in class VisualizableDevice- Returns:
- battery charge level in percents
getNeuroDevice
public NeuroDevice getNeuroDevice()
Description copied from class: VisualizableDevice
- Specified by:
VisualizableDevice.getNeuroDevice()
in class VisualizableDevice- Returns:
- This NeuroDevice object
<a name="getSignalSubsystem--"> </a>
-
getSignalSubsystem
public <a href="../../../ru/neurotech/neurodevices/features/SignalSubsystem.html" title="class in ru.neurotech.neurodevices.features">SignalSubsystem</a> getSignalSubsystem()
Returns subsystem for SIGNAL device feature- Returns:
- Signal subsystem of device. Null if is not supported
<a name="getStimulationSubsystem--"> </a>
-
getStimulationSubsystem
public <a href="../../../ru/neurotech/neurodevices/features/StimulationSubsystem.html" title="class in ru.neurotech.neurodevices.features">StimulationSubsystem</a> getStimulationSubsystem()
<a name="getFeatures--"> </a>
-
getFeatures
public <a href="../../../ru/neurotech/neurodevices/DeviceFeature.html" title="enum in ru.neurotech.neurodevices">DeviceFeature</a>[] getFeatures()
Returns supported device features- Returns:
- device feature
<a name="connect--"> </a>
-
connect
public void connect()
Establishes connection with device services
<a name="disconnect--"> </a>
-
disconnect
public void disconnect()
Disconnect from device
</li> </ul> </li> </ul>
</div>