public class MultiTargetTerminationStrategy extends Object implements SearchTerminationStrategy
Constructor and Description |
---|
MultiTargetTerminationStrategy(Set<Vertex> targets) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldSearchTerminate(Vertex origin,
Vertex target,
State current,
ShortestPathTree spt,
RoutingRequest traverseOptions)
Updates the list of reached targets and returns True if all the
targets have been reached.
|
public boolean shouldSearchTerminate(Vertex origin, Vertex target, State current, ShortestPathTree spt, RoutingRequest traverseOptions)
shouldSearchTerminate
in interface SearchTerminationStrategy
origin
- the origin vertextarget
- the target vertex, may be null in an undirected searchcurrent
- the current shortest path tree vertexspt
- the current shortest path treetraverseOptions
- the traverse optionsCopyright © 2019. All rights reserved.