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()
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