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

LineHitsSource
1 package net.sf.tourviewer.lib.ciclo;
2  
3  
4 /**
5  * The record at offset 645 containing information about the HAC4 settings.
6  * @author Steffen Pingel
7  */
8 public class CM414MInfo1Block extends AbstractBlock {
9  
10     private int deviceSignature;
11     private int wheelPerimeter1;
12     private int wheelPerimeter2;
13     private int homeAltitude;
14     private int weight;
15     private int month;
16     private int day;
17     private int year;
18  
19     public CM414MInfo1Block(int[] data) {
2022        super(data);
21         
2222        this.deviceSignature = getHex(0);
2322        this.wheelPerimeter1 = getHex(1);
2422        this.wheelPerimeter2 = getHex(2);
25  
2622        this.homeAltitude = getHex(4);
2722        this.weight = getHex(5);
2822        this.month = getDecH(6);
2922        this.day = getDecL(6);
3022        this.year = getDec(7);
3122    }
32     
33     public String toString()
34     {
350        return getDataString();
36     }
37  
38     
39     public int getDay()
40     {
410        return day;
42     }
43  
44     
45     public int getDeviceSignature()
46     {
470        return deviceSignature;
48     }
49  
50     
51     public int getHomeAltitude()
52     {
530        return homeAltitude;
54     }
55  
56     
57     public int getMonth()
58     {
590        return month;
60     }
61  
62     
63     public int getWeight()
64     {
650        return weight;
66     }
67  
68     
69     public int getWheelPerimeter1()
70     {
710        return wheelPerimeter1;
72     }
73  
74     
75     public int getWheelPerimeter2()
76     {
770        return wheelPerimeter2;
78     }
79  
80     
81     public int getYear()
82     {
830        return year;
84     }
85     
86 }

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.