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

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

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