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

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

There is a newer version: 2.6.0
Show newest version
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 getMessage() {
    return String.format(FMT, nodeId, wayId);
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy