List<Trip> tripsForRoute = _gtfsDao.getTripsForRoute(route);
_log.info("trips to process: " + tripsForRoute.size());
int tripIndex = 0;
RouteEntryImpl routeEntry = graph.getRouteForId(route.getId());
ArrayList<TripEntry> tripEntries = new ArrayList<TripEntry>();
for (Trip trip : tripsForRoute) {
tripIndex++;
if (tripIndex % 500 == 0)
_log.info("trips processed: " + tripIndex + "/"
+ tripsForRoute.size());
TripEntryImpl tripEntry = processTrip(graph, trip);
if (tripEntry != null) {
tripEntry.setRoute(routeEntry);
tripEntries.add(tripEntry);
}
}
tripEntries.trimToSize();
routeEntry.setTrips(tripEntries);
}
if (_stopTimeEntriesFactory.getInvalidStopToShapeMappingExceptionCount() > 0
&& _throwExceptionOnInvalidStopToShapeMappingException) {
throw new IllegalStateException(