org.onebusaway.transit_data_federation.impl.beans
Class BlockStatusBeanServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.beans.BlockStatusBeanServiceImpl
All Implemented Interfaces:
BlockStatusBeanService

@Component
public class BlockStatusBeanServiceImpl
extends Object
implements BlockStatusBeanService


Constructor Summary
BlockStatusBeanServiceImpl()
           
 
Method Summary
 BlockStatusBean getBlockForVehicle(org.onebusaway.gtfs.model.AgencyAndId vehicleId, long time)
          BlockStatusBeanService Interface
 ListBean<BlockStatusBean> getBlocksForAgency(String agencyId, long time)
           
 ListBean<BlockStatusBean> getBlocksForBounds(CoordinateBounds bounds, long time)
           
 ListBean<BlockStatusBean> getBlocksForRoute(org.onebusaway.gtfs.model.AgencyAndId routeId, long time)
           
 void setBlockBeanService(BlockBeanService blockBeanService)
           
 void setBlockStatusService(BlockStatusService blockStatusService)
           
 void setStopBeanService(StopBeanService stopBeanService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockStatusBeanServiceImpl

public BlockStatusBeanServiceImpl()
Method Detail

setStopBeanService

public void setStopBeanService(StopBeanService stopBeanService)

setBlockStatusService

public void setBlockStatusService(BlockStatusService blockStatusService)

setBlockBeanService

public void setBlockBeanService(BlockBeanService blockBeanService)

getBlockForVehicle

public BlockStatusBean getBlockForVehicle(org.onebusaway.gtfs.model.AgencyAndId vehicleId,
                                          long time)
BlockStatusBeanService Interface

Specified by:
getBlockForVehicle in interface BlockStatusBeanService
Returns:
trip details for the trip operated by the specified vehicle at the specified time, or null if not found

getBlocksForAgency

public ListBean<BlockStatusBean> getBlocksForAgency(String agencyId,
                                                    long time)
Specified by:
getBlocksForAgency in interface BlockStatusBeanService
Returns:
the list of active blocks matching agency query criteria

getBlocksForRoute

public ListBean<BlockStatusBean> getBlocksForRoute(org.onebusaway.gtfs.model.AgencyAndId routeId,
                                                   long time)
Specified by:
getBlocksForRoute in interface BlockStatusBeanService
Returns:
the list of active blocks matching the route query criteria

getBlocksForBounds

public ListBean<BlockStatusBean> getBlocksForBounds(CoordinateBounds bounds,
                                                    long time)
Specified by:
getBlocksForBounds in interface BlockStatusBeanService
Returns:
the list of active blocks matching the query criteria


Copyright © 2012 OneBusAway. All Rights Reserved.