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

org.opentripplanner.graph_builder.issues.NegativeHopTime 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.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 - 2024 Weber Informatics LLC | Privacy Policy