org.opentripplanner.routing.algorithm.astar.strategies.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
package org.opentripplanner.routing.algorithm.astar.strategies;
import org.opentripplanner.routing.api.request.RoutingRequest;
import org.opentripplanner.routing.core.State;
import org.opentripplanner.routing.graph.Vertex;
import org.opentripplanner.routing.spt.ShortestPathTree;
import java.util.Set;
/**
*
*/
public interface SearchTerminationStrategy {
/**
* @param origin the origin vertex
* @param target the target vertex, may be null in an undirected search
* @param current the current shortest path tree vertex
* @param spt the current shortest path tree
* @param traverseOptions the traverse options
* @return true if the specified search should be terminated
*/
public boolean shouldSearchTerminate(Set origin, Set target, State current,
ShortestPathTree spt, RoutingRequest traverseOptions);
}