Difference between revisions of "EcgDeviceConnector Class"

From Neurotech Software Development Kit
Jump to: navigation, search
(Field Detail)
(Constructor Detail)
Line 90: Line 90:
 
Creates new instance of MotionAssistantDeviceConnector class with current application context
 
Creates new instance of MotionAssistantDeviceConnector class with current application context
  
 +
==Method Detail==
  
<!-- ============ METHOD DETAIL ========== -->
+
<h3>startScan</h3>
<ul class="blockList">
+
<code><span style="color:#0066FF;">'''public void'''</span> startScan(int&nbsp;timeout)</code>
<li class="blockList"><a name="method.detail">
+
Starts searching for Callibri devices suitable for ECG tests
<!--  -->
 
</a>
 
<h3>Method Detail</h3>
 
<a name="startScan-int-">
 
<!--  -->
 
</a>
 
<ul class="blockList">
 
<li class="blockList">
 
<h4>startScan</h4>
 
<pre>public&nbsp;void&nbsp;startScan(int&nbsp;timeout)</pre>
 
<div class="block">Starts searching for Callibri devices suitable for ECG tests</div>
 
 
<dl>
 
<dl>
 
<dt><span class="paramLabel">Parameters:</span></dt>
 
<dt><span class="paramLabel">Parameters:</span></dt>
 
<dd><code>timeout</code> - Scan time. Zero for infinity</dd>
 
<dd><code>timeout</code> - Scan time. Zero for infinity</dd>
 
</dl>
 
</dl>
</li>
+
 
</ul>
+
<h3>stopScan</h3>
<a name="stopScan--">
+
<code><span style="color:#0066FF;">'''public void'''</span> stopScan()</code>
<!--  -->
+
Stops device searching
</a>
+
 
<ul class="blockList">
+
<h3>shutdown</h3>
<li class="blockList">
+
<code><span style="color:#0066FF;">'''public void'''</span> shutdown()</code>
<h4>stopScan</h4>
+
Ends all operations with device searching and frees all resources
<pre>public&nbsp;void&nbsp;stopScan()</pre>
+
 
<div class="block">Stops device searching</div>
+
<h3>getDeviceByAddress</h3>
</li>
+
<code><span style="color:#0066FF;">'''public'''</span> [[EcgDevice Class|EcgDevice]] getDeviceByAddress(java.lang.String address)</code>
</ul>
+
Returns object, representing device with specified address
<a name="shutdown--">
+
It is not guaranteed, that this device is currently available
<!--  -->
 
</a>
 
<ul class="blockList">
 
<li class="blockList">
 
<h4>shutdown</h4>
 
<pre>public&nbsp;void&nbsp;shutdown()</pre>
 
<div class="block">Ends all operations with device searching and frees all resources</div>
 
</li>
 
</ul>
 
<a name="getDeviceByAddress-java.lang.String-">
 
<!--  -->
 
</a>
 
<ul class="blockListLast">
 
<li class="blockList">
 
<h4>getDeviceByAddress</h4>
 
<pre>public&nbsp;<a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html" title="class in ru.neurotech.neurodevices.ecg">EcgDevice</a>&nbsp;getDeviceByAddress(java.lang.String&nbsp;address)</pre>
 
<div class="block">Returns object, representing device with specified address
 
It is not guaranteed, that this device is currently available</div>
 
 
<dl>
 
<dl>
 
<dt><span class="paramLabel">Parameters:</span></dt>
 
<dt><span class="paramLabel">Parameters:</span></dt>
 
<dd><code>address</code> - BTLE device address</dd>
 
<dd><code>address</code> - BTLE device address</dd>
 
<dt><span class="returnLabel">Returns:</span></dt>
 
<dt><span class="returnLabel">Returns:</span></dt>
<dd>EcgDevice object</dd>
+
<dd>[[EcgDevice Class|EcgDevice]] object</dd>
 
</dl>
 
</dl>
</li>
 
</ul>
 
</li>
 
</ul>
 
</li>
 
</ul>
 
</div>
 
</div>
 

Revision as of 07:10, 16 March 2017

Summary

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 MotionAssistantDeviceConnector 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 MotionAssistantDeviceConnector 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