Line | Hits | Source |
---|---|---|
1 | package net.sf.tourviewer.lib.ciclo; | |
2 | ||
3 | ||
4 | /** | |
5 | * The record at offset 645 containing information about the HAC4 settings. | |
6 | * @author Steffen Pingel | |
7 | */ | |
8 | public class HAC4Info1Block extends AbstractBlock { | |
9 | ||
10 | private int deviceSignature; | |
11 | private int wheelPerimeter; | |
12 | private int weight; | |
13 | private int homeAltitude; | |
14 | private int pulse1Upper; | |
15 | private int pulse1Lower; | |
16 | private int pulse2Upper; | |
17 | private int pulse2Lower; | |
18 | ||
19 | public HAC4Info1Block(int[] data) { | |
20 | 16 | super(data); |
21 | ||
22 | 16 | this.deviceSignature = getHex(0); |
23 | 16 | this.wheelPerimeter = getHex(1); |
24 | 16 | this.weight = getHex(2); |
25 | 16 | this.homeAltitude = getHex(3); |
26 | 16 | this.pulse1Upper = getHex(4); |
27 | 16 | this.pulse1Lower = getHex(5); |
28 | 16 | this.pulse2Upper = getHex(6); |
29 | 16 | this.pulse2Lower = getHex(7); |
30 | 16 | } |
31 | ||
32 | public String toString() | |
33 | { | |
34 | 0 | return getDataString(); |
35 | } | |
36 | ||
37 | ||
38 | public int getDeviceSignature() | |
39 | { | |
40 | 0 | return deviceSignature; |
41 | } | |
42 | ||
43 | ||
44 | public int getHomeAltitude() | |
45 | { | |
46 | 0 | return homeAltitude; |
47 | } | |
48 | ||
49 | ||
50 | public int getPulse1Lower() | |
51 | { | |
52 | 0 | return pulse1Lower; |
53 | } | |
54 | ||
55 | ||
56 | public int getPulse1Upper() | |
57 | { | |
58 | 0 | return pulse1Upper; |
59 | } | |
60 | ||
61 | ||
62 | public int getPulse2Lower() | |
63 | { | |
64 | 0 | return pulse2Lower; |
65 | } | |
66 | ||
67 | ||
68 | public int getPulse2Upper() | |
69 | { | |
70 | 0 | return pulse2Upper; |
71 | } | |
72 | ||
73 | ||
74 | public int getWeight() | |
75 | { | |
76 | 0 | return weight; |
77 | } | |
78 | ||
79 | ||
80 | public int getWheelPerimeter() | |
81 | { | |
82 | 0 | return wheelPerimeter; |
83 | } | |
84 | ||
85 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |