View Javadoc

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 HAC4Info1Block extends AbstractBlock {
9   
10  	private int deviceSignature;
11  	private int wheelPerimeter;
12  	private int weight;
13  	private int homeAltitude;
14  	private int pulse1Upper;
15  	private int pulse1Lower;
16  	private int pulse2Upper;
17  	private int pulse2Lower;
18  
19  	public HAC4Info1Block(int[] data) {
20  		super(data);
21  		
22  		this.deviceSignature = getHex(0);
23  		this.wheelPerimeter = getHex(1);
24  		this.weight = getHex(2);
25  		this.homeAltitude = getHex(3);
26  		this.pulse1Upper = getHex(4);
27  		this.pulse1Lower = getHex(5);
28  		this.pulse2Upper = getHex(6);
29  		this.pulse2Lower = getHex(7);
30  	}
31  	
32  	public String toString()
33  	{
34  		return getDataString();
35  	}
36  
37  	
38  	public int getDeviceSignature()
39  	{
40  		return deviceSignature;
41  	}
42  
43  	
44  	public int getHomeAltitude()
45  	{
46  		return homeAltitude;
47  	}
48  
49  	
50  	public int getPulse1Lower()
51  	{
52  		return pulse1Lower;
53  	}
54  
55  	
56  	public int getPulse1Upper()
57  	{
58  		return pulse1Upper;
59  	}
60  
61  	
62  	public int getPulse2Lower()
63  	{
64  		return pulse2Lower;
65  	}
66  
67  	
68  	public int getPulse2Upper()
69  	{
70  		return pulse2Upper;
71  	}
72  
73  	
74  	public int getWeight()
75  	{
76  		return weight;
77  	}
78  
79  	
80  	public int getWheelPerimeter()
81  	{
82  		return wheelPerimeter;
83  	}
84  	
85  }