1 |
package dk.thoerup.traininfo;
|
2 |
|
3 |
import java.io.Serializable;
|
4 |
|
5 |
|
6 |
public class StationBean implements Serializable{
|
7 |
|
8 |
private static final long serialVersionUID = 1L;
|
9 |
|
10 |
private int id;
|
11 |
|
12 |
|
13 |
private String name;
|
14 |
private double longitude;
|
15 |
private double latitude;
|
16 |
private int distance;
|
17 |
private String address;
|
18 |
private String code;
|
19 |
|
20 |
public StationBean() {
|
21 |
}
|
22 |
|
23 |
public StationBean(String name, double latitude, double longitude, int distance, String address) {
|
24 |
this.name = name;
|
25 |
this.longitude = longitude;
|
26 |
this.latitude = latitude;
|
27 |
this.distance = distance;
|
28 |
this.address = address;
|
29 |
}
|
30 |
|
31 |
public String getName() {
|
32 |
return name;
|
33 |
}
|
34 |
public double getLongitude() {
|
35 |
return longitude;
|
36 |
}
|
37 |
public double getLatitude() {
|
38 |
return latitude;
|
39 |
}
|
40 |
public int getDistance() {
|
41 |
return distance;
|
42 |
}
|
43 |
|
44 |
public String getAddress() {
|
45 |
return address;
|
46 |
}
|
47 |
|
48 |
public String getCode() {
|
49 |
return code;
|
50 |
}
|
51 |
|
52 |
|
53 |
public void setCode(String code) {
|
54 |
this.code = code;
|
55 |
}
|
56 |
|
57 |
public void setName(String name) {
|
58 |
this.name = name;
|
59 |
}
|
60 |
|
61 |
public void setLongitude(double longitude) {
|
62 |
this.longitude = longitude;
|
63 |
}
|
64 |
|
65 |
public void setLatitude(double latitude) {
|
66 |
this.latitude = latitude;
|
67 |
}
|
68 |
|
69 |
public void setDistance(int distance) {
|
70 |
this.distance = distance;
|
71 |
}
|
72 |
|
73 |
public void setAddress(String address) {
|
74 |
this.address = address;
|
75 |
}
|
76 |
|
77 |
public int getId() {
|
78 |
return id;
|
79 |
}
|
80 |
|
81 |
public void setId(int id) {
|
82 |
this.id = id;
|
83 |
}
|
84 |
|
85 |
|
86 |
}
|