Coverage details for net.sf.tourviewer.TourRecord

LineHitsSource
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  
170    public TourRecord()
18     {
19         
200    }
21     
22     public String toString()
23     {
240        return getClass().getName() + String.format("[time=%tF %tT,distance=%d,altitude=%d,pulse=%d,cadence=%d,temperature=%d]",
250                time, time, distance, altitude, pulse, cadence, temperature);
26     }
27  
28     public int getAltitude()
29     {
300        return altitude;
31     }
32     
33     public int getCadence()
34     {
350        return cadence;
36     }
37     
38     public long getDistance()
39     {
400        return distance;
41     }
42     
43     public TourRecord getNext()
44     {
450        return next;
46     }
47     
48     public int getPower()
49     {
500        return power;
51     }
52     
53     public TourRecord getPrevious()
54     {
550        return previous;
56     }
57     
58     public int getPulse()
59     {
600        return pulse;
61     }
62     
63     public Date getTime()
64     {
650        return time;
66     }
67     
68     public void setAltitude(int altitude)
69     {
700        this.altitude = altitude;
710    }
72     
73     public void setCadence(int cadence)
74     {
750        this.cadence = cadence;
760    }
77     
78     public void setDistance(long distance)
79     {
800        this.distance = distance;
810    }
82     
83     public void setNext(TourRecord next)
84     {
850        this.next = next;
860    }
87     
88     public void setPower(int power)
89     {
900        this.power = power;
910    }
92     
93     public void setPrevious(TourRecord previous)
94     {
950        this.previous = previous;
960    }
97     
98     public void setPulse(int pulse)
99     {
1000        this.pulse = pulse;
1010    }
102     
103     public void setTime(Date time)
104     {
1050        this.time = time;
1060    }
107  
108     
109     public int getTemperature()
110     {
1110        return temperature;
112     }
113  
114     
115     public void setTemperature(int temperature)
116     {
1170        this.temperature = temperature;
1180    }
119     
120 }

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.