| Line | Hits | Source |
|---|---|---|
| 1 | package net.sf.tourviewer; | |
| 2 | ||
| 3 | import java.util.Date; | |
| 4 | ||
| 5 | public class TourRecord { | |
| 6 | ||
| 7 | private Date time; | |
| 8 | private long distance; | |
| 9 | private int altitude; | |
| 10 | private int pulse; | |
| 11 | private int cadence; | |
| 12 | private int power; | |
| 13 | private int temperature; | |
| 14 | private TourRecord previous; | |
| 15 | private TourRecord next; | |
| 16 | ||
| 17 | 0 | public TourRecord() |
| 18 | { | |
| 19 | ||
| 20 | 0 | } |
| 21 | ||
| 22 | public String toString() | |
| 23 | { | |
| 24 | 0 | return getClass().getName() + String.format("[time=%tF %tT,distance=%d,altitude=%d,pulse=%d,cadence=%d,temperature=%d]", |
| 25 | 0 | time, time, distance, altitude, pulse, cadence, temperature); |
| 26 | } | |
| 27 | ||
| 28 | public int getAltitude() | |
| 29 | { | |
| 30 | 0 | return altitude; |
| 31 | } | |
| 32 | ||
| 33 | public int getCadence() | |
| 34 | { | |
| 35 | 0 | return cadence; |
| 36 | } | |
| 37 | ||
| 38 | public long getDistance() | |
| 39 | { | |
| 40 | 0 | return distance; |
| 41 | } | |
| 42 | ||
| 43 | public TourRecord getNext() | |
| 44 | { | |
| 45 | 0 | return next; |
| 46 | } | |
| 47 | ||
| 48 | public int getPower() | |
| 49 | { | |
| 50 | 0 | return power; |
| 51 | } | |
| 52 | ||
| 53 | public TourRecord getPrevious() | |
| 54 | { | |
| 55 | 0 | return previous; |
| 56 | } | |
| 57 | ||
| 58 | public int getPulse() | |
| 59 | { | |
| 60 | 0 | return pulse; |
| 61 | } | |
| 62 | ||
| 63 | public Date getTime() | |
| 64 | { | |
| 65 | 0 | return time; |
| 66 | } | |
| 67 | ||
| 68 | public void setAltitude(int altitude) | |
| 69 | { | |
| 70 | 0 | this.altitude = altitude; |
| 71 | 0 | } |
| 72 | ||
| 73 | public void setCadence(int cadence) | |
| 74 | { | |
| 75 | 0 | this.cadence = cadence; |
| 76 | 0 | } |
| 77 | ||
| 78 | public void setDistance(long distance) | |
| 79 | { | |
| 80 | 0 | this.distance = distance; |
| 81 | 0 | } |
| 82 | ||
| 83 | public void setNext(TourRecord next) | |
| 84 | { | |
| 85 | 0 | this.next = next; |
| 86 | 0 | } |
| 87 | ||
| 88 | public void setPower(int power) | |
| 89 | { | |
| 90 | 0 | this.power = power; |
| 91 | 0 | } |
| 92 | ||
| 93 | public void setPrevious(TourRecord previous) | |
| 94 | { | |
| 95 | 0 | this.previous = previous; |
| 96 | 0 | } |
| 97 | ||
| 98 | public void setPulse(int pulse) | |
| 99 | { | |
| 100 | 0 | this.pulse = pulse; |
| 101 | 0 | } |
| 102 | ||
| 103 | public void setTime(Date time) | |
| 104 | { | |
| 105 | 0 | this.time = time; |
| 106 | 0 | } |
| 107 | ||
| 108 | ||
| 109 | public int getTemperature() | |
| 110 | { | |
| 111 | 0 | return temperature; |
| 112 | } | |
| 113 | ||
| 114 | ||
| 115 | public void setTemperature(int temperature) | |
| 116 | { | |
| 117 | 0 | this.temperature = temperature; |
| 118 | 0 | } |
| 119 | ||
| 120 | } |
|
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |