public class TrafficComputationEngine extends Object
Modifier and Type | Method and Description |
---|---|
static Pair<Double,Double> |
getAverageHopsAndLengthOfMulticastTrees(List<MulticastTree> trees)
Returns the average number of hops (number of links) and km (summing all links) of the multicast trees in the network
|
static double |
getRouteAverageLength(List<Route> routes,
DoubleMatrix1D linkCostMap)
Obtains the average route length among the current routes according to
certain link cost metric.
|
static double |
getTrafficProtectionDegree(NetPlan netPlan,
NetworkLayer... optionalLayerParameter)
Returns the fraction of the total carried traffic in the given layer that has at least one backup path defined.
|
public static Pair<Double,Double> getAverageHopsAndLengthOfMulticastTrees(List<MulticastTree> trees)
trees
- List of Multicast Treespublic static double getRouteAverageLength(List<Route> routes, DoubleMatrix1D linkCostMap)
routes
- List of routeslinkCostMap
- Cost metric per linkpublic static double getTrafficProtectionDegree(NetPlan netPlan, NetworkLayer... optionalLayerParameter)
Returns the fraction of the total carried traffic in the given layer that has at least one backup path defined. If a layer is not defined, the defaul layer is used.
netPlan
- Current network designoptionalLayerParameter
- Network layer (optional)Copyright © 2018. All rights reserved.