| Line | Hits | Source |
|---|---|---|
| 1 | package net.sf.tourviewer.ciclo; | |
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | public class HAC4Info2Record extends AbstractRecord { | |
| 6 | ||
| 7 | private Object countDown1; | |
| 8 | private Object countDown2; | |
| 9 | private int altitudeErrorCorrection; | |
| 10 | private int totalDistance; | |
| 11 | private int nextFreeOffset; | |
| 12 | private int year; | |
| 13 | private int month; | |
| 14 | private int day; | |
| 15 | ||
| 16 | public HAC4Info2Record(int[] data) { | |
| 17 | 0 | super(data); |
| 18 | ||
| 19 | 0 | this.countDown1 = getDecH(0) * 60 + getDecL(0); |
| 20 | 0 | this.countDown2 = getDecH(1) * 60 + getDecL(1); |
| 21 | 0 | this.altitudeErrorCorrection = getHex(2); |
| 22 | 0 | this.totalDistance = getHex(3) << 16 + getHex(4); |
| 23 | 0 | this.nextFreeOffset = getHex(5); |
| 24 | 0 | this.year = getDec(6); |
| 25 | 0 | this.month = getDecH(7); |
| 26 | 0 | this.day = getDecL(7); |
| 27 | 0 | } |
| 28 | ||
| 29 | public String toString() | |
| 30 | { | |
| 31 | 0 | return getDataString(); |
| 32 | } | |
| 33 | ||
| 34 | ||
| 35 | public int getAltitudeErrorCorrection() | |
| 36 | { | |
| 37 | 0 | return altitudeErrorCorrection; |
| 38 | } | |
| 39 | ||
| 40 | ||
| 41 | public Object getCountDown1() | |
| 42 | { | |
| 43 | 0 | return countDown1; |
| 44 | } | |
| 45 | ||
| 46 | ||
| 47 | public Object getCountDown2() | |
| 48 | { | |
| 49 | 0 | return countDown2; |
| 50 | } | |
| 51 | ||
| 52 | ||
| 53 | public int getDay() | |
| 54 | { | |
| 55 | 0 | return day; |
| 56 | } | |
| 57 | ||
| 58 | ||
| 59 | public int getMonth() | |
| 60 | { | |
| 61 | 0 | return month; |
| 62 | } | |
| 63 | ||
| 64 | ||
| 65 | public int getNextFreeOffset() | |
| 66 | { | |
| 67 | 0 | return nextFreeOffset; |
| 68 | } | |
| 69 | ||
| 70 | ||
| 71 | public int getTotalDistance() | |
| 72 | { | |
| 73 | 0 | return totalDistance; |
| 74 | } | |
| 75 | ||
| 76 | ||
| 77 | public int getYear() | |
| 78 | { | |
| 79 | 0 | return year; |
| 80 | } | |
| 81 | ||
| 82 | ||
| 83 | public void setAltitudeErrorCorrection(int altitudeErrorCorrection) | |
| 84 | { | |
| 85 | 0 | this.altitudeErrorCorrection = altitudeErrorCorrection; |
| 86 | 0 | } |
| 87 | ||
| 88 | ||
| 89 | public void setCountDown1(Object countDown1) | |
| 90 | { | |
| 91 | 0 | this.countDown1 = countDown1; |
| 92 | 0 | } |
| 93 | ||
| 94 | ||
| 95 | public void setCountDown2(Object countDown2) | |
| 96 | { | |
| 97 | 0 | this.countDown2 = countDown2; |
| 98 | 0 | } |
| 99 | ||
| 100 | ||
| 101 | public void setDay(int day) | |
| 102 | { | |
| 103 | 0 | this.day = day; |
| 104 | 0 | } |
| 105 | ||
| 106 | ||
| 107 | public void setMonth(int month) | |
| 108 | { | |
| 109 | 0 | this.month = month; |
| 110 | 0 | } |
| 111 | ||
| 112 | ||
| 113 | public void setNextFreeOffset(int nextFreeOffset) | |
| 114 | { | |
| 115 | 0 | this.nextFreeOffset = nextFreeOffset; |
| 116 | 0 | } |
| 117 | ||
| 118 | ||
| 119 | public void setTotalDistance(int totalDistance) | |
| 120 | { | |
| 121 | 0 | this.totalDistance = totalDistance; |
| 122 | 0 | } |
| 123 | ||
| 124 | ||
| 125 | public void setYear(int year) | |
| 126 | { | |
| 127 | 0 | this.year = year; |
| 128 | 0 | } |
| 129 | ||
| 130 | } |
|
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |