Difference between revisions of "EcgDeviceConnector Class"

From Neurotech Software Development Kit
Jump to: navigation, search
(Constructor Summary)
(Methods Summary)
Line 72: Line 72:
 
|}
 
|}
  
<!-- ============ FIELD DETAIL =========== -->
+
==Field Detail==
<ul class="blockList">
+
<h3>deviceFound</h3>
<li class="blockList"><a name="field.detail">
+
<code><span style="color:#0066FF;">'''public final'''</span> [[SubscribersNotifier Class|SubscribersNotifier]]&lt;[[EcgDevice Class|EcgDevice]]&gt; deviceFound</code>
<!--  -->
+
 
</a>
+
Notifies when proper Callibri ECG device been found and initialized
<h3>Field Detail</h3>
+
 
<a name="deviceFound">
+
<h3>scanStateChanged</h3>
<!--  -->
+
<code><span style="color:#0066FF;">'''public final'''</span> [[SubscribersNotifier Class|SubscribersNotifier]]&lt;java.lang.Boolean&gt; scanStateChanged</code>
</a>
+
 
<ul class="blockList">
+
Notifies about changing device scanning state
<li class="blockList">
+
 
<h4>deviceFound</h4>
+
 
<pre>public final&nbsp;<a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a>&lt;<a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html" title="class in ru.neurotech.neurodevices.ecg">EcgDevice</a>&gt; deviceFound</pre>
 
<div class="block">Notifies when proper Callibri ECG device been found and initialized</div>
 
</li>
 
</ul>
 
<a name="scanStateChanged">
 
<!--  -->
 
</a>
 
<ul class="blockListLast">
 
<li class="blockList">
 
<h4>scanStateChanged</h4>
 
<pre>public final&nbsp;<a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a>&lt;java.lang.Boolean&gt; scanStateChanged</pre>
 
<div class="block">Notifies about changing device scanning state</div>
 
</li>
 
</ul>
 
</li>
 
</ul>
 
 
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
<ul class="blockList">
 
<ul class="blockList">

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


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