Package org.onebusaway.gtfs.model

Examples of org.onebusaway.gtfs.model.AgencyAndIdInstance


    Map<AgencyAndId, BlockLocationArchiveRecordMap> recordsByTrip = new FactoryMap<AgencyAndId, BlockLocationArchiveRecordMap>(
        new BlockLocationArchiveRecordMap());

    for (BlockLocationArchiveRecord record : records) {
      AgencyAndId tripId = record.getTripId();
      AgencyAndIdInstance instance = new AgencyAndIdInstance(tripId,
          record.getServiceDate());
      recordsByTrip.get(record.getTripId()).get(instance).add(record);
    }

    return recordsByTrip;
View Full Code Here


    @Override
    public void handleEntity(Object bean) {
      BlockLocationArchiveRecord record = (BlockLocationArchiveRecord) bean;
      if (!_tripId.equals(record.getTripId()))
        return;
      AgencyAndIdInstance instance = new AgencyAndIdInstance(
          record.getTripId(), record.getServiceDate());
      _recordsByInstance.get(instance).add(record);
      _distanceAlongBlockRange.addValue(record.getDistanceAlongBlock());
      _scheduleDeviationRange.addValue(record.getScheduleDeviation());
    }
View Full Code Here

TOP

Related Classes of org.onebusaway.gtfs.model.AgencyAndIdInstance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.