Coverage details for net.sf.tourviewer.ciclo.BBRecord

LineHitsSource
1 package net.sf.tourviewer.ciclo;
2  
3  
4  
5 public class BBRecord extends AbstractRecord {
6  
7     DataRecord[] dataRecords;
8     private int temperature;
9     private int marker;
10     private int cadence;
11     
12     public BBRecord(int[] data) {
130        super(data);
14         
150        this.temperature = getHexH(0);
160        this.marker = getHexH(1);
170        this.cadence = getHexL(1);
18         
190        dataRecords = new DataRecord[6];
200        for (int i = 0; i < dataRecords.length; i++) {
210            dataRecords[i] = new DataRecord(getHex(i + 2));
22         }
230    }
24     
25     @Override
26     public String toString()
27     {
280        StringBuffer sb = new StringBuffer();
290        sb.append(getDataString());
300        sb.append(String.format(" [(BB) Temperature=%d,Marker=%d,Cadence=%d,",
310                temperature, marker, cadence));
320        for (int i = 0; i < dataRecords.length; i++) {
330            sb.append(dataRecords[i].toString());
34         }
350        sb.append("]");
360        return sb.toString();
37     }
38     
39     public int getCadence()
40     {
410        return cadence;
42     }
43     
44     public DataRecord[] getDataRecords()
45     {
460        return dataRecords;
47     }
48     
49     public int getMarker()
50     {
510        return marker;
52     }
53  
54     public int getTemperature()
55     {
560        return temperature;
57     }
58     
59 }

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.