Difference between revisions of "EcgDeviceConnector Class"

From Neurotech Software Development Kit
Jump to: navigation, search
(Constructor Summary)
Line 48: Line 48:
 
|}
 
|}
  
 +
==Methods Summary==
 +
{| class="wikitable"
 +
|- style="background-color: #dee3e9;"
 +
|'''Modifier and Type'''
 +
|'''Method and Description'''
 +
|- valign="top"
 +
|[[EcgDevice Class|EcgDevice]]
 +
|[[#getDeviceByAddress|getDeviceByAddress]](java.lang.String address)
 +
Returns object, representing device with specified address
 +
It is not guaranteed, that this device is currently available
 +
|- valign="top"
 +
|style="color:#0066FF;" |'''void'''
 +
|[[#shutdown|shutdown]]()
 +
Ends all operations with device searching and frees all resources.
 +
|- valign="top"
 +
|style="color:#0066FF;" |'''void'''
 +
|[[#startScan|startScan]](<span style="color:#0066FF;">'''int'''</span> timeout)
 +
Starts searching for Callibri devices suitable for ECG tests
 +
|- valign="top"
 +
|style="color:#0066FF;" |'''void'''
 +
|[[#stopScan|stopScan]]
 +
Stops device searching
 +
|}
  
<!-- ========== METHOD SUMMARY =========== -->
 
<ul class="blockList">
 
<li class="blockList"><a name="method.summary">
 
<!--  -->
 
</a>
 
<h3>Method Summary</h3>
 
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
 
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
 
<tr>
 
<th class="colFirst" scope="col">Modifier and Type</th>
 
<th class="colLast" scope="col">Method and Description</th>
 
</tr>
 
<tr id="i0" class="altColor">
 
<td class="colFirst"><code><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html" title="class in ru.neurotech.neurodevices.ecg">EcgDevice</a></code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDeviceConnector.html#getDeviceByAddress-java.lang.String-">getDeviceByAddress</a></span>(java.lang.String&nbsp;address)</code>
 
<div class="block">Returns object, representing device with specified address
 
It is not guaranteed, that this device is currently available</div>
 
</td>
 
</tr>
 
<tr id="i1" class="rowColor">
 
<td class="colFirst"><code>void</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDeviceConnector.html#shutdown--">shutdown</a></span>()</code>
 
<div class="block">Ends all operations with device searching and frees all resources</div>
 
</td>
 
</tr>
 
<tr id="i2" class="altColor">
 
<td class="colFirst"><code>void</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDeviceConnector.html#startScan-int-">startScan</a></span>(int&nbsp;timeout)</code>
 
<div class="block">Starts searching for Callibri devices suitable for ECG tests</div>
 
</td>
 
</tr>
 
<tr id="i3" class="rowColor">
 
<td class="colFirst"><code>void</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDeviceConnector.html#stopScan--">stopScan</a></span>()</code>
 
<div class="block">Stops device searching</div>
 
</td>
 
</tr>
 
</table>
 
<ul class="blockList">
 
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
 
<!--  -->
 
</a>
 
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
 
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
 
</ul>
 
</li>
 
</ul>
 
</li>
 
</ul>
 
</div>
 
<div class="details">
 
<ul class="blockList">
 
<li class="blockList">
 
 
<!-- ============ FIELD DETAIL =========== -->
 
<!-- ============ FIELD DETAIL =========== -->
 
<ul class="blockList">
 
<ul class="blockList">

Revision as of 06:00, 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

  • <a name="field.detail"> </a>

    Field Detail

    <a name="deviceFound"> </a>

    • deviceFound

      public final <a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><<a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html" title="class in ru.neurotech.neurodevices.ecg">EcgDevice</a>> deviceFound
      Notifies when proper Callibri ECG device been found and initialized

    <a name="scanStateChanged"> </a>

    • scanStateChanged

      public final <a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><java.lang.Boolean> scanStateChanged
      Notifies about changing device scanning state
  • <a name="constructor.detail"> </a>

    Constructor Detail

    <a name="EcgDeviceConnector-android.content.Context-"> </a>

    • EcgDeviceConnector

      public EcgDeviceConnector(android.content.Context context)
      Creates new instance of MotionAssistantDeviceConnector class with current application context
      Parameters:
      context - Application context
  • <a name="method.detail"> </a>

    Method Detail

    <a name="startScan-int-"> </a>

    • startScan

      public void startScan(int timeout)
      Starts searching for Callibri devices suitable for ECG tests
      Parameters:
      timeout - Scan time. Zero for infinity

    <a name="stopScan--"> </a>

    • stopScan

      public void stopScan()
      Stops device searching

    <a name="shutdown--"> </a>

    • shutdown

      public void shutdown()
      Ends all operations with device searching and frees all resources

    <a name="getDeviceByAddress-java.lang.String-"> </a>

    • getDeviceByAddress

      public <a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html" title="class in ru.neurotech.neurodevices.ecg">EcgDevice</a> 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

</li> </ul> </div> </div>