RoutingEdge.java (632B) download
1package osm.routing;
2
3/**
4 * Represents an edge in a routing graph, connecting two routing nodes.
5 *
6 * @param <N> the type of RoutingNode associated with this edge.
7 */
8public interface RoutingEdge<N extends RoutingNode<N>> {
9
10 /**
11 * Gets the destination node of this edge.
12 *
13 * @return the destination node.
14 */
15 N getDestination();
16
17 /**
18 * Gets the distance associated with this edge.
19 *
20 * @return the distance value.
21 */
22 long getDistance();
23
24 /**
25 * Gets the time associated with traversing this edge.
26 *
27 * @return the time value.
28 */
29 double getTime();
30}