1 |
package dk.thoerup.traininfo; |
package dk.thoerup.traininfo; |
2 |
|
|
3 |
public class StationBean { |
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; |
private String name; |
14 |
private double longitude; |
private double longitude; |
15 |
private double latitude; |
private double latitude; |
16 |
private int distance; |
private int distance; |
17 |
private String address; |
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) { |
public StationBean(String name, double latitude, double longitude, int distance, String address) { |
24 |
this.name = name; |
this.name = name; |
44 |
public String getAddress() { |
public String getAddress() { |
45 |
return address; |
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 |
} |
} |