Package org.onosproject.net.topology
Class MetricLinkWeight
- java.lang.Object
- 
- org.onosproject.net.topology.MetricLinkWeight
 
- 
- All Implemented Interfaces:
- 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 SummaryConstructors Constructor Description MetricLinkWeight()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightgetInitialWeight()Returns initial weight value (i.e.WeightgetNonViableWeight()Returns weight of a link/path that should be skipped (can be considered as an infinite weight).Weightweight(TopologyEdge edge)Returns the weight of the given edge.
 
- 
- 
- 
Method Detail- 
getInitialWeightpublic Weight getInitialWeight() Description copied from interface:EdgeWeigherReturns initial weight value (i.e. weight of a "path" starting and terminating in the same vertex; typically 0 value is used).- Specified by:
- getInitialWeightin interface- EdgeWeigher<TopologyVertex,TopologyEdge>
- Returns:
- null path weight
 
 - 
getNonViableWeightpublic Weight getNonViableWeight() Description copied from interface:EdgeWeigherReturns weight of a link/path that should be skipped (can be considered as an infinite weight).- Specified by:
- getNonViableWeightin interface- EdgeWeigher<TopologyVertex,TopologyEdge>
- Returns:
- non viable weight
 
 - 
weightpublic Weight weight(TopologyEdge edge) Description copied from interface:EdgeWeigherReturns the weight of the given edge.- Specified by:
- weightin interface- EdgeWeigher<TopologyVertex,TopologyEdge>
- Parameters:
- edge- edge to be weighed
- Returns:
- edge weight
 
 
- 
 
-