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

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

package org.opentripplanner.graph_builder.issues;

import org.opentripplanner.graph_builder.DataImportIssue;

public class TurnRestrictionException implements DataImportIssue {

    public static final String FMT = "Turn restriction with bicycle exception at node %s from %s";

    public static final String HTMLFMT = "Turn restriction with bicycle exception at node \"%d\" from \"%d\"";
    
    final long nodeId, wayId;
    
    public TurnRestrictionException(long nodeId, long wayId){
    	this.nodeId = nodeId;
    	this.wayId = wayId;
    }

    @Override
    public String getHTMLMessage() {
        return String.format(HTMLFMT, nodeId, nodeId, wayId, wayId);
    }

    @Override
    public String getMessage() {
        return String.format(FMT, nodeId, wayId);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy