
org.opentripplanner.astar.spi.SearchTerminationStrategy 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
The newest version!
package org.opentripplanner.astar.spi;
/**
* Immediately terminates the search once the condition has been reached. This can be useful for
* checking that the required number of targets have been reached, but not for limiting searches but
* distance or duration, as it will not continue searching along other paths once the condition has
* been met.
*/
public interface SearchTerminationStrategy> {
/**
* @param current the current shortest path tree vertex
* @return true if the specified search should be terminated
*/
boolean shouldSearchTerminate(State current);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy