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 | 
|---|---|
Weight | 
getInitialWeight()
Returns initial weight value (i.e. 
 | 
Weight | 
getNonViableWeight()
Returns weight of a link/path that should be skipped
 (can be considered as an infinite weight). 
 | 
Weight | 
weight(TopologyEdge edge)
Returns the weight of the given edge. 
 | 
public GeoDistanceLinkWeight(DeviceService deviceService)
deviceService - device service referencepublic Weight getInitialWeight()
EdgeWeighergetInitialWeight in interface EdgeWeigher<TopologyVertex,TopologyEdge>public Weight getNonViableWeight()
EdgeWeighergetNonViableWeight in interface EdgeWeigher<TopologyVertex,TopologyEdge>public Weight weight(TopologyEdge edge)
EdgeWeigherweight in interface EdgeWeigher<TopologyVertex,TopologyEdge>edge - edge to be weighed