|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
N - the type of the nodes.E - the type of the edges.public interface CostFunction<N,E>
Interface for cost functions allowing for evaluation and estimation of costs of moving in a graph.
| Method Summary | |
|---|---|
double |
estimate(N source,
N target)
Estimate the cost of going from source to target. |
double |
evaluate(E edge)
Evaluate the cost of an edge. |
double |
evaluate(N source,
N target)
Evaluate the cost of going from source to target. |
double |
evaluate(Path<N,E> path)
Evaluate the cost of a path. |
| Method Detail |
|---|
double evaluate(E edge)
edge - the edge.
double evaluate(N source,
N target)
source - the source.target - the target.
double evaluate(Path<N,E> path)
path - the path
double estimate(N source,
N target)
source - the source.target - the target.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||