1 package net.sf.tourviewer.lib;
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 public TourRecord()
18 {
19
20 }
21
22 public String toString()
23 {
24 return getClass().getName() + String.format("[time=%tF %tT,distance=%d,altitude=%d,pulse=%d,cadence=%d,temperature=%d]",
25 time, time, distance, altitude, pulse, cadence, temperature);
26 }
27
28 public int getAltitude()
29 {
30 return altitude;
31 }
32
33 public int getCadence()
34 {
35 return cadence;
36 }
37
38 public long getDistance()
39 {
40 return distance;
41 }
42
43 public TourRecord getNext()
44 {
45 return next;
46 }
47
48 public int getPower()
49 {
50 return power;
51 }
52
53 public TourRecord getPrevious()
54 {
55 return previous;
56 }
57
58 public int getPulse()
59 {
60 return pulse;
61 }
62
63 public Date getTime()
64 {
65 return time;
66 }
67
68 public void setAltitude(int altitude)
69 {
70 this.altitude = altitude;
71 }
72
73 public void setCadence(int cadence)
74 {
75 this.cadence = cadence;
76 }
77
78 public void setDistance(long distance)
79 {
80 this.distance = distance;
81 }
82
83 public void setNext(TourRecord next)
84 {
85 this.next = next;
86 }
87
88 public void setPower(int power)
89 {
90 this.power = power;
91 }
92
93 public void setPrevious(TourRecord previous)
94 {
95 this.previous = previous;
96 }
97
98 public void setPulse(int pulse)
99 {
100 this.pulse = pulse;
101 }
102
103 public void setTime(Date time)
104 {
105 this.time = time;
106 }
107
108
109 public int getTemperature()
110 {
111 return temperature;
112 }
113
114
115 public void setTemperature(int temperature)
116 {
117 this.temperature = temperature;
118 }
119
120 }