forked from polarofficial/polar-ble-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPolarHrData_8java_source.html
89 lines (89 loc) · 15.1 KB
/
PolarHrData_8java_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SDK for Polar sensors: PolarHrData.java Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SDK for Polar sensors
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PolarHrData_8java_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">PolarHrData.java</div> </div>
</div><!--header-->
<div class="contents">
<a href="PolarHrData_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright © 2019 Polar Electro Oy. All rights reserved.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="keyword">package </span>polar.com.sdk.api.model;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="keyword">import</span> java.util.ArrayList;</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="keyword">import</span> java.util.List;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html"> 10</a></span> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html">PolarHrData</a> {</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ad2735e8ed0cc5ae3fe5557e6de61e53f"> 15</a></span>  <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ad2735e8ed0cc5ae3fe5557e6de61e53f">hr</a>;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a3280c8db2510e5fc5e3489d6ab4b852c"> 21</a></span>  <span class="keyword">public</span> List<Integer> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a3280c8db2510e5fc5e3489d6ab4b852c">rrs</a>;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a178e50dae28b430d17f2e37a0c6c1c7f"> 26</a></span>  <span class="keyword">public</span> List<Integer> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a178e50dae28b430d17f2e37a0c6c1c7f">rrsMs</a>;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#aab9b68c82ece7935c105f323c86b3b59"> 31</a></span>  <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#aab9b68c82ece7935c105f323c86b3b59">contactStatus</a>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ab63465947499f26a7976fb8f9e73adfc"> 36</a></span>  <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ab63465947499f26a7976fb8f9e73adfc">contactStatusSupported</a>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a413f78c6bfd3fd2a579a84ff760007ed"> 41</a></span>  <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a413f78c6bfd3fd2a579a84ff760007ed">rrAvailable</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a5b15581bb14c1392b66d5cd649b2251b"> 43</a></span>  <span class="keyword">public</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a5b15581bb14c1392b66d5cd649b2251b">PolarHrData</a>(<span class="keywordtype">int</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ad2735e8ed0cc5ae3fe5557e6de61e53f">hr</a>, List<Integer> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a3280c8db2510e5fc5e3489d6ab4b852c">rrs</a>, <span class="keywordtype">boolean</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#aab9b68c82ece7935c105f323c86b3b59">contactStatus</a>, <span class="keywordtype">boolean</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ab63465947499f26a7976fb8f9e73adfc">contactStatusSupported</a>, <span class="keywordtype">boolean</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a413f78c6bfd3fd2a579a84ff760007ed">rrAvailable</a>) {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  this.hr = <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ad2735e8ed0cc5ae3fe5557e6de61e53f">hr</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  this.rrs = <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a3280c8db2510e5fc5e3489d6ab4b852c">rrs</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  this.contactStatus = <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#aab9b68c82ece7935c105f323c86b3b59">contactStatus</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  this.contactStatusSupported = <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ab63465947499f26a7976fb8f9e73adfc">contactStatusSupported</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  this.rrAvailable = <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a413f78c6bfd3fd2a579a84ff760007ed">rrAvailable</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a178e50dae28b430d17f2e37a0c6c1c7f">rrsMs</a> = <span class="keyword">new</span> ArrayList<>();</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">for</span>( <span class="keywordtype">int</span> rrRaw : <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a3280c8db2510e5fc5e3489d6ab4b852c">rrs</a> ){</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a178e50dae28b430d17f2e37a0c6c1c7f">rrsMs</a>.add((<span class="keywordtype">int</span>)(Math.round(((<span class="keywordtype">float</span>) rrRaw /1024.0)*1000.0)));</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> }</div><div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData_html_a178e50dae28b430d17f2e37a0c6c1c7f"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a178e50dae28b430d17f2e37a0c6c1c7f">polar.com.sdk.api.model.PolarHrData.rrsMs</a></div><div class="ttdeci">List< Integer > rrsMs</div><div class="ttdef"><b>Definition:</b> <a href="PolarHrData_8java_source.html#l00026">PolarHrData.java:26</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData_html_ad2735e8ed0cc5ae3fe5557e6de61e53f"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ad2735e8ed0cc5ae3fe5557e6de61e53f">polar.com.sdk.api.model.PolarHrData.hr</a></div><div class="ttdeci">int hr</div><div class="ttdef"><b>Definition:</b> <a href="PolarHrData_8java_source.html#l00015">PolarHrData.java:15</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData_html"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html">polar.com.sdk.api.model.PolarHrData</a></div><div class="ttdef"><b>Definition:</b> <a href="PolarHrData_8java_source.html#l00010">PolarHrData.java:10</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData_html_aab9b68c82ece7935c105f323c86b3b59"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#aab9b68c82ece7935c105f323c86b3b59">polar.com.sdk.api.model.PolarHrData.contactStatus</a></div><div class="ttdeci">boolean contactStatus</div><div class="ttdef"><b>Definition:</b> <a href="PolarHrData_8java_source.html#l00031">PolarHrData.java:31</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData_html_a3280c8db2510e5fc5e3489d6ab4b852c"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a3280c8db2510e5fc5e3489d6ab4b852c">polar.com.sdk.api.model.PolarHrData.rrs</a></div><div class="ttdeci">List< Integer > rrs</div><div class="ttdef"><b>Definition:</b> <a href="PolarHrData_8java_source.html#l00021">PolarHrData.java:21</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData_html_ab63465947499f26a7976fb8f9e73adfc"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#ab63465947499f26a7976fb8f9e73adfc">polar.com.sdk.api.model.PolarHrData.contactStatusSupported</a></div><div class="ttdeci">boolean contactStatusSupported</div><div class="ttdef"><b>Definition:</b> <a href="PolarHrData_8java_source.html#l00036">PolarHrData.java:36</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData_html_a5b15581bb14c1392b66d5cd649b2251b"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a5b15581bb14c1392b66d5cd649b2251b">polar.com.sdk.api.model.PolarHrData.PolarHrData</a></div><div class="ttdeci">PolarHrData(int hr, List< Integer > rrs, boolean contactStatus, boolean contactStatusSupported, boolean rrAvailable)</div><div class="ttdef"><b>Definition:</b> <a href="PolarHrData_8java_source.html#l00043">PolarHrData.java:43</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData_html_a413f78c6bfd3fd2a579a84ff760007ed"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarHrData.html#a413f78c6bfd3fd2a579a84ff760007ed">polar.com.sdk.api.model.PolarHrData.rrAvailable</a></div><div class="ttdeci">boolean rrAvailable</div><div class="ttdef"><b>Definition:</b> <a href="PolarHrData_8java_source.html#l00041">PolarHrData.java:41</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_5eb159725f84c66aafd839904a4acdd0.html">main</a></li><li class="navelem"><a class="el" href="dir_fd3f6763802dee1ad875f6c80eac0bda.html">java</a></li><li class="navelem"><a class="el" href="dir_57f0ca8c420846e7d0426b6adce5936e.html">polar</a></li><li class="navelem"><a class="el" href="dir_1ff65af9a4dc657909b37e4b73346a08.html">com</a></li><li class="navelem"><a class="el" href="dir_fac840b1a3a552bfa17e24a7f5dc9555.html">sdk</a></li><li class="navelem"><a class="el" href="dir_b936df1acb3136008a04b697d550213c.html">api</a></li><li class="navelem"><a class="el" href="dir_7d958c2b373af03670a0a28f80d9d1e8.html">model</a></li><li class="navelem"><a class="el" href="PolarHrData_8java.html">PolarHrData.java</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>