@Override public String toString() { return _id.toString(); } }
@Override public String toString() { return _id.toString(); } }
@Override public String toString() { return id.toString() + " " + serviceDate; } }
@Override public String toString() { return id.toString() + " " + serviceDate; } }
@Override public String toString() { return trip.getId().toString(); } }
@Override public String toString() { return trip.getId().toString(); } }
@Override public String summarizeStop(String stopIdStr) { // return the stop name try { AgencyAndId routeId = AgencyAndIdLibrary.convertFromString(stopIdStr); StopBean stop = _tds.getStop(routeId.toString()); if (stop == null || stop.getName() == null) return stopIdStr; return stop.getName(); } catch (IllegalStateException ise) { // invalid id -- return it as is return stopIdStr; } catch (NoSuchStopServiceException nsse) { // something went wrong _log.error("couldn't find stop for stopId=|" + stopIdStr + "|"); return stopIdStr; } } }
if (record.getTripId() != null) { result.addUnmatchedTripId(record.getTripId().toString());
/** * Rename the id of the specified identity to avoid an raw GTFS identifier * collision in the merged output feed. * * @param context * @param entity */ @SuppressWarnings("unchecked") protected void rename(GtfsMergeContext context, IdentityBean<?> entity) { Object id = entity.getId(); if (id != null && id instanceof AgencyAndId) { IdentityBean<AgencyAndId> bean = (IdentityBean<AgencyAndId>) entity; AgencyAndId agencyAndId = bean.getId(); AgencyAndId newAgencyAndId; if (this.getDuplicateRenamingStrategy() == EDuplicateRenamingStrategy.AGENCY) { newAgencyAndId = MergeSupport.renameAgencyAndId(agencyAndId.getAgencyId()+"-", agencyAndId); _log.debug(agencyAndId.toString() + " renamed(1) to " + newAgencyAndId); } else { newAgencyAndId = MergeSupport.renameAgencyAndId(context, agencyAndId); _log.debug(agencyAndId.toString() + " renamed(2) to " + newAgencyAndId); } bean.setId(newAgencyAndId); } }
TripEntry tripEntry = blockTripEntry.getTrip(); if(tripEntry.getRoute().getId().toString().equals(routeId)) { if (tripEntry.getDirectionId() == null || tripEntry.getDirectionId().equals(directionId)) { return true;
TripEntry tripEntry = blockTripEntry.getTrip(); if(tripEntry.getRoute().getId().toString().equals(routeId)) { if (tripEntry.getDirectionId() == null || tripEntry.getDirectionId().equals(directionId)) { return true;
SituationQueryBean.AffectsBean affects = new SituationQueryBean.AffectsBean(); query.getAffects().add(affects); affects.setRouteId(routeId.toString()); ListBean<ServiceAlertBean> serviceAlertsForRoute = transitDataService.getServiceAlerts(query); if (serviceAlertsForRoute != null) {
illegalTripList.append(trip.getId().toString()).append(" "); removeEntityLibrary.removeTrip(dao, trip);
if (routeId != null && !theTrip.getRoute().getId().toString().equals(routeId)) { continue;
String stopIdString = stopId.toString();
for (TimepointPredictionRecord tpr: blockLocation.getTimepointPredictions()) { TimepointPredictionBean tpb = new TimepointPredictionBean(); tpb.setTimepointId(tpr.getTimepointId().toString()); tpb.setTripId(tpr.getTripId().toString()); tpb.setStopSequence(tpr.getStopSequence()); tpb.setTimepointPredictedArrivalTime(tpr.getTimepointPredictedArrivalTime());