Package org.onosproject.net.topology
Class MetricLinkWeight
- java.lang.Object
-
- org.onosproject.net.topology.MetricLinkWeight
-
- All Implemented Interfaces:
org.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>,LinkWeigher
public class MetricLinkWeight extends java.lang.Object implements LinkWeigher
Link weight for measuring link cost using the link metric annotation.
-
-
Constructor Summary
Constructors Constructor Description MetricLinkWeight()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onlab.graph.WeightgetInitialWeight()org.onlab.graph.WeightgetNonViableWeight()org.onlab.graph.Weightweight(TopologyEdge edge)
-
-
-
Method Detail
-
getInitialWeight
public org.onlab.graph.Weight getInitialWeight()
- Specified by:
getInitialWeightin interfaceorg.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>
-
getNonViableWeight
public org.onlab.graph.Weight getNonViableWeight()
- Specified by:
getNonViableWeightin interfaceorg.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>
-
weight
public org.onlab.graph.Weight weight(TopologyEdge edge)
- Specified by:
weightin interfaceorg.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>
-
-