org.onebusaway.federations.impl
Class AbstractFederatedServiceCollectionWrapperImpl

java.lang.Object
  extended by 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

Constructor Summary
AbstractFederatedServiceCollectionWrapperImpl()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFederatedServiceCollectionWrapperImpl

public AbstractFederatedServiceCollectionWrapperImpl()
Method Detail

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.