public class MetricLinkWeight extends Object implements LinkWeigher
Constructor and Description |
---|
MetricLinkWeight() |
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 Weight getInitialWeight()
EdgeWeigher
getInitialWeight
in interface EdgeWeigher<TopologyVertex,TopologyEdge>
public Weight getNonViableWeight()
EdgeWeigher
getNonViableWeight
in interface EdgeWeigher<TopologyVertex,TopologyEdge>
public Weight weight(TopologyEdge edge)
EdgeWeigher
weight
in interface EdgeWeigher<TopologyVertex,TopologyEdge>
edge
- edge to be weighed