org.opentripplanner.graph_builder.module.geometry.TripOvertakingException 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.module.geometry;
import org.opentripplanner.model.Trip;
public class TripOvertakingException extends RuntimeException {
/**
* Thrown when a trip overtakes another trip on the same pattern.
*/
private static final long serialVersionUID = 1L;
public Trip overtaker, overtaken;
public int stopIndex;
public TripOvertakingException(Trip overtaker, Trip overtaken, int stopIndex) {
this.overtaker = overtaker;
this.overtaken = overtaken;
this.stopIndex = stopIndex;
}
@Override
public String getMessage() {
return "Possible GTFS feed error: Trip " + overtaker + " overtakes trip " + overtaken
+ " (which has the same stops) at stop index "
+ stopIndex + " This will be handled correctly but inefficiently.";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy