org.opentripplanner.graph_builder.issues.AgencyNameCollision Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.graph_builder.issues;
import org.opentripplanner.graph_builder.DataImportIssue;
import org.opentripplanner.model.Agency;
public class AgencyNameCollision implements DataImportIssue {
public static final String FMT = "Agency %s was already defined by %s. Both feeds will refer " +
"to the same agency. Is this intentional?";
final Agency agency;
final String prevFeed;
AgencyNameCollision(Agency agency, String prevFeed){
this.agency = agency;
this.prevFeed = prevFeed;
}
@Override
public String getMessage() {
return String.format(FMT, agency, prevFeed);
}
}