All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.graph_builder.issues.RepeatedStops Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package org.opentripplanner.graph_builder.issues;

import gnu.trove.list.TIntList;
import org.opentripplanner.graph_builder.DataImportIssue;
import org.opentripplanner.transit.model.timetable.Trip;

public class RepeatedStops implements DataImportIssue {

  public static final String FMT =
    "Trip %s visits stops repeatedly. Removed duplicates at stop sequence numbers %s.";

  public final Trip trip;

  public final TIntList removedStopSequences;

  public RepeatedStops(Trip trip, TIntList removedStopSequences) {
    this.trip = trip;
    this.removedStopSequences = removedStopSequences;
  }

  @Override
  public String getMessage() {
    return String.format(FMT, trip.getId(), removedStopSequences);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy