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