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 Triple<Double,Double,Double> |
getTrafficProtectionDegree(NetPlan netPlan,
NetworkLayer... optionalLayerParameter)
Returns the statistics for protection degree carried traffic.
|
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 Triple<Double,Double,Double> getTrafficProtectionDegree(NetPlan netPlan, NetworkLayer... optionalLayerParameter)
Returns the statistics for protection degree carried traffic. Returned values are the following:
netPlan
- Current network designoptionalLayerParameter
- Network laer (optional)