Difference between revisions of "BfbIndex Class"
NateColeman (talk | contribs) (→Field Detail) |
NateColeman (talk | contribs) (→Method Detail) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 75: | Line 75: | ||
==Constructor Detail== | ==Constructor Detail== | ||
+ | |||
<code><span style="color:#0066FF;">'''public'''</span> BfbIndex(<span style="color:#0066FF;">'''long'''</span> nativeObjPtr)</code> | <code><span style="color:#0066FF;">'''public'''</span> BfbIndex(<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>value</h3> |
− | + | <code><span style="color:#0066FF;">'''public int'''</span> value()</code> | |
− | + | ||
− | </ | + | Returns current value of biofeedback index |
− | < | + | |
− | < | + | <dl> |
− | + | <dt><span class="returnLabel">Returns:</span></dt> | |
− | + | <dd>Biofeedback index value</dd> | |
− | + | </dl> | |
− | + | ||
− | + | <h3>calibrate</h3> | |
− | + | <code><span style="color:#0066FF;">'''public void'''</span> calibrate()</code> | |
− | < | + | |
− | < | + | Starts calibration process. This method is non-blocking. |
− | < | + | Subscribe [[#calibrationFinished|calibrationFinished]] to get notification when calibration process ends. |
− | < | ||
− | < | ||
− | </ | ||
− | < | ||
− | </ | ||
− | < | ||
− | < | ||
− | </ | ||
− | </ | ||
− | |||
− |
Latest revision as of 09:51, 14 August 2017
Contents
Android
ru.neurotech.neurodevices.bfb
Class BfbIndex
Related Classes
ru.neurotech.neurodevices.bfb.BfbDeviceConnector
ru.neurotech.neurodevices.bfb.BfbDevice
Classes hierarchy
- java.lang.Object
- ru.neurotech.neurodevices.bfb.BfbIndex
Class definition
public class BfbIndex
Fields Summary
Modifier and Type | Field and Description |
SubscribersNotifier<java.lang.Object> | calibrationFinished
Notifies about finishing of calibration process |
SubscribersNotifier<java.lang.Integer> | valueChanged
Notifies about changes of biofeedback index parameter |
Constructor Summary
Constructor and Description |
BfbIndex(long nativeObjPtr) |
Methods Summary
Modifier and Type | Method and Description |
void | calibrate()
Starts calibration process |
void | finalize() |
int | value()
Returns current value of biofeedback index |
Field Detail
valueChanged
public final SubscribersNotifier<java.lang.Integer> valueChanged
Notifies about changes of biofeedback
calibrationFinished
public final SubscribersNotifier<java.lang.Object> calibrationFinished
Notifies about finishing of calibration process
Constructor Detail
public BfbIndex(long nativeObjPtr)
Method Detail
finalize
public void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
value
public int value()
Returns current value of biofeedback index
- Returns:
- Biofeedback index value
calibrate
public void calibrate()
Starts calibration process. This method is non-blocking. Subscribe calibrationFinished to get notification when calibration process ends.