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 super(data);
14
15 this.totalDistance1 = getHex(2);
16 this.totalDistance2 = getHex(3);
17 this.totalTravelTime1 = getHexH(4) * 60 + getHexH(4) + getHexH(6) * 3600 + getHexL(6) * 3600 * 100;
18 this.totalTravelTime2 = getHexH(5) * 60 + getHexH(5) + getHexH(7) * 3600 + getHexL(7) * 3600 * 100;
19 }
20
21 public String toString()
22 {
23 return getDataString();
24 }
25
26
27 public int getTotalDistance1()
28 {
29 return totalDistance1;
30 }
31
32
33 public int getTotalDistance2()
34 {
35 return totalDistance2;
36 }
37
38
39 public long getTotalTravelTime1()
40 {
41 return totalTravelTime1;
42 }
43
44
45 public long getTotalTravelTime2()
46 {
47 return totalTravelTime2;
48 }
49
50 }