org.onebusaway.transit_data_federation.impl.realtime
Interface BlockLocationRecordDao

All Known Implementing Classes:
BlockLocationRecordDaoImpl

public interface BlockLocationRecordDao

Service interface for saving and querying BlockLocationRecord records to and from a datastore.

Author:
bdferris
See Also:
BlockLocationRecord

Method Summary
 List<BlockLocationRecord> getBlockLocationRecords(org.onebusaway.gtfs.model.AgencyAndId blockId, org.onebusaway.gtfs.model.AgencyAndId tripId, org.onebusaway.gtfs.model.AgencyAndId vehicleId, long serviceDate, long fromTime, long toTime, int recordLimit)
          The mega-query method.
 List<BlockLocationRecord> getBlockLocationRecordsForBlockServiceDateAndTimeRange(org.onebusaway.gtfs.model.AgencyAndId blockId, long serviceDate, long fromTime, long toTime)
           
 List<BlockLocationRecord> getBlockLocationRecordsForVehicleAndTimeRange(org.onebusaway.gtfs.model.AgencyAndId vehicleId, long fromTime, long toTime)
           
 void saveBlockLocationRecord(BlockLocationRecord record)
           
 void saveBlockLocationRecords(List<BlockLocationRecord> records)
           
 

Method Detail

saveBlockLocationRecord

void saveBlockLocationRecord(BlockLocationRecord record)

saveBlockLocationRecords

void saveBlockLocationRecords(List<BlockLocationRecord> records)

getBlockLocationRecordsForBlockServiceDateAndTimeRange

List<BlockLocationRecord> getBlockLocationRecordsForBlockServiceDateAndTimeRange(org.onebusaway.gtfs.model.AgencyAndId blockId,
                                                                                 long serviceDate,
                                                                                 long fromTime,
                                                                                 long toTime)
Parameters:
blockId -
serviceDate - the service date (Unix-time) on which the block trip operated
fromTime - Unix-time
toTime - Unix-time
Returns:
the set of block position records with the specified trip id, service date, and time range

getBlockLocationRecordsForVehicleAndTimeRange

List<BlockLocationRecord> getBlockLocationRecordsForVehicleAndTimeRange(org.onebusaway.gtfs.model.AgencyAndId vehicleId,
                                                                        long fromTime,
                                                                        long toTime)
Parameters:
vehicleId -
fromTime -
toTime -
Returns:
the set of trip position records with the specified vehicle id and time range

getBlockLocationRecords

List<BlockLocationRecord> getBlockLocationRecords(org.onebusaway.gtfs.model.AgencyAndId blockId,
                                                  org.onebusaway.gtfs.model.AgencyAndId tripId,
                                                  org.onebusaway.gtfs.model.AgencyAndId vehicleId,
                                                  long serviceDate,
                                                  long fromTime,
                                                  long toTime,
                                                  int recordLimit)
The mega-query method. Supply what you can.

Parameters:
blockId -
tripId -
vehicleId -
serviceDate -
fromTime -
toTime -
recordLimit - TODO
Returns:


Copyright © 2011 OneBusAway. All Rights Reserved.