info.aduna.linkmap.transform
Class ConstantWeightTransform

java.lang.Object
  extended by info.aduna.linkmap.transform.ConstantWeightTransform
All Implemented Interfaces:
Transform

public class ConstantWeightTransform
extends Object
implements Transform

ConstantWeightTransform sets all the weights in a Graph to a constant value.


Constructor Summary
ConstantWeightTransform()
           
 
Method Summary
 float getEdgeWeight()
           
 float getVertexWeight()
           
 void setEdgeWeight(float edgeWeight)
           
 void setVertexWeight(float vertexWeight)
           
 Graph transform(Graph graph)
          Transform the specified Graph and return the transformed Graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantWeightTransform

public ConstantWeightTransform()
Method Detail

getVertexWeight

public float getVertexWeight()

setVertexWeight

public void setVertexWeight(float vertexWeight)

getEdgeWeight

public float getEdgeWeight()

setEdgeWeight

public void setEdgeWeight(float edgeWeight)

transform

public Graph transform(Graph graph)
Description copied from interface: Transform
Transform the specified Graph and return the transformed Graph.

Specified by:
transform in interface Transform


Copyright © 1997-2008 Aduna. All Rights Reserved.