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.
|
| Modifier and Type | Method and Description |
|---|---|
double |
weight(TopologyEdge edge)
Returns the weight of the given edge as a unit-less number.
|
public GeoDistanceLinkWeight(DeviceService deviceService)
deviceService - device service referencepublic double weight(TopologyEdge edge)
EdgeWeightweight in interface EdgeWeight<TopologyVertex,TopologyEdge>edge - edge to be weighed