Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/backend/ArrivalsFetcher.java
| Show All 16 Lines | |||||
| */ | */ | ||||
| package it.reyboz.bustorino.backend; | package it.reyboz.bustorino.backend; | ||||
| // "arrivals" è più usato di "transit" o simili, e chi sono io per mettermi a dibattere con gli inglesi? | // "arrivals" è più usato di "transit" o simili, e chi sono io per mettermi a dibattere con gli inglesi? | ||||
| import java.util.concurrent.atomic.AtomicReference; | import java.util.concurrent.atomic.AtomicReference; | ||||
| /** | |||||
| * Fetcher interface to describe ways to get information on arrival times | |||||
| */ | |||||
| public interface ArrivalsFetcher extends Fetcher { | public interface ArrivalsFetcher extends Fetcher { | ||||
| // /** | |||||
| // * Reads arrival times from a (hopefully) real-time source, e.g. the GTT website. | |||||
| // * Don't call this in UI thread! | |||||
| // * | |||||
| // * @param stopID stop ID, in normalized form. | |||||
| // * @param routeID route ID, in normalized form. | |||||
| // * @param res result code (will be set by this method) | |||||
| // * @return arrival times | |||||
| // * @see it.reyboz.bustorino.backend.Fetcher.result | |||||
| // * @see FiveTNormalizer | |||||
| // */ | |||||
| // Palina ReadArrivalTimesRoute(String stopID, String routeID, AtomicReference<Fetcher.result> res); | |||||
| /** | /** | ||||
| * Reads arrival times from a (hopefully) real-time source, e.g. the GTT website. | * Reads arrival times from a (hopefully) real-time source, e.g. the GTT website. | ||||
| * Don't call this in UI thread! | * Don't call this in UI thread! | ||||
| * | * | ||||
| * @param stopID stop ID, in normalized form. | * @param stopID stop ID, in normalized form. | ||||
| * @param res result code (will be set by this method) | * @param res result code (will be set by this method) | ||||
| * @return arrival times | * @return arrival times | ||||
| * @see Result | * @see Result | ||||
| Show All 10 Lines | |||||
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register