org.onebusaway.federations.impl
Class AbstractFederatedServiceCollectionWrapperImpl
java.lang.Object
org.onebusaway.federations.impl.AbstractFederatedServiceCollectionWrapperImpl
- All Implemented Interfaces:
- FederatedServiceCollection
- Direct Known Subclasses:
- DynamicFederatedServiceCollectionImpl, LazyFederatedServiceCollectionImpl
public abstract class AbstractFederatedServiceCollectionWrapperImpl
- extends Object
- implements FederatedServiceCollection
FederatedServiceCollection
wrapper class that allows one to pass
calls from one collection instance to another.
- Author:
- bdferris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFederatedServiceCollectionWrapperImpl
public AbstractFederatedServiceCollectionWrapperImpl()
getAllServices
public Set<FederatedService> getAllServices()
- Specified by:
getAllServices
in interface FederatedServiceCollection
getServiceForAgencyId
public FederatedService getServiceForAgencyId(String agencyId)
throws ServiceAreaServiceException
- Specified by:
getServiceForAgencyId
in interface FederatedServiceCollection
- Throws:
ServiceAreaServiceException
getServiceForAgencyIds
public FederatedService getServiceForAgencyIds(Iterable<String> agencyIds)
throws ServiceAreaServiceException
- Specified by:
getServiceForAgencyIds
in interface FederatedServiceCollection
- Throws:
ServiceAreaServiceException
getServiceForBounds
public FederatedService getServiceForBounds(CoordinateBounds bounds)
throws ServiceAreaServiceException
- Specified by:
getServiceForBounds
in interface FederatedServiceCollection
- Throws:
ServiceAreaServiceException
getServiceForBounds
public FederatedService getServiceForBounds(double lat1,
double lon1,
double lat2,
double lon2)
throws ServiceAreaServiceException
- Specified by:
getServiceForBounds
in interface FederatedServiceCollection
- Throws:
ServiceAreaServiceException
getServiceForLocation
public FederatedService getServiceForLocation(double lat,
double lon)
throws ServiceAreaServiceException
- Specified by:
getServiceForLocation
in interface FederatedServiceCollection
- Throws:
ServiceAreaServiceException
getServiceForLocations
public FederatedService getServiceForLocations(List<CoordinatePoint> points)
throws ServiceAreaServiceException
- Specified by:
getServiceForLocations
in interface FederatedServiceCollection
- Throws:
ServiceAreaServiceException
getCollection
protected abstract FederatedServiceCollection getCollection()
- Protected Methods
Copyright © 2012 OneBusAway. All Rights Reserved.