public class HopCountLinkWeigher extends Object implements LinkWeigher
| Modifier and Type | Field and Description |
|---|---|
static LinkWeigher |
DEFAULT_HOP_COUNT_WEIGHER |
| Constructor and Description |
|---|
HopCountLinkWeigher()
Creates a new hop-count weight.
|
HopCountLinkWeigher(double indirectLinkCost)
Creates a new hop-count weight with the specified cost of indirect links.
|
| Modifier and Type | Method and Description |
|---|---|
org.onlab.graph.Weight |
getInitialWeight() |
org.onlab.graph.Weight |
getNonViableWeight() |
org.onlab.graph.Weight |
weight(TopologyEdge edge) |
public static final LinkWeigher DEFAULT_HOP_COUNT_WEIGHER
public HopCountLinkWeigher()
public HopCountLinkWeigher(double indirectLinkCost)
indirectLinkCost - indirect link costpublic org.onlab.graph.Weight weight(TopologyEdge edge)
weight in interface org.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>public org.onlab.graph.Weight getInitialWeight()
getInitialWeight in interface org.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>public org.onlab.graph.Weight getNonViableWeight()
getNonViableWeight in interface org.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>