Interface SpatialTemporalRoutingAlgorithm<E>
- Type Parameters:
E- the edge type
- All Known Implementing Classes:
Dijkstra
public interface SpatialTemporalRoutingAlgorithm<E>
An algorithm which can find a route between two vertices on an explorable
spatial-temporal graph.
- Author:
- Lee A. Christie
-
Method Summary
Modifier and TypeMethodDescription<ST,S> List <ST> stPath(Explorable<ST, E> graph, ST source, Predicate<ST> target, E maxCost, SpatialTemporalMapping<S, E, ST> stMapping) Finds a route from the specified source to the specified target(s) by predicate which returns true if a given vertex is a target, within a given maximum cost.<ST,S> List <ST> stPath(Explorable<ST, E> graph, ST source, Predicate<ST> target, SpatialTemporalMapping<S, E, ST> stMapping) Finds a route from the specified source to the specified target(s) by predicate which returns true if a given vertex is a target.<ST,S> List <ST> stPath(Explorable<ST, E> graph, ST source, ST target, E maxCost, SpatialTemporalMapping<S, E, ST> stMapping) Deprecated, for removal: This API element is subject to removal in a future version.<ST,S> List <ST> stPath(Explorable<ST, E> graph, ST source, ST target, SpatialTemporalMapping<S, E, ST> stMapping) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
stPath
@Deprecated(forRemoval=true) <ST,S> List<ST> stPath(Explorable<ST, E> graph, ST source, ST target, SpatialTemporalMapping<S, throws TargetUnreachableException, InterruptedExceptionE, ST> stMapping) Deprecated, for removal: This API element is subject to removal in a future version.Finds a route from the specified source to the specified target.- Type Parameters:
ST- the type of the spatial-temporal vertexS- the type of the spatial component of the vertex- Parameters:
graph- the graph on which to route, not nullsource- the source vertex, in graph, not nulltarget- the target vertex, in graph, not nullstMapping- a spatial-temporal mapping- Returns:
- a list of vertices describing each step in the path
- Throws:
TargetUnreachableException- if no route could be found from source to targetInterruptedException- if the thread is interrupted, and the implementation supports interruption
-
stPath
@Deprecated(forRemoval=true) <ST,S> List<ST> stPath(Explorable<ST, E> graph, ST source, ST target, E maxCost, SpatialTemporalMapping<S, throws TargetUnreachableException, InterruptedExceptionE, ST> stMapping) Deprecated, for removal: This API element is subject to removal in a future version.Finds a route from the specified source to the specified target within a given maximum cost.- Type Parameters:
ST- the type of the spatial-temporal vertexS- the type of the spatial component of the vertex- Parameters:
graph- the graph on which to route, not nullsource- the source vertex, in graph, not nulltarget- the target vertex, in graph, not nullmaxCost- the maximum cost, considered unlimited if nullstMapping- a spatial-temporal mapping- Returns:
- a list of vertices describing each step in the path
- Throws:
TargetUnreachableException- if no route could be found from source to targetInterruptedException- if the thread is interrupted, and the implementation supports interruption
-
stPath
<ST,S> List<ST> stPath(Explorable<ST, E> graph, ST source, Predicate<ST> target, SpatialTemporalMapping<S, throws TargetUnreachableException, InterruptedExceptionE, ST> stMapping) Finds a route from the specified source to the specified target(s) by predicate which returns true if a given vertex is a target.- Type Parameters:
ST- the type of the spatial-temporal vertexS- the type of the spatial component of the vertex- Parameters:
graph- the graph on which to route, not nullsource- the source vertex, in graph, not nulltarget- the criteria to identify a target vertex, in graph, not nullstMapping- a spatial-temporal mapping- Returns:
- a list of vertices describing each step in the path
- Throws:
TargetUnreachableException- if no route could be found from source to targetInterruptedException- if the thread is interrupted, and the implementation supports interruption
-
stPath
<ST,S> List<ST> stPath(Explorable<ST, E> graph, ST source, Predicate<ST> target, E maxCost, SpatialTemporalMapping<S, throws TargetUnreachableException, InterruptedExceptionE, ST> stMapping) Finds a route from the specified source to the specified target(s) by predicate which returns true if a given vertex is a target, within a given maximum cost.- Type Parameters:
ST- the type of the spatial-temporal vertexS- the type of the spatial component of the vertex- Parameters:
graph- the graph on which to route, not nullsource- the source vertex, in graph, not nulltarget- the target vertex, in graph, not nullmaxCost- the maximum cost, considered unlimited if nullstMapping- a spatial-temporal mapping- Returns:
- a list of vertices describing each step in the path
- Throws:
TargetUnreachableException- if no route could be found from source to targetInterruptedException- if the thread is interrupted, and the implementation supports interruption
-