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 |
|
|
19 |
|
private boolean isRegional; |
20 |
|
private boolean isSTrain; |
21 |
|
private boolean isMetro; |
22 |
|
|
23 |
|
public StationBean() { |
24 |
|
} |
25 |
|
|
26 |
public StationBean(String name, double latitude, double longitude, int distance, String address) { |
public StationBean(String name, double latitude, double longitude, int distance, String address) { |
27 |
this.name = name; |
this.name = name; |
47 |
public String getAddress() { |
public String getAddress() { |
48 |
return address; |
return address; |
49 |
} |
} |
50 |
|
|
51 |
|
|
52 |
|
public void setName(String name) { |
53 |
|
this.name = name; |
54 |
|
} |
55 |
|
|
56 |
|
public void setLongitude(double longitude) { |
57 |
|
this.longitude = longitude; |
58 |
|
} |
59 |
|
|
60 |
|
public void setLatitude(double latitude) { |
61 |
|
this.latitude = latitude; |
62 |
|
} |
63 |
|
|
64 |
|
public void setDistance(int distance) { |
65 |
|
this.distance = distance; |
66 |
|
} |
67 |
|
|
68 |
|
public void setAddress(String address) { |
69 |
|
this.address = address; |
70 |
|
} |
71 |
|
|
72 |
|
public int getId() { |
73 |
|
return id; |
74 |
|
} |
75 |
|
|
76 |
|
public void setId(int id) { |
77 |
|
this.id = id; |
78 |
|
} |
79 |
|
|
80 |
|
public boolean isRegional() { |
81 |
|
return isRegional; |
82 |
|
} |
83 |
|
|
84 |
|
public void setRegional(boolean isRegional) { |
85 |
|
this.isRegional = isRegional; |
86 |
|
} |
87 |
|
|
88 |
|
public boolean isSTrain() { |
89 |
|
return isSTrain; |
90 |
|
} |
91 |
|
|
92 |
|
public void setSTrain(boolean isSTrain) { |
93 |
|
this.isSTrain = isSTrain; |
94 |
|
} |
95 |
|
|
96 |
|
public boolean isMetro() { |
97 |
|
return isMetro; |
98 |
|
} |
99 |
|
|
100 |
|
public void setMetro(boolean isMetro) { |
101 |
|
this.isMetro = isMetro; |
102 |
|
} |
103 |
|
|
104 |
|
|
105 |
} |
} |