Difference between revisions of "NeuroDevice Class"
NateColeman (talk | contribs) (→Android) |
NateColeman (talk | contribs) (→Method Detail) |
||
Line 202: | Line 202: | ||
<span>'''Description copied from class:''' [[VisualizableDevice Class|VisualizableDevice]]</span> | <span>'''Description copied from class:''' [[VisualizableDevice Class|VisualizableDevice]]</span> | ||
− | + | Returns this object. This method is for comapatability with VisualizableDevice class interface, inherited to use NeuroDevice in scopes where VisualizableDevice is needed | |
<dl> | <dl> | ||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | ||
Line 210: | Line 210: | ||
</dl> | </dl> | ||
− | + | ||
− | < | + | <h3>getSignalSubsystem</h3> |
− | </ | + | <code><span style="color:#0066FF;">'''public'''</span> [[SignalSubsystem Class|SignalSubsystem]] getSignalSubsystem()</code> |
− | < | + | |
− | < | + | Returns subsystem for SIGNAL device feature |
− | + | ||
− | |||
− | |||
<dl> | <dl> | ||
<dt><span class="returnLabel">Returns:</span></dt> | <dt><span class="returnLabel">Returns:</span></dt> | ||
<dd>Signal subsystem of device. Null if is not supported</dd> | <dd>Signal subsystem of device. Null if is not supported</dd> | ||
</dl> | </dl> | ||
− | </ | + | |
− | < | + | <h3>getStimulationSubsystem</h3> |
− | < | + | <code><span style="color:#0066FF;">'''public'''</span> [[StimulationSubsystem Class|StimulationSubsystem]] getStimulationSubsystem()</code> |
− | < | + | |
− | </ | + | Returns subsystem for STIMUL device feature |
− | < | + | |
− | < | + | <dl> |
− | < | + | <dt><span class="returnLabel">Returns:</span></dt> |
− | < | + | <dd>Stimulation subsystem of device. Null if is not supported</dd> |
− | </ | + | </dl> |
− | + | ||
<a name="getFeatures--"> | <a name="getFeatures--"> | ||
<!-- --> | <!-- --> | ||
Line 247: | Line 245: | ||
</li> | </li> | ||
</ul> | </ul> | ||
− | + | ||
− | < | + | |
− | </ | + | <h3>connect</h3> |
− | < | + | <code><span style="color:#0066FF;">'''public void'''</span> connect()</code> |
− | < | + | |
− | + | Establishes connection with device services | |
− | + | ||
− | + | <h3>disconnect</h3> | |
− | + | <code><span style="color:#0066FF;">'''public void'''</span> disconnect()</code> | |
− | < | + | |
− | + | Disconnects from device | |
− | |||
− | </ | ||
− | < | ||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 06:20, 9 August 2017
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 Returns this object. This method is for comapatability with VisualizableDevice class interface, inherited to use NeuroDevice in scopes where VisualizableDevice is needed
- Specified by:
VisualizableDevice.getNeuroDevice()
in class VisualizableDevice- Returns:
- This NeuroDevice object
getSignalSubsystem
public SignalSubsystem getSignalSubsystem()
Returns subsystem for SIGNAL device feature
- Returns:
- Signal subsystem of device. Null if is not supported
getStimulationSubsystem
public StimulationSubsystem getStimulationSubsystem()
Returns subsystem for STIMUL device feature
- Returns:
- Stimulation subsystem of device. Null if is not supported
<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
connect
public void connect()
Establishes connection with device services
disconnect
public void disconnect()