com.kuka.graph.cost
Interface CostFunction<N,E>

Type Parameters:
N - the type of the nodes.
E - the type of the edges.
All Known Implementing Classes:
AbstractBaseCostFunction

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

evaluate

double evaluate(E edge)
Evaluate the cost of an edge.

Parameters:
edge - the edge.
Returns:
the evaluated cost.

evaluate

double evaluate(N source,
                N target)
Evaluate the cost of going from source to target.

Parameters:
source - the source.
target - the target.
Returns:
the evaluated cost.

evaluate

double evaluate(Path<N,E> path)
Evaluate the cost of a path.

Parameters:
path - the path
Returns:
the evaluated cost.

estimate

double estimate(N source,
                N target)
Estimate the cost of going from source to target.

Parameters:
source - the source.
target - the target.
Returns:
the estimated cost.


Copyright © 2019. All rights reserved.