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

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/provider/DebugProvider.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 699 by torben, Mon May 3 11:19:18 2010 UTC revision 835 by torben, Fri Jun 11 14:05:24 2010 UTC
# Line 12  import dk.thoerup.traininfo.TimetableBea Line 12  import dk.thoerup.traininfo.TimetableBea
12  public class DebugProvider implements DepartureProvider, StationProvider, TimetableProvider {  public class DebugProvider implements DepartureProvider, StationProvider, TimetableProvider {
13    
14          @Override          @Override
15          public boolean lookupDepartures(int station) {          public boolean lookupDepartures(int station, boolean arrival) {
16                  return true;                  return true;
17          }                }      
18                    
19          @Override          @Override
20          public List<DepartureBean> getDepartures(int station) {          public List<DepartureBean> getDepartures(int station, boolean arrival) {
21                  List<DepartureBean> list = new ArrayList<DepartureBean>();                  List<DepartureBean> list = new ArrayList<DepartureBean>();
22                                    
23                  DepartureBean departure = new DepartureBean();                  DepartureBean departure = new DepartureBean();
# Line 64  public class DebugProvider implements De Line 64  public class DebugProvider implements De
64                  station.setId(1);                  station.setId(1);
65                  station.setLatitude(56.0);                  station.setLatitude(56.0);
66                  station.setLongitude(10.0);                              station.setLongitude(10.0);            
67                    station.setRegional(true);
68                  stations.add(station);                  stations.add(station);
69                                    
70                  station = new StationBean();                  station = new StationBean();
# Line 71  public class DebugProvider implements De Line 72  public class DebugProvider implements De
72                  station.setDistance(5300);                                station.setDistance(5300);              
73                  station.setId(2);                  station.setId(2);
74                  station.setLatitude(58.0);                  station.setLatitude(58.0);
75                  station.setLongitude(10.0);                              station.setLongitude(10.0);
76                    station.setRegional(true);
77                  stations.add(station);                  stations.add(station);
78                                    
79                  station = new StationBean();                  station = new StationBean();
# Line 79  public class DebugProvider implements De Line 81  public class DebugProvider implements De
81                  station.setDistance(15600);                              station.setDistance(15600);            
82                  station.setId(3);                  station.setId(3);
83                  station.setLatitude(52.0);                  station.setLatitude(52.0);
84                  station.setLongitude(11.0);                              station.setLongitude(11.0);
85                    station.setRegional(true);
86                  stations.add(station);                  stations.add(station);
87                                    
88                  return stations;                  return stations;

Legend:
Removed from v.699  
changed lines
  Added in v.835

  ViewVC Help
Powered by ViewVC 1.1.20