Difference between revisions of "EcgDeviceConnector Class"
NateColeman (talk | contribs) (→Method Detail) |
NateColeman (talk | contribs) (→Android) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | This class provides simplified interface for scanning, getting and preparing Callibri devices sutable for ECG test. | |
=Android= | =Android= | ||
Line 45: | Line 45: | ||
|- | |- | ||
|[[#EcgDeviceConnector|EcgDeviceConnector]](android.content.Context context) | |[[#EcgDeviceConnector|EcgDeviceConnector]](android.content.Context context) | ||
− | Creates new instance of | + | Creates new instance of EcgDeviceConnector class with current application context |
|} | |} | ||
Line 88: | Line 88: | ||
<code><span style="color:#0066FF;">'''public'''</span> EcgDeviceConnector(android.content.Context context)</code> | <code><span style="color:#0066FF;">'''public'''</span> EcgDeviceConnector(android.content.Context context)</code> | ||
− | Creates new instance of | + | Creates new instance of EcgDeviceConnector class with current application context |
==Method Detail== | ==Method Detail== |
Latest revision as of 04:25, 9 August 2017
This class provides simplified interface for scanning, getting and preparing Callibri devices sutable for ECG test.
Contents
Android
ru.neurotech.neurodevices.ecg
Class EcgDeviceConnector
Related Classes
ru.neurotech.neurodevices.ecg.EcgDevice
ru.neurotech.neurodevices.ecg.RPeak
Classes hierarchy
- java.lang.Object
- ru.neurotech.neurodevices.ecg.EcgDeviceConnector
Class definition
public class EcgDeviceConnector extends java.lang.Object
Fields Summary
Modifier and Type | Field and Description |
SubscribersNotifier<EcgDevice> | deviceFound
Notifies when proper Callibri ECG device been found and initialized |
SubscribersNotifier<java.lang.Boolean> | scanStateChanged
Notifies about changing device scanning state |
Constructor Summary
Constructor and Description |
EcgDeviceConnector(android.content.Context context)
Creates new instance of EcgDeviceConnector class with current application context |
Methods Summary
Modifier and Type | Method and Description |
EcgDevice | getDeviceByAddress(java.lang.String address)
Returns object, representing device with specified address It is not guaranteed, that this device is currently available |
void | shutdown()
Ends all operations with device searching and frees all resources. |
void | startScan(int timeout)
Starts searching for Callibri devices suitable for ECG tests |
void | stopScan
Stops device searching |
Field Detail
deviceFound
public final SubscribersNotifier<EcgDevice> deviceFound
Notifies when proper Callibri ECG device been found and initialized
scanStateChanged
public final SubscribersNotifier<java.lang.Boolean> scanStateChanged
Notifies about changing device scanning state
Constructor Detail
EcgDeviceConnector
public EcgDeviceConnector(android.content.Context context)
Creates new instance of EcgDeviceConnector class with current application context
Method Detail
startScan
public void startScan(int timeout)
Starts searching for Callibri devices suitable for ECG tests
- Parameters:
timeout
- Scan time. Zero for infinity
stopScan
public void stopScan()
Stops device searching
shutdown
public void shutdown()
Ends all operations with device searching and frees all resources
getDeviceByAddress
public EcgDevice getDeviceByAddress(java.lang.String address)
Returns object, representing device with specified address It is not guaranteed, that this device is currently available
- Parameters:
address
- BTLE device address- Returns:
- EcgDevice object