Line | Hits | Source |
---|---|---|
1 | package net.sf.tourviewer.lib.ciclo; | |
2 | ||
3 | ||
4 | ||
5 | public class CM414MInfo3Block extends AbstractBlock { | |
6 | ||
7 | private int totalDistance1; | |
8 | private int totalDistance2; | |
9 | private long totalTravelTime1; | |
10 | private long totalTravelTime2; | |
11 | ||
12 | public CM414MInfo3Block(int[] data) { | |
13 | 22 | super(data); |
14 | ||
15 | 22 | this.totalDistance1 = getHex(2); |
16 | 22 | this.totalDistance2 = getHex(3); |
17 | 22 | this.totalTravelTime1 = getHexH(4) * 60 + getHexH(4) + getHexH(6) * 3600 + getHexL(6) * 3600 * 100; |
18 | 22 | this.totalTravelTime2 = getHexH(5) * 60 + getHexH(5) + getHexH(7) * 3600 + getHexL(7) * 3600 * 100; |
19 | 22 | } |
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. |