org.opentripplanner.graph_builder.issues.NegativeHopTime 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.model.StopTime;
public class NegativeHopTime implements DataImportIssue {
public static final String FMT = "Negative time hop between %s and %s; skipping the entire trip. " +
"This might be caused by the use of 00:xx instead of 24:xx for stoptimes after midnight.";
public final StopTime st0, st1;
public NegativeHopTime(StopTime st0, StopTime st1){
this.st0 = st0;
this.st1 = st1;
}
@Override
public String getMessage() {
return String.format(FMT, st0, st1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy