Difference between revisions of "NeuroDevice Class"

From Neurotech Software Development Kit
Jump to: navigation, search
(Android)
(Method Detail)
Line 202: Line 202:
  
 
<span>'''Description copied from class:'''&nbsp;[[VisualizableDevice Class|VisualizableDevice]]</span>
 
<span>'''Description copied from class:'''&nbsp;[[VisualizableDevice Class|VisualizableDevice]]</span>
<div class="block">Returns this object. This method is for comapatability with VisualizableDevice class interface, inherited to use NeuroDevice in scopes where VisualizableDevice is needed</div>
+
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>
  
<a name="getSignalSubsystem--">
+
 
<!--  -->
+
<h3>getSignalSubsystem</h3>
</a>
+
<code><span style="color:#0066FF;">'''public'''</span> [[SignalSubsystem Class|SignalSubsystem]]&nbsp;getSignalSubsystem()</code>
<ul class="blockList">
+
 
<li class="blockList">
+
Returns subsystem for SIGNAL device feature
<h4>getSignalSubsystem</h4>
+
 
<pre>public&nbsp;<a href="../../../ru/neurotech/neurodevices/features/SignalSubsystem.html" title="class in ru.neurotech.neurodevices.features">SignalSubsystem</a>&nbsp;getSignalSubsystem()</pre>
 
<div class="block">Returns subsystem for SIGNAL device feature</div>
 
 
<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>
</li>
+
 
</ul>
+
<h3>getStimulationSubsystem</h3>
<a name="getStimulationSubsystem--">
+
<code><span style="color:#0066FF;">'''public'''</span> [[StimulationSubsystem Class|StimulationSubsystem]]&nbsp;getStimulationSubsystem()</code>
<!--  -->
+
 
</a>
+
Returns subsystem for STIMUL device feature
<ul class="blockList">
+
 
<li class="blockList">
+
<dl>
<h4>getStimulationSubsystem</h4>
+
<dt><span class="returnLabel">Returns:</span></dt>
<pre>public&nbsp;<a href="../../../ru/neurotech/neurodevices/features/StimulationSubsystem.html" title="class in ru.neurotech.neurodevices.features">StimulationSubsystem</a>&nbsp;getStimulationSubsystem()</pre>
+
<dd>Stimulation subsystem of device. Null if is not supported</dd>
</li>
+
</dl>
</ul>
+
 
 
<a name="getFeatures--">
 
<a name="getFeatures--">
 
<!--  -->
 
<!--  -->
Line 247: Line 245:
 
</li>
 
</li>
 
</ul>
 
</ul>
<a name="connect--">
+
 
<!--  -->
+
 
</a>
+
<h3>connect</h3>
<ul class="blockList">
+
<code><span style="color:#0066FF;">'''public void'''</span> connect()</code>
<li class="blockList">
+
 
<h4>connect</h4>
+
Establishes connection with device services
<pre>public&nbsp;void&nbsp;connect()</pre>
+
 
<div class="block">Establishes connection with device services</div>
+
<h3>disconnect</h3>
</li>
+
<code><span style="color:#0066FF;">'''public void'''</span> disconnect()</code>
</ul>
+
 
<a name="disconnect--">
+
Disconnects from device
<!--  -->
 
</a>
 
<ul class="blockListLast">
 
<li class="blockList">
 
<h4>disconnect</h4>
 
<pre>public&nbsp;void&nbsp;disconnect()</pre>
 
<div class="block">Disconnect from device</div>
 
</li>
 
</ul>
 
</li>
 
</ul>
 
</li>
 
</ul>
 
</div>
 
</div>
 

Revision as of 06:20, 9 August 2017

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

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 class java.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

Returns Bluetooth LE MAC address
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()

Disconnects from device