Line | Hits | Source |
---|---|---|
1 | package net.sf.tourviewer.ciclo; | |
2 | ||
3 | ||
4 | ||
5 | public class CM414MInfo3Record extends AbstractRecord { | |
6 | ||
7 | private int totalDistance1; | |
8 | private int totalDistance2; | |
9 | private long totalTravelTime1; | |
10 | private long totalTravelTime2; | |
11 | ||
12 | public CM414MInfo3Record(int[] data) { | |
13 | 0 | super(data); |
14 | ||
15 | 0 | this.totalDistance1 = getHex(2); |
16 | 0 | this.totalDistance2 = getHex(3); |
17 | 0 | this.totalTravelTime1 = getHexH(4) * 60 + getHexH(4) + getHexH(6) * 3600 + getHexL(6) * 3600 * 100; |
18 | 0 | this.totalTravelTime2 = getHexH(5) * 60 + getHexH(5) + getHexH(7) * 3600 + getHexL(7) * 3600 * 100; |
19 | 0 | } |
20 | ||
21 | public String toString() | |
22 | { | |
23 | 0 | return getDataString(); |
24 | } | |
25 | ||
26 | ||
27 | public int getTotalDistance1() | |
28 | { | |
29 | 0 | return totalDistance1; |
30 | } | |
31 | ||
32 | ||
33 | public int getTotalDistance2() | |
34 | { | |
35 | 0 | return totalDistance2; |
36 | } | |
37 | ||
38 | ||
39 | public long getTotalTravelTime1() | |
40 | { | |
41 | 0 | return totalTravelTime1; |
42 | } | |
43 | ||
44 | ||
45 | public long getTotalTravelTime2() | |
46 | { | |
47 | 0 | return totalTravelTime2; |
48 | } | |
49 | ||
50 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |