public class GeoDistanceLinkWeight extends Object implements LinkWeight
| Constructor and Description |
|---|
GeoDistanceLinkWeight(DeviceService deviceService)
Creates a new link-weight with access to the specified device service.
|
public GeoDistanceLinkWeight(DeviceService deviceService)
deviceService - device service referencepublic double weight(TopologyEdge edge)
weight in interface org.onlab.graph.EdgeWeight<TopologyVertex,TopologyEdge>