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

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

There is a newer version: 2.5.0
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy