use of org.onebusaway.transit_data_federation.impl.transit_graph.BlockConfigurationEntryImpl in project onebusaway-application-modules by camsys.
the class FrequencyEntriesFactory method applyFrequenciesToBlockTrips.
private void applyFrequenciesToBlockTrips(List<TripEntryImpl> tripsInBlock, Map<AgencyAndId, List<FrequencyEntry>> frequenciesAlongBlockByTripId) {
BlockEntryImpl blockEntry = tripsInBlock.get(0).getBlock();
List<BlockConfigurationEntry> configurations = blockEntry.getConfigurations();
for (int i = 0; i < configurations.size(); i++) {
BlockConfigurationEntryImpl blockConfig = (BlockConfigurationEntryImpl) configurations.get(i);
List<FrequencyEntry> frequencies = computeBlockFrequencies(blockEntry, blockConfig.getTrips(), frequenciesAlongBlockByTripId);
blockConfig.setFrequencies(frequencies);
}
}
Aggregations