public class TrafficComputationEngine extends Object
|Modifier and Type||Method and Description|
Returns the average number of hops (number of links) and km (summing all links) of the multicast trees in the network
Obtains the average route length among the current routes according to certain link cost metric.
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 Trees
public static double getRouteAverageLength(List<Route> routes, DoubleMatrix1D linkCostMap)
routes- List of routes
linkCostMap- Cost metric per link
public 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 design
optionalLayerParameter- Network layer (optional)
Copyright © 2018. All rights reserved.