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 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.Weight
getInitialWeight()
org.onlab.graph.Weight
getNonViableWeight()
org.onlab.graph.Weight
weight(TopologyEdge edge)
-
-
-
Method Detail
-
getInitialWeight
public org.onlab.graph.Weight getInitialWeight()
- Specified by:
getInitialWeight
in interfaceorg.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>
-
getNonViableWeight
public org.onlab.graph.Weight getNonViableWeight()
- Specified by:
getNonViableWeight
in interfaceorg.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>
-
weight
public org.onlab.graph.Weight weight(TopologyEdge edge)
- Specified by:
weight
in interfaceorg.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>
-
-