Difference between revisions of "EcgDevice Class"
NateColeman (talk | contribs) (→Field Detail) |
NateColeman (talk | contribs) (→Field Detail) |
||
Line 158: | Line 158: | ||
==Field Detail== | ==Field Detail== | ||
− | ===totalSignalDurationChanged=== | + | ====totalSignalDurationChanged==== |
<pre>public final <a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><java.lang.Double> totalSignalDurationChanged</pre> | <pre>public final <a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><java.lang.Double> totalSignalDurationChanged</pre> | ||
<div class="block">Notifies subscribers when signal duration is changed, | <div class="block">Notifies subscribers when signal duration is changed, |
Revision as of 08:29, 15 March 2017
ECG Device class implemets methods for using universal sensors as cardiography system.
Contents
- 1 Android
- 1.1 Related Classes
- 1.2 Classes hierarchy
- 1.3 Class definition
- 1.4 Fields Summary
- 1.5 Constructor Summary
- 1.6 Methods Summary
- 1.7 Field Detail
- 1.8 Constructor Detail
- 1.9 Method Detail
- 1.9.1 finalize
- 1.9.2 close
- 1.9.3 getName
- 1.9.4 getAddress
- 1.9.5 getBatteryLevel
- 1.9.6 getNeuroDevice
- 1.9.7 startReceive
- 1.9.8 stopReceive
- 1.9.9 reset
- 1.9.10 getTotalSignalDuration
- 1.9.11 getEcgSignal
- 1.9.12 getRWavesOnInterval
- 1.9.13 getCurrentHeartRate
- 1.9.14 getAverageHeartRateOnInterval
- 1.9.15 getCurrentHeartRateVariability
- 1.9.16 getHeartRateVariabilityForInterval
- 1.9.17 getCurrentStressIndex
- 1.9.18 getStressIndexForInterval
- 1.9.19 getElectrodesState
Android
ru.neurotech.neurodevices.ecg
Class EcgDevice
Related Classes
ru.neurotech.neurodevices.ecg.EcgDeviceConnector
ru.neurotech.neurodevices.ecg.RPeak
Classes hierarchy
- java.lang.Object
- ru.neurotech.common.VisualizableDevice
- ru.neurotech.neurodevices.ecg.EcgDevice
Class definition
public class EcgDevice extends VisualizableDevice
Fields Summary
Modifier and Type | Field and Description |
SubscribersNotifier<java.lang.Boolean> | electrodesAttachedStateChanged
Notifies when electrodes are attached or detached To get electrodes state manually use getElectrodesState |
SubscribersNotifier<java.lang.Double> | totalSignalDurationChanged
Notifies subscribers when signal duration is changed, when new samples received or data been loaded from external storage, or buffers been reset |
Fields inherited from class ru.neurotech.common.VisualizableDevice |
deviceStateChanged |
Constructor Summary
Constructor and Description |
---|
<a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#EcgDevice-long-">EcgDevice</a>(long nativeObjPtr) |
Methods Summary
Modifier and Type | Method and Description |
void | close() |
void | finalize() |
java.lang.String | getAddress()
Returns Bluetooth LE MAC address |
int | getAverageHeartRateOnInterval
Returns average heart rate based on NN-interval values from specified time interval |
int | getBatteryLevel()
Returns battery charge level in percents |
int | getCurrentHeartRate()
Calculates heart rate for recently received ECG samples Use this method to monitor heart rate during signal receiving is active It's not recommended to use this method to calculate heart rate while signal receiving is stopped, use getAverageHeartRateOnInterval instead |
double | getCurrentHeartRateVariability()
Returns currently detected value of heart rate variability Use this method to monitor HRV during signal receiving To get HRV for various intervals while signal receiving is stopped use getHeartRateVariabilityForInterval |
double | getCurrentStressIndex()
Returns value of stress index for real-time monitoring Use this method to monitor stress index while signal receiving is active To get stress index for various intervals while signal receiving is stopped use getStressIndexForInterval |
double[] | getEcgSignal(double time, double duration)
Returns ECG signal stored in buffer for selected time interval If interval exceeds maximum or minimum buffer time, signal samples for these intervals will be equal to zero |
boolean | getElectrodesState()
Returns flag indicating whether electrodes properly attached or not |
double | getHeartRateVariabilityForInterval(double startTime, double endTime)
Returns average value of heart rate variability on interval |
java.lang.String | getName()
Returns name of BLE device |
NeuroDevice | getNeuroDevice()
Returns physical device object which this visual device represents |
RPeak[] | getRWavesOnInterval(double startTime, double endTime)
Detects R-waves in signal for specified time interval |
double | getStressIndexForInterval(double startTime, double endTime)
Returns average value of stress index on interval
|
double | getTotalSignalDuration()
Returns total signal duration in current test |
void | reset()
Clears signal buffer, sets duration to zero and resets all parameters to default values |
void | startReceive() |
void | stopReceive() |
Field Detail
totalSignalDurationChanged
public final <a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><java.lang.Double> totalSignalDurationChanged
when new samples received or data been loaded from external storage,or buffers been reset
</li> </ul> <a name="electrodesAttachedStateChanged"> </a>
-
electrodesAttachedStateChanged
public final <a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><java.lang.Boolean> electrodesAttachedStateChanged
Notifies when electrodes are attached or detached To get electrodes state manually use getElectrodesState
</li> </ul>
Constructor Detail
EcgDevice
public EcgDevice(long nativeObjPtr)
Method Detail
finalize
public void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
</li> </ul> <a name="close--"> </a>
-
close
public void close()
<a name="getName--"> </a>
-
getName
public java.lang.String getName()
Description copied from class:<a href="../../../../ru/neurotech/common/VisualizableDevice.html#getName--">VisualizableDevice</a>
Returns name of BLE device- Specified by:
<a href="../../../../ru/neurotech/common/VisualizableDevice.html#getName--">getName</a>
in class[[VisualizableDevice Class|VisualizableDevice]
- Returns:
- BLE device name
<a name="getAddress--"> </a>
-
getAddress
public java.lang.String getAddress()
Description copied from class:<a href="../../../../ru/neurotech/common/VisualizableDevice.html#getAddress--">VisualizableDevice</a>
Returns Bluetooth LE MAC address- Specified by:
<a href="../../../../ru/neurotech/common/VisualizableDevice.html#getAddress--">getAddress</a>
in class[[VisualizableDevice Class|VisualizableDevice]
- Returns:
- device unique address
<a name="getBatteryLevel--"> </a>
-
getBatteryLevel
public int getBatteryLevel()
Description copied from class:<a href="../../../../ru/neurotech/common/VisualizableDevice.html#getBatteryLevel--">VisualizableDevice</a>
Returns battery state- Specified by:
<a href="../../../../ru/neurotech/common/VisualizableDevice.html#getBatteryLevel--">getBatteryLevel</a>
in class<a href="../../../../ru/neurotech/common/VisualizableDevice.html" title="class in ru.neurotech.common">VisualizableDevice</a>
- Returns:
- battery charge level in percents
<a name="getNeuroDevice--"> </a>
-
getNeuroDevice
public <a href="../../../../ru/neurotech/neurodevices/NeuroDevice.html" title="class in ru.neurotech.neurodevices">NeuroDevice</a> getNeuroDevice()
Description copied from class:<a href="../../../../ru/neurotech/common/VisualizableDevice.html#getNeuroDevice--">VisualizableDevice</a>
Returns physical device object which this visual device represents- Specified by:
<a href="../../../../ru/neurotech/common/VisualizableDevice.html#getNeuroDevice--">getNeuroDevice</a>
in class[[VisualizableDevice Class|VisualizableDevice]
- Returns:
- NeuroDevice of current visual device
<a name="startReceive--"> </a>
-
startReceive
public void startReceive()
<a name="stopReceive--"> </a>
-
stopReceive
public void stopReceive()
<a name="reset--"> </a>
-
reset
public void reset()
Clears signal buffer, sets duration to zero and resets all parameters to default values
<a name="getTotalSignalDuration--"> </a>
-
getTotalSignalDuration
public double getTotalSignalDuration()
Returns total signal duration in current test- Returns:
- signal duration in seconds
<a name="getEcgSignal-double-double-"> </a>
-
getEcgSignal
public double[] getEcgSignal(double time, double duration)
Returns ECG signal stored in buffer for selected time intervalIf interval exceeds maximum or minimum buffer time, signal samples
for these intervals will be equal to zero- Parameters:
time
- Start time of intervalduration
- Duration of interval- Returns:
- Signal samples array
<a name="getRWavesOnInterval-double-double-"> </a>
-
getRWavesOnInterval
public <a href="../../../../ru/neurotech/neurodevices/ecg/RPeak.html" title="class in ru.neurotech.neurodevices.ecg">RPeak</a>[] getRWavesOnInterval(double startTime, double endTime)
Detects R-waves in signal for specified time interval- Parameters:
startTime
- Start time of intervalendTime
- End time of interval- Returns:
- Array of RPeaks
<a name="getCurrentHeartRate--"> </a>
-
getCurrentHeartRate
public int getCurrentHeartRate()
Calculates heart rate for recently received ECG samplesUse this method to monitor heart rate during signal receiving is active It's not recommended to use this method to calculate heart rate
while signal receiving is stopped, use getAverageHeartRateOnInterval instead- Returns:
- Heart rate in beats per minute
<a name="getAverageHeartRateOnInterval-double-double-"> </a>
-
getAverageHeartRateOnInterval
public int getAverageHeartRateOnInterval(double startTime, double endTime)
Returns average heart rate based on NN-interval values from specified time interval- Parameters:
startTime
- Start time for heart rate calculationendTime
- End time for heart rate calculation- Returns:
- Heart rate in beats per minute
<a name="getCurrentHeartRateVariability--"> </a>
-
getCurrentHeartRateVariability
public double getCurrentHeartRateVariability()
Returns currently detected value of heart rate variabilityUse this method to monitor HRV during signal receiving To get HRV for various intervals while signal receiving is stopped
use getHeartRateVariabilityForInterval- Returns:
- HRV value
<a name="getHeartRateVariabilityForInterval-double-double-"> </a>
-
getHeartRateVariabilityForInterval
public double getHeartRateVariabilityForInterval(double startTime, double endTime)
Returns average value of heart rate variability on interval- Parameters:
startTime
- Start time of calculation intervalendTime
- End time of calculation interval- Returns:
- HRV value
<a name="getCurrentStressIndex--"> </a>
-
getCurrentStressIndex
public double getCurrentStressIndex()
Returns value of stress index for real-time monitoringUse this method to monitor stress index while signal receiving is active To get stress index for various intervals while signal receiving is stopped
use getStressIndexForInterval- Returns:
- Stress index of current signal
<a name="getStressIndexForInterval-double-double-"> </a>
-
getStressIndexForInterval
public double getStressIndexForInterval(double startTime, double endTime)
Returns average value of stress index on interval- Parameters:
startTime
- Start time of calculation intervalendTime
- End time of calculation interval- Returns:
- Stress index value
<a name="getElectrodesState--"> </a>
-
getElectrodesState
public boolean getElectrodesState()
Returns flag indicating whether electrodes properly attached or not- Returns:
- Is electrodes attached