Line | Hits | Source |
---|---|---|
1 | package net.sf.tourviewer.lib.ciclo; | |
2 | ||
3 | ||
4 | ||
5 | public class BBBlock extends AbstractBlock { | |
6 | ||
7 | DataBlock[] dataRecords; | |
8 | private int temperature; | |
9 | private int marker; | |
10 | private int cadence; | |
11 | ||
12 | public BBBlock(int[] data) { | |
13 | 20276 | super(data); |
14 | ||
15 | 20276 | this.temperature = getHexH(0); |
16 | 20276 | this.marker = getHexH(1); |
17 | 20276 | this.cadence = getHexL(1); |
18 | ||
19 | 20276 | dataRecords = new DataBlock[6]; |
20 | 141932 | for (int i = 0; i < dataRecords.length; i++) { |
21 | 121656 | dataRecords[i] = new DataBlock(getHex(i + 2)); |
22 | } | |
23 | 20276 | } |
24 | ||
25 | @Override | |
26 | public String toString() | |
27 | { | |
28 | 0 | StringBuffer sb = new StringBuffer(); |
29 | 0 | sb.append(getDataString()); |
30 | 0 | sb.append(String.format(" [(BB) Temperature=%d,Marker=%d,Cadence=%d,", |
31 | temperature, marker, cadence)); | |
32 | 0 | for (int i = 0; i < dataRecords.length; i++) { |
33 | 0 | sb.append(dataRecords[i].toString()); |
34 | } | |
35 | 0 | sb.append("]"); |
36 | 0 | return sb.toString(); |
37 | } | |
38 | ||
39 | public int getCadence() | |
40 | { | |
41 | 0 | return cadence; |
42 | } | |
43 | ||
44 | public DataBlock[] getDataRecords() | |
45 | { | |
46 | 0 | return dataRecords; |
47 | } | |
48 | ||
49 | public int getMarker() | |
50 | { | |
51 | 0 | return marker; |
52 | } | |
53 | ||
54 | public int getTemperature() | |
55 | { | |
56 | 0 | return temperature; |
57 | } | |
58 | ||
59 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |