Difference between revisions of "BfbDevice Class"
NateColeman (talk | contribs) (→Related Classes) |
NateColeman (talk | contribs) (→Android) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
ru.neurotech.neurodevices.bfb.[[BfbIndex Class|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 155: | Line 157: | ||
− | < | + | <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