public class TLcdRouteUtil
extends java.lang.Object
ILcdRoute
objects.Modifier and Type  Method and Description 

static <N,E> double 
computeValue(ILcdRoute<N,E> aRoute,
ILcdGraph<N,E> aGraph,
ILcdRoute<N,E> aPrecedingRoute,
ILcdEdgeValueFunction<N,E> aEdgeValueFunction)
Returns the total value of the given route, which is calculated by calculating the values of each edge in the route
with the given
ILcdEdgeValueFunction and adding them. 
static <N,E> boolean 
isFullyContainedInGraph(ILcdRoute<N,E> aRoute,
ILcdGraph<N,E> aGraph)
Returns true if the given route is fully contained in the given graph, false otherwise.

static <N,E> boolean 
isPartlyContainedInGraph(ILcdRoute<N,E> aRoute,
ILcdGraph<N,E> aGraph)
Returns true if the given route is partly contained in the given graph, false otherwise.

public static <N,E> double computeValue(ILcdRoute<N,E> aRoute, ILcdGraph<N,E> aGraph, ILcdRoute<N,E> aPrecedingRoute, ILcdEdgeValueFunction<N,E> aEdgeValueFunction)
ILcdEdgeValueFunction
and adding them.aRoute
 the route whose value is to be calculated.aGraph
 the graph in which the route is contained.aPrecedingRoute
 the route that precedes the route whose value is to be computed.aEdgeValueFunction
 the edge value function which is used to evaluate the edges of the route.java.lang.NullPointerException
 if aEdgeValueFunction is null
.public static <N,E> boolean isFullyContainedInGraph(ILcdRoute<N,E> aRoute, ILcdGraph<N,E> aGraph)
aRoute
 the route to be checked.aGraph
 the graph in which the route should be contained.true
if the route is fully contained in the graph, false
otherwise.java.lang.NullPointerException
 if one of the arguments is null
.public static <N,E> boolean isPartlyContainedInGraph(ILcdRoute<N,E> aRoute, ILcdGraph<N,E> aGraph)
aRoute
 the route to be checked.aGraph
 the graph in which the route should be contained.true
if the route is partly contained in the graph, false
otherwise.java.lang.NullPointerException
 if one of the arguments is null
.