Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/backend/ArrivalsFetcher.java
Show All 14 Lines | BusTO (backend components) | ||||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | ||||
along with this program. If not, see <http://www.gnu.org/licenses/>. | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
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.ArrayList; | |||||
import java.util.List; | |||||
import java.util.concurrent.atomic.AtomicReference; | import java.util.concurrent.atomic.AtomicReference; | ||||
public interface ArrivalsFetcher extends Fetcher { | public interface ArrivalsFetcher extends Fetcher { | ||||
// /** | // /** | ||||
// * 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 routeID route ID, in normalized form. | // * @param routeID route 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 it.reyboz.bustorino.backend.Fetcher.result | // * @see it.reyboz.bustorino.backend.Fetcher.result | ||||
// * @see FiveTNormalizer | // * @see FiveTNormalizer | ||||
// */ | // */ | ||||
// Palina ReadArrivalTimesRoute(String stopID, String routeID, AtomicReference<Fetcher.result> res); | // 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 it.reyboz.bustorino.backend.Fetcher.result | * @see Result | ||||
* @see FiveTNormalizer | * @see FiveTNormalizer | ||||
*/ | */ | ||||
Palina ReadArrivalTimesAll(String stopID, AtomicReference<result> res); | Palina ReadArrivalTimesAll(String stopID, AtomicReference<Result> res); | ||||
/** | /** | ||||
* Get the determined source for the Fetcher | * Get the determined source for the Fetcher | ||||
* @return the source of the arrival times | * @return the source of the arrival times | ||||
*/ | */ | ||||
Passaggio.Source getSourceForFetcher(); | Passaggio.Source getSourceForFetcher(); | ||||
} | } |
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