
org.opentripplanner.graph_builder.issues.ParkAndRideEntranceRemoved Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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 - 2025 Weber Informatics LLC | Privacy Policy