Coverage details for net.sf.tourviewer.lib.ciclo.HAC4Info3Block

LineHitsSource
1 package net.sf.tourviewer.lib.ciclo;
2  
3  
4  
5 public class HAC4Info3Block extends AbstractBlock {
6  
7     private int totalAltitudeDown;
8     private int totalAltitudeUp;
9     private int maxAltitiude;
10     private long totalTravelTime;
11     private int lastCCOffset;
12     private int lastDDOffset;
13     private int lastCompareOffset;
14  
15     public HAC4Info3Block(int[] data) {
1616        super(data);
17         
1816        this.totalAltitudeDown = getHex(0);
1916        this.totalAltitudeUp = getHex(1);
2016        this.maxAltitiude = getHex(2);
2116        this.totalTravelTime = getHexH(3) * 3600 + getHexL(3) * 3600 * 100
22             + getHexH(4) + getHexL(4) * 60;
2316        this.lastCCOffset = getHex(5);
2416        this.lastDDOffset = getHex(6);
2516        this.lastCompareOffset = getHex(7);
2616    }
27     
28     public String toString()
29     {
300        return getDataString();
31     }
32  
33     
34     public int getLastCCOffset()
35     {
360        return lastCCOffset;
37     }
38  
39     
40     public int getLastCompareOffset()
41     {
420        return lastCompareOffset;
43     }
44  
45     
46     public int getLastDDOffset()
47     {
480        return lastDDOffset;
49     }
50  
51     
52     public int getMaxAltitiude()
53     {
540        return maxAltitiude;
55     }
56  
57     
58     public int getTotalAltitudeDown()
59     {
600        return totalAltitudeDown;
61     }
62  
63     
64     public int getTotalAltitudeUp()
65     {
660        return totalAltitudeUp;
67     }
68  
69     
70     public long getTotalTravelTime()
71     {
720        return totalTravelTime;
73     }
74     
75 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.