71 |
|
|
72 |
if (station.getRegional() != null) { |
if (station.getRegional() != null) { |
73 |
DepartureBean tempBean = lookupDepartures(station.getRegional(), TrainType.REGIONAL, arrival); |
DepartureBean tempBean = lookupDepartures(station.getRegional(), TrainType.REGIONAL, arrival); |
74 |
departureBean.departureEntries.addAll( tempBean.departureEntries ); |
departureBean.entries.addAll( tempBean.entries ); |
75 |
departureBean.notifications.addAll(tempBean.notifications); |
departureBean.notifications.addAll(tempBean.notifications); |
76 |
} |
} |
77 |
|
|
78 |
if (station.getStrain() != null) { |
if (station.getStrain() != null) { |
79 |
DepartureBean tempBean = lookupDepartures(station.getStrain(), TrainType.STOG, arrival); |
DepartureBean tempBean = lookupDepartures(station.getStrain(), TrainType.STOG, arrival); |
80 |
departureBean.departureEntries.addAll( tempBean.departureEntries ); |
departureBean.entries.addAll( tempBean.entries ); |
81 |
departureBean.notifications.addAll(tempBean.notifications); |
departureBean.notifications.addAll(tempBean.notifications); |
82 |
} |
} |
83 |
|
|
84 |
if (departureBean.departureEntries.size() == 0) { |
if (departureBean.entries.size() == 0) { |
85 |
logger.info("No departures found for station " + stationID); |
logger.info("No departures found for station " + stationID); |
86 |
} |
} |
87 |
|
|
88 |
Collections.sort( departureBean.departureEntries ); |
Collections.sort( departureBean.entries ); |
89 |
|
|
90 |
|
|
91 |
return departureBean; |
return departureBean; |
195 |
|
|
196 |
departure.setType(typeString); |
departure.setType(typeString); |
197 |
|
|
198 |
departureBean.departureEntries.add( departure ); |
departureBean.entries.add( departure ); |
199 |
} |
} |
200 |
} |
} |
201 |
} else { |
} else { |
305 |
|
|
306 |
departure.setType(type); |
departure.setType(type); |
307 |
|
|
308 |
departureBean.departureEntries.add(departure); |
departureBean.entries.add(departure); |
309 |
|
|
310 |
|
|
311 |
} |
} |