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

org.opentripplanner.graph_builder.issues.ParkAndRideEntranceRemoved 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.routing.vehicle_parking.VehicleParkingEntrance;

public class ParkAndRideEntranceRemoved implements DataImportIssue {

  private static final String FMT = "Park and ride entrance '%s' is removed because it's StreetVertex ('%s') is removed in a previous step.";

  private final String entranceId;
  private final String streetVertexName;

  public ParkAndRideEntranceRemoved(VehicleParkingEntrance vehicleParkingEntrance){
    this.entranceId = vehicleParkingEntrance.getEntranceId().toString();
    this.streetVertexName = vehicleParkingEntrance.getVertex().getDefaultName();
  }

  @Override
  public String getMessage() {
    return String.format(FMT, entranceId, streetVertexName);
  }

  @Override
  public String getHTMLMessage() {
    return getMessage();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy