Difference between revisions of "BfbDevice Class"
NateColeman (talk | contribs) (Created page with "BFB Device class implemets methods for using universal sensors as biofeedback system. =Android= ru.neurotech.neurodevices.bfb <span style="font-size: 150%;">'''Class BfbDev...") |
NateColeman (talk | contribs) (→Android) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
==Related Classes== | ==Related Classes== | ||
− | ru.neurotech.neurodevices.bfb.[[BfbDeviceConnector]] | + | ru.neurotech.neurodevices.bfb.[[BfbDeviceConnector Class|BfbDeviceConnector]] |
− | ru.neurotech.neurodevices.bfb.[[BfbIndex]] | + | ru.neurotech.neurodevices.bfb.[[BfbIndex Class|BfbIndex]] |
+ | |||
+ | ru.neurotech.neurodevices.[[NeuroDevice Class|NeuroDevice]] | ||
==Classes hierarchy== | ==Classes hierarchy== | ||
Line 21: | Line 23: | ||
<ul> | <ul> | ||
− | <li>ru.neurotech.neurodevices. | + | <li>ru.neurotech.neurodevices.bfb.'''BfbDevice'''</li> |
</ul> | </ul> | ||
</ul> | </ul> | ||
Line 53: | Line 55: | ||
Returns Bluetooth LE MAC address | Returns Bluetooth LE MAC address | ||
|- valign="top" | |- valign="top" | ||
− | |style="color:#0066FF;" |[[BfbIndex#Android|BfbIndex]] | + | |style="color:#0066FF;" |[[BfbIndex Class#Android|BfbIndex]] |
|[[#createIndex|createIndex]](<span style="color:#0066FF;">'''int'''</span> lowFrequency, <span style="color:#0066FF;">'''int'''</span> highFrequency, <span style="color:#0066FF;">'''double'''</span> windowDuration) | |[[#createIndex|createIndex]](<span style="color:#0066FF;">'''int'''</span> lowFrequency, <span style="color:#0066FF;">'''int'''</span> highFrequency, <span style="color:#0066FF;">'''double'''</span> windowDuration) | ||
Creates biofeedback index with specified parameters | Creates biofeedback index with specified parameters | ||
Line 75: | Line 77: | ||
|[[#stopReceive|stopReceive]]() | |[[#stopReceive|stopReceive]]() | ||
|} | |} | ||
− | + | ||
− | < | + | ==Constructor Detail== |
− | < | + | <code><span style="color:#0066FF;">'''public'''</span> BfbDevice(<span style="color:#0066FF;">'''long'''</span> nativeObjPtr)</code> |
− | + | ||
− | </ | + | ==Method Detail== |
− | + | ||
− | + | <h3>finalize</h3> | |
− | + | <code><span style="color:#0066FF;">'''public void'''</span> finalize() <span style="color:#0066FF;">throws</span> java.lang.Throwable</code> | |
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | </ | ||
− | < | ||
− | < | ||
− | |||
− | </ | ||
− | < | ||
− | |||
− | |||
− | |||
− | |||
<dl> | <dl> | ||
− | <dt | + | <dt>Overrides:</dt> |
<dd><code>finalize</code> in class <code>java.lang.Object</code></dd> | <dd><code>finalize</code> in class <code>java.lang.Object</code></dd> | ||
− | <dt | + | <dt>Throws:</dt> |
<dd><code>java.lang.Throwable</code></dd> | <dd><code>java.lang.Throwable</code></dd> | ||
</dl> | </dl> | ||
− | + | ||
− | < | + | <h3>close</h3> |
− | + | <code><span style="color:#0066FF;">'''public void'''</span> close()</code> | |
− | + | ||
− | </ | + | <h3>getName</h3> |
− | < | + | <code><span style="color:#0066FF;">'''public'''</span> java.lang.String getName()</code> |
− | < | + | |
− | + | <span>'''Description copied from class: '''</span>[[VisualizableDevice Class#getName|VisualizableDevice]] | |
− | + | ||
− | + | Returns name of BLE device | |
− | < | ||
− | |||
− | |||
− | </ | ||
− | < | ||
− | < | ||
− | |||
− | |||
− | |||
− | |||
<dl> | <dl> | ||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | ||
− | <dd><code>getName</code> | + | <dd><code>[[VisualizableDevice Class#getName|VisualizableDevice.getName()]]</code> in class VisualizableDevice</dd> |
− | <dt><span | + | <dt><span>Returns:</span></dt> |
<dd>BLE device name</dd> | <dd>BLE device name</dd> | ||
</dl> | </dl> | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | <h3>getAddress</h3> |
− | </ | + | <code><span style="color:#0066FF;">'''public'''</span> java.lang.String getAddress()</code> |
− | < | + | |
− | < | + | <span>'''Description copied from class:''' [[VisualizableDevice Class|VisualizableDevice]]</span> |
− | + | ||
− | + | <div class="block">Returns Bluetooth LE MAC address | |
− | |||
− | <div class="block">Returns Bluetooth LE MAC address | ||
<dl> | <dl> | ||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | ||
− | <dd><code>getAddress</code> | + | <dd><code>[[VisualizableDevice Class#getDeviceAddress|VisualizableDevice.getAddress()]]</code> in class VisualizableDevice</dd> |
− | <dt><span | + | <dt><span>Returns:</span></dt> |
<dd>device unique address</dd> | <dd>device unique address</dd> | ||
</dl> | </dl> | ||
− | + | ||
− | < | + | <h3>getBatteryLevel</h3> |
− | + | <code><span style="color:#0066FF;">'''public int'''</span> getBatteryLevel()</code> | |
− | + | ||
− | </ | + | <span>'''Description copied from class:''' [[VisualizableDevice Class|VisualizableDevice]]</span> |
− | < | + | |
− | < | + | Returns battery state |
− | + | ||
− | |||
− | |||
− | |||
<dl> | <dl> | ||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | ||
− | <dd><code>getBatteryLevel</code> in class | + | <dd><code>[[VisualizableDevice Class#getBatteryLevel|VisualizableDevice.getBatteryLevel()]]</code> in class VisualizableDevice</dd> |
<dt><span class="returnLabel">Returns:</span></dt> | <dt><span class="returnLabel">Returns:</span></dt> | ||
<dd>battery charge level in percents</dd> | <dd>battery charge level in percents</dd> | ||
</dl> | </dl> | ||
− | + | ||
− | < | + | <h3>getNeuroDevice</h3> |
− | + | <code><span style="color:#0066FF;">'''public'''</span> [[NeuroDevice Class|NeuroDevice]] getNeuroDevice()</code> | |
− | + | ||
− | </ | + | <span>'''Description copied from class:''' [[VisualizableDevice Class|VisualizableDevice]]</span> |
− | < | ||
− | < | ||
− | |||
− | |||
− | |||
<div class="block">Returns physical device object which this visual device represents</div> | <div class="block">Returns physical device object which this visual device represents</div> | ||
<dl> | <dl> | ||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | ||
− | <dd><code>getNeuroDevice</code> in class | + | <dd><code>[[VisualizableDevice Class#getNeuroDevice|VisualizableDevice.getNeuroDevice()]]</code> in class VisualizableDevice</dd> |
<dt><span class="returnLabel">Returns:</span></dt> | <dt><span class="returnLabel">Returns:</span></dt> | ||
<dd>NeuroDevice of current visual device</dd> | <dd>NeuroDevice of current visual device</dd> | ||
</dl> | </dl> | ||
− | </ | + | |
− | < | + | <h3>startReceive</h3> |
− | < | + | <code><span style="color:#0066FF;">'''public void'''</span> startReceive()</code> |
− | < | + | |
− | </ | + | |
− | + | <h3>stopReceive</h3> | |
− | + | <code><span style="color:#0066FF;">'''public void'''</span> stopReceive()</code> | |
− | < | + | |
− | < | + | |
− | </ | + | <h3>createIndex</h3> |
− | < | + | <code><span style="color:#0066FF;">'''public''' [[BfbIndex Class#Android|BfbIndex]]</span> createIndex(<span style="color:#0066FF;">'''int'''</span> lowFrequency, <span style="color:#0066FF;">'''int'''</span> highFrequency, <span style="color:#0066FF;">'''double'''</span> windowDuration)</code> |
− | < | + | |
− | + | Creates biofeedback index with specified parameters | |
− | </ | + | |
− | < | + | <dl> |
− | < | + | <dt><span class="paramLabel">Parameters:</span></dt> |
− | < | + | <dd><code>lowFrequency</code> - Low frequency of index band</dd> |
− | < | + | <dd><code>highFrequency</code> - High frequency of index band</dd> |
− | < | + | <dd><code>windowDuration</code> - Duration of calculation window</dd> |
− | < | + | <dt><span class="returnLabel">Returns:</span></dt> |
− | < | + | <dd>Index object for biofeedback tests</dd> |
− | < | + | </dl> |
− | </ | ||
− | < | ||
− | < | ||
− | < | ||
− | < | ||
− | |||
− | |||
− | </ | ||
− | < | ||
− | < | ||
− | </ | ||
− | </ | ||
− | < | ||
− | </ | ||
− | </ |
Latest revision as of 05:35, 14 August 2017
BFB Device class implemets methods for using universal sensors as biofeedback system.
Contents
Android
ru.neurotech.neurodevices.bfb
Class BfbDevice
Related Classes
ru.neurotech.neurodevices.bfb.BfbDeviceConnector
ru.neurotech.neurodevices.bfb.BfbIndex
ru.neurotech.neurodevices.NeuroDevice
Classes hierarchy
- java.lang.Object
- ru.neurotech.common.VisualizableDevice
- ru.neurotech.neurodevices.bfb.BfbDevice
Class definition
public class BfbDevice extends VisualizableDevice
Constructor Summary
Constructor and Description |
BfbDevice(long nativeObjPtr) |
Methods Summary
Modifier and Type | Method and Description |
void | close() |
void | finalize() |
java.lang.String | getAddress()
Returns Bluetooth LE MAC address |
BfbIndex | createIndex(int lowFrequency, int highFrequency, double windowDuration)
Creates biofeedback index with specified parameters |
int | getBatteryLevel()
Returns battery charge level in percents |
java.lang.String | getName()
Returns name of BLE device |
NeuroDevice | getNeuroDevice()
Returns physical device object which this visual device represents |
void | startReceive() |
void | stopReceive() |
Constructor Detail
public BfbDevice(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()
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:
- NeuroDevice of current visual device
startReceive
public void startReceive()
stopReceive
public void stopReceive()
createIndex
public BfbIndex createIndex(int lowFrequency, int highFrequency, double windowDuration)
Creates biofeedback index with specified parameters
- Parameters:
lowFrequency
- Low frequency of index bandhighFrequency
- High frequency of index bandwindowDuration
- Duration of calculation window- Returns:
- Index object for biofeedback tests