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

org.opentripplanner.graph_builder.annotation.ParkAndRideUnlinked Maven / Gradle / Ivy

package org.opentripplanner.graph_builder.annotation;

public class ParkAndRideUnlinked extends GraphBuilderAnnotation {

    private static final long serialVersionUID = 1L;

    public static final String FMT = "Park and ride '%s' (%d) not linked to any streets; it will not be usable.";
    public static final String HTMLFMT = "Park and ride '%s' (%d) not linked to any streets; it will not be usable.";
    
    final String name;
    final long osmId;
    
    public ParkAndRideUnlinked(String name, long osmId){
    	this.name = name;
    	this.osmId = osmId;
    }
    
    @Override
    public String getMessage() {
        return String.format(FMT, name, osmId);
    }

    @Override
    public String getHTMLMessage() {
        return String.format(HTMLFMT, osmId, name, osmId);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy