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

LineHitsSource
1 package net.sf.tourviewer.lib.ciclo;
2  
3  
4  
5 public class CCBlock extends AbstractBlock {
6  
7     private int temperature;
8     private int endMarker;
9     private int cadence;
10     private DataBlock[] dataRecords;
11  
12     public CCBlock(int[] data) {
13566        super(data);
14         
15566        this.temperature = getHexH(0);
16566        this.endMarker = getHexH(1);
17566        this.cadence = getHexL(2);
18         
19566        dataRecords = new DataBlock[6];
203962        for (int i = 0; i < dataRecords.length; i++) {
213396            dataRecords[i] = new DataBlock(getHex(i + 2));
22         }
23566    }
24     
25     @Override
26     public String toString()
27     {
280        StringBuffer sb = new StringBuffer();
290        sb.append(getDataString());
300        sb.append(String.format(" [(CC) Temperature=%d,Marker=%d,Cadence=%d,",
31                 temperature, endMarker, 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     
40     public int getCadence()
41     {
420        return cadence;
43     }
44  
45     
46     public DataBlock[] getDataRecords()
47     {
480        return dataRecords;
49     }
50  
51     
52     public int getEndMarker()
53     {
540        return endMarker;
55     }
56  
57     
58     public int getTemperature()
59     {
600        return temperature;
61     }
62     
63 }

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.