Line | Hits | Source |
---|---|---|
1 | package net.sf.tourviewer.ciclo; | |
2 | ||
3 | ||
4 | /** | |
5 | * The record at offset 645 containing information about the HAC4 settings. | |
6 | * @author Steffen Pingel | |
7 | */ | |
8 | public class HAC4Info1Record extends AbstractRecord { | |
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 HAC4Info1Record(int[] data) { | |
20 | 0 | super(data); |
21 | ||
22 | 0 | this.deviceSignature = getHex(0); |
23 | 0 | this.wheelPerimeter = getHex(1); |
24 | 0 | this.weight = getHex(2); |
25 | 0 | this.homeAltitude = getHex(3); |
26 | 0 | this.pulse1Upper = getHex(4); |
27 | 0 | this.pulse1Lower = getHex(5); |
28 | 0 | this.pulse2Upper = getHex(6); |
29 | 0 | this.pulse2Lower = getHex(7); |
30 | 0 | } |
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. |