org.onebusaway.federations.impl
public abstract class AbstractFederatedServiceCollectionWrapperImpl extends Object implements FederatedServiceCollection
FederatedServiceCollection
wrapper class that allows one to pass
calls from one collection instance to another.Constructor and Description |
---|
AbstractFederatedServiceCollectionWrapperImpl() |
Modifier and Type | Method and Description |
---|---|
Set<FederatedService> |
getAllServices() |
protected abstract FederatedServiceCollection |
getCollection()
Protected Methods
|
FederatedService |
getServiceForAgencyId(String agencyId) |
FederatedService |
getServiceForAgencyIds(Iterable<String> agencyIds) |
FederatedService |
getServiceForBounds(CoordinateBounds bounds) |
FederatedService |
getServiceForBounds(double lat1,
double lon1,
double lat2,
double lon2) |
FederatedService |
getServiceForLocation(double lat,
double lon) |
FederatedService |
getServiceForLocations(List<CoordinatePoint> points) |
public AbstractFederatedServiceCollectionWrapperImpl()
public Set<FederatedService> getAllServices()
getAllServices
in interface FederatedServiceCollection
public FederatedService getServiceForAgencyId(String agencyId) throws ServiceAreaServiceException
getServiceForAgencyId
in interface FederatedServiceCollection
ServiceAreaServiceException
public FederatedService getServiceForAgencyIds(Iterable<String> agencyIds) throws ServiceAreaServiceException
getServiceForAgencyIds
in interface FederatedServiceCollection
ServiceAreaServiceException
public FederatedService getServiceForBounds(CoordinateBounds bounds) throws ServiceAreaServiceException
getServiceForBounds
in interface FederatedServiceCollection
ServiceAreaServiceException
public FederatedService getServiceForBounds(double lat1, double lon1, double lat2, double lon2) throws ServiceAreaServiceException
getServiceForBounds
in interface FederatedServiceCollection
ServiceAreaServiceException
public FederatedService getServiceForLocation(double lat, double lon) throws ServiceAreaServiceException
getServiceForLocation
in interface FederatedServiceCollection
ServiceAreaServiceException
public FederatedService getServiceForLocations(List<CoordinatePoint> points) throws ServiceAreaServiceException
getServiceForLocations
in interface FederatedServiceCollection
ServiceAreaServiceException
protected abstract FederatedServiceCollection getCollection()
Copyright © 2014 OneBusAway. All Rights Reserved.