Interface ILcdTracingResultHandler<N,E>
public interface ILcdTracingResultHandler<N,E>
ILcdTracingResultHandler
defines a handler interface which is called from within the
tracing algorithm, once for each node for which a trace is found.- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleNode
(N aNode, ILcdRoute<N, E> aShortestRoute, double aDistance) The handler which is invoked for every node for which is trace is found.
-
Method Details
-
handleNode
The handler which is invoked for every node for which is trace is found. The user should implement this handler with an appropriate action, e.g. selecting all this nodes in a layer, storing them into a list, building up a new graph, ...- Parameters:
aNode
- the node for which is trace is found.aShortestRoute
- the route leading from the preceding/succeeding route to this node. The preceding/succeeding route will not be a part of this route.aDistance
- the distance of this shortest route, calculated in terms of theILcdEdgeValueFunction
that was given as an argument to the tracing algorithm.
-