&& arrivalTimes[i] == departureTimes[i - 1] - 1) { _log.info("fixing decreasing passingTimes: stopTimeA=" + prevStopTime.getId() + " stopTimeB=" + stopTime.getId()); arrivalTimes[i] = departureTimes[i - 1]; if (departureTimes[i] < arrivalTimes[i]) for (int x = 0; x < stopTimes.size(); x++) { StopTime st = stopTimes.get(x); System.err.println(x + " " + st.getId() + " " + arrivalTimes[x] + " " + departureTimes[x]);
&& arrivalTimes[i] == departureTimes[i - 1] - 1) { _log.info("fixing decreasing passingTimes: stopTimeA=" + prevStopTime.getId() + " stopTimeB=" + stopTime.getId()); arrivalTimes[i] = departureTimes[i - 1]; if (departureTimes[i] < arrivalTimes[i]) for (int x = 0; x < stopTimes.size(); x++) { StopTime st = stopTimes.get(x); System.err.println(x + " " + st.getId() + " " + arrivalTimes[x] + " " + departureTimes[x]);
&& arrivalTimes[i] == departureTimes[i - 1] - 1) { _log.info("fixing decreasing passingTimes: stopTimeA=" + prevStopTime.getId() + " stopTimeB=" + stopTime.getId()); arrivalTimes[i] = departureTimes[i - 1]; if (departureTimes[i] < arrivalTimes[i]) for (int x = 0; x < stopTimes.size(); x++) { StopTime st = stopTimes.get(x); final String msg = x + " " + st.getId() + " " + arrivalTimes[x] + " " + departureTimes[x]; _log.error(msg);
private List<StopTimeEntryImpl> createInitialStopTimeEntries( TransitGraphImpl graph, List<StopTime> stopTimes) { List<StopTimeEntryImpl> stopTimeEntries = new ArrayList<StopTimeEntryImpl>(); int sequence = 0; for (StopTime stopTime : stopTimes) { Stop stop = stopTime.getStop(); AgencyAndId stopId = stop.getId(); StopEntryImpl stopEntry = graph.getStopEntryForId(stopId); StopTimeEntryImpl stopTimeEntry = new StopTimeEntryImpl(); stopTimeEntry.setId(stopTime.getId()); stopTimeEntry.setSequence(sequence); stopTimeEntry.setDropOffType(stopTime.getDropOffType()); stopTimeEntry.setPickupType(stopTime.getPickupType()); stopTimeEntry.setStop(stopEntry); stopTimeEntries.add(stopTimeEntry); sequence++; } return stopTimeEntries; }
private List<StopTimeEntryImpl> createInitialStopTimeEntries( TransitGraphImpl graph, List<StopTime> stopTimes) { List<StopTimeEntryImpl> stopTimeEntries = new ArrayList<StopTimeEntryImpl>( stopTimes.size()); int sequence = 0; for (StopTime stopTime : stopTimes) { Stop stop = stopTime.getStop(); AgencyAndId stopId = stop.getId(); StopEntryImpl stopEntry = graph.getStopEntryForId(stopId); StopTimeEntryImpl stopTimeEntry = new StopTimeEntryImpl(); stopTimeEntry.setId(stopTime.getId()); stopTimeEntry.setSequence(sequence); stopTimeEntry.setGtfsSequence(stopTime.getStopSequence()); stopTimeEntry.setDropOffType(stopTime.getDropOffType()); stopTimeEntry.setPickupType(stopTime.getPickupType()); stopTimeEntry.setStop(stopEntry); stopTimeEntries.add(stopTimeEntry); sequence++; } return stopTimeEntries; }
+ "; route=" + (tripEntry.getRoute() == null?"NuLl":tripEntry.getRoute().getId()) + "; blockId=" + (tripEntry.getBlock() == null?"NuLl":tripEntry.getBlock().getId()) + "; stop=" + (stopTime.getStop() == null?"NuLl":stopTime.getId() + ":" + stopTime.getRouteShortName()));
private StopTime cloneStopTime(StopTime original) { StopTime anew = new StopTime(); anew.setTrip(original.getTrip()); anew.setStopSequence(original.getStopSequence()); anew.setStopHeadsign(original.getStopHeadsign()); anew.setStop(original.getStop()); anew.setRouteShortName(original.getRouteShortName()); anew.setPickupType(original.getPickupType()); anew.setId(original.getId()); anew.setDropOffType(original.getDropOffType()); if(original.isShapeDistTraveledSet()) anew.setShapeDistTraveled(original.getShapeDistTraveled()); if(original.isArrivalTimeSet()) anew.setArrivalTime(original.getArrivalTime()); if(original.isDepartureTimeSet()) anew.setDepartureTime(original.getDepartureTime()); return anew; } }