public class TrafficComputationEngine
extends Object
Modifier and Type | Method and Description |
---|---|
static double |
getPathBottleneckCapacity(NetPlan netPlan,
List<Long> path)
Returns the bottleneck (lowest) capacity among the set of traversed links and protection
segments.
|
static double |
getPathBottleneckCapacity(NetPlan netPlan,
long layerId,
List<Long> path)
Returns the bottleneck (lowest) capacity among the set of traversed links and protection
segments.
|
static double |
getRouteAverageLength(NetPlan netPlan,
long layerId,
Map<Long,Double> linkCostMap)
Obtains the average route length among the current routes according to
certain link cost metric.
|
static double |
getRouteAverageLength(NetPlan netPlan,
Map<Long,Double> linkCostMap)
Obtains the average route length among the current routes according to
certain link cost metric.
|
static Triple<Double,Double,Double> |
getTrafficProtectionDegree(NetPlan netPlan)
Returns the statistics for protection degree carried traffic.
|
static Triple<Double,Double,Double> |
getTrafficProtectionDegree(NetPlan netPlan,
long layerId)
Returns the statistics for protection degree carried traffic.
|
public static double getPathBottleneckCapacity(NetPlan netPlan, List<Long> path)
netPlan
- Current network designpath
- Sequence of links and protection segments (not checked for continuity)public static double getPathBottleneckCapacity(NetPlan netPlan, long layerId, List<Long> path)
netPlan
- Current network designlayerId
- Layer identifierpath
- Sequence of links and protection segments (not checked for continuity)public static double getRouteAverageLength(NetPlan netPlan, long layerId, Map<Long,Double> linkCostMap)
netPlan
- Current network designlayerId
- Layer identifierlinkCostMap
- Cost metric per linkpublic static double getRouteAverageLength(NetPlan netPlan, Map<Long,Double> linkCostMap)
netPlan
- Current network designlinkCostMap
- Cost metric per linkpublic static Triple<Double,Double,Double> getTrafficProtectionDegree(NetPlan netPlan)
Returns the statistics for protection degree carried traffic. Returned values are the following:
netPlan
- Current network designpublic static Triple<Double,Double,Double> getTrafficProtectionDegree(NetPlan netPlan, long layerId)
Returns the statistics for protection degree carried traffic. Returned values are the following:
netPlan
- Current network designlayerId
- Layer identifier