/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/StationBean.java
ViewVC logotype

Annotation of /android/TrainInfo/src/dk/thoerup/traininfo/StationBean.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 310 - (hide annotations) (download)
Thu Sep 10 19:09:09 2009 UTC (14 years, 8 months ago) by torben
File size: 1506 byte(s)
Make code work with new servlets (and new db layout)
1 torben 237 package dk.thoerup.traininfo;
2    
3 torben 258 import java.io.Serializable;
4    
5 torben 294
6 torben 258 public class StationBean implements Serializable{
7    
8     private static final long serialVersionUID = 1L;
9    
10 torben 310 private int id;
11    
12    
13 torben 237 private String name;
14     private double longitude;
15     private double latitude;
16     private int distance;
17     private String address;
18 torben 294 private String code;
19 torben 237
20 torben 294 public StationBean() {
21     }
22 torben 237
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 torben 294
48     public String getCode() {
49     return code;
50     }
51 torben 237
52 torben 294
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 torben 310
77     public int getId() {
78     return id;
79     }
80    
81     public void setId(int id) {
82     this.id = id;
83     }
84 torben 237
85    
86     }

  ViewVC Help
Powered by ViewVC 1.1.20