public class GeoDistanceLinkWeight extends Object implements LinkWeigher
| Constructor and Description |
|---|
GeoDistanceLinkWeight(DeviceService deviceService)
Creates a new link-weight with access to the specified device service.
|
| Modifier and Type | Method and Description |
|---|---|
org.onlab.graph.Weight |
getInitialWeight() |
org.onlab.graph.Weight |
getNonViableWeight() |
org.onlab.graph.Weight |
weight(TopologyEdge edge) |
public GeoDistanceLinkWeight(DeviceService deviceService)
deviceService - device service referencepublic 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>public org.onlab.graph.Weight weight(TopologyEdge edge)
weight in interface org.onlab.graph.EdgeWeigher<TopologyVertex,TopologyEdge>