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

org.opentripplanner.raptor.spi.RaptorPathConstrainedTransferSearch Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.raptor.spi;

import javax.annotation.Nullable;
import org.opentripplanner.raptor.api.model.RaptorConstrainedTransfer;
import org.opentripplanner.raptor.api.model.RaptorTripSchedule;

/**
 * This interface is used by Raptor to create a path from the Raptor state. We do not keep
 * constraints during the search, so we need to look it up when building the path.
 *
 * @param  The TripSchedule type defined by the user of the raptor API.
 */
public interface RaptorPathConstrainedTransferSearch {
  @Nullable
  RaptorConstrainedTransfer findConstrainedTransfer(
    T fromTrip,
    int fromStopPosition,
    T toTrip,
    int toStopPosition
  );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy