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) |
||
Line 75: | Line 75: | ||
|[[#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> |
− | + | ||
− | + | ||
− | |||
− | < | ||
− | |||
− | |||
− | </ | ||
− | < | ||
− | < | ||
− | |||
− | |||
− | |||
− | |||
<a name="createIndex-int-int-double-"> | <a name="createIndex-int-int-double-"> | ||
<!-- --> | <!-- --> |
Revision as of 10:22, 8 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
Classes hierarchy
- java.lang.Object
- ru.neurotech.common.VisualizableDevice
- ru.neurotech.neurodevices.ecg.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()
<a name="createIndex-int-int-double-">
</a>
-
createIndex
public <a href="../../../../ru/neurotech/neurodevices/bfb/BfbIndex.html" title="class in ru.neurotech.neurodevices.bfb">BfbIndex</a> createIndex(int lowFrequency, int highFrequency, double windowDuration)
</li> </ul> </li> </ul>
</div>