/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureFetcher.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureFetcher.java

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

revision 450 by torben, Fri Oct 9 08:52:37 2009 UTC revision 451 by torben, Tue Oct 20 10:32:19 2009 UTC
# Line 26  public class DepartureFetcher { Line 26  public class DepartureFetcher {
26                    
27                                    
28                    
29          public List<DepartureBean> cachedLookupDepartures(int stationID) throws Throwable {          public List<DepartureBean> cachedLookupDepartures(int stationID) throws Exception {
30    
31                  List<DepartureBean> list = cache.get(stationID);                  List<DepartureBean> list = cache.get(stationID);
32                                    
# Line 40  public class DepartureFetcher { Line 40  public class DepartureFetcher {
40          }          }
41                                    
42    
43          public List<DepartureBean> lookupDepartures(int stationID) throws Throwable {          public List<DepartureBean> lookupDepartures(int stationID) throws Exception {
44                  List<DepartureBean> departureList = new ArrayList<DepartureBean>();                  List<DepartureBean> departureList = new ArrayList<DepartureBean>();
45                                    
46                  Connection conn = null;                  Connection conn = null;
# Line 77  public class DepartureFetcher { Line 77  public class DepartureFetcher {
77                  return departureList;                  return departureList;
78          }          }
79                    
80          public List<DepartureBean> lookupDepartures(String stationcode, String type) throws Throwable {          public List<DepartureBean> lookupDepartures(String stationcode, String type) throws Exception {
81                                    
82                  List<DepartureBean> departureList = new ArrayList<DepartureBean>();                  List<DepartureBean> departureList = new ArrayList<DepartureBean>();
83                                    
# Line 189  public class DepartureFetcher { Line 189  public class DepartureFetcher {
189          }          }
190                    
191          //test          //test
192          public static void main(String args[]) throws Throwable {          public static void main(String args[]) throws Exception {
193                  DepartureFetcher f = new DepartureFetcher();                  DepartureFetcher f = new DepartureFetcher();
194                  List<DepartureBean> deps = f.lookupDepartures("AR", "FJRN");                  List<DepartureBean> deps = f.lookupDepartures("AR", "FJRN");
195                  for(DepartureBean d : deps) {                  for(DepartureBean d : deps) {

Legend:
Removed from v.450  
changed lines
  Added in v.451

  ViewVC Help
Powered by ViewVC 1.1.20