com.phoenixst.plexus

Interface Weight

public interface Weight

A weight function, which may be applied to Edges.

Since: 1.0

Version: $Revision: 1.5 $

Author: Ray A. Conner

Method Summary
doublegetWeight(Graph.Edge edge)
Gets the weight of the specified edge.
voidsetWeight(Graph.Edge edge, double weight)
Sets the weight of the specified edge (optional operation).

Method Detail

getWeight

public double getWeight(Graph.Edge edge)
Gets the weight of the specified edge.

Parameters: edge the edge whose weight is to be returned.

setWeight

public void setWeight(Graph.Edge edge, double weight)
Sets the weight of the specified edge (optional operation).

Parameters: edge the edge whose weight is to be set. weight the new weight of the specified edge.

Throws: UnsupportedOperationException if this method is not supported.

See the Plexus project home, hosted by SourceForge.
Copyright B) 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.