org.onebusaway.transit_data_federation.impl
Class AgencyServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.AgencyServiceImpl
All Implemented Interfaces:
AgencyService

@Component
public class AgencyServiceImpl
extends Object
implements AgencyService


Constructor Summary
AgencyServiceImpl()
           
 
Method Summary
 Map<String,CoordinatePoint> getAgencyIdsAndCenterPoints()
          For each agency in a transit bundle, computes the center point of all the stops operated by that agency.
 Map<String,CoordinateBounds> getAgencyIdsAndCoverageAreas()
          For each agency in a transit bundle, computes the coordinate bounds of all the stops operated by that agency.
 List<String> getAllAgencyIds()
           
 TimeZone getTimeZoneForAgencyId(String agencyId)
          See Agency.getTimezone().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgencyServiceImpl

public AgencyServiceImpl()
Method Detail

getTimeZoneForAgencyId

public TimeZone getTimeZoneForAgencyId(String agencyId)
Description copied from interface: AgencyService
See Agency.getTimezone().

Specified by:
getTimeZoneForAgencyId in interface AgencyService
Parameters:
agencyId - the id of the target agency
Returns:
the instantiated timezone object for the specified agencyId

getAllAgencyIds

public List<String> getAllAgencyIds()
Specified by:
getAllAgencyIds in interface AgencyService

getAgencyIdsAndCenterPoints

public Map<String,CoordinatePoint> getAgencyIdsAndCenterPoints()
Description copied from interface: AgencyService
For each agency in a transit bundle, computes the center point of all the stops operated by that agency.

Specified by:
getAgencyIdsAndCenterPoints in interface AgencyService
Returns:
the center point of all stops operated by each agency, keyed by agency id

getAgencyIdsAndCoverageAreas

public Map<String,CoordinateBounds> getAgencyIdsAndCoverageAreas()
Description copied from interface: AgencyService
For each agency in a transit bundle, computes the coordinate bounds of all the stops operated by that agency.

Specified by:
getAgencyIdsAndCoverageAreas in interface AgencyService
Returns:
the coordinate bounds of all stops operated by each agency, keyed by agency id


Copyright © 2012 OneBusAway. All Rights Reserved.