annas.graph
Class DefaultWeight

java.lang.Object
  extended by annas.graph.DefaultWeight
All Implemented Interfaces:
WeightedInterface

public class DefaultWeight
extends java.lang.Object
implements WeightedInterface

Default implementation of WeightedInterface

Author:
Sam Wilson

Field Summary
 
Fields inherited from interface annas.graph.WeightedInterface
DEFAULT_ARC_WEIGHT
 
Constructor Summary
DefaultWeight(java.lang.Double weight)
           
 
Method Summary
 java.lang.Double evaluate()
          Used to evaluate the weight function
 java.lang.Double getWeight()
          
 void setWeight(java.lang.Double weight)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWeight

public DefaultWeight(java.lang.Double weight)
Method Detail

getWeight

public java.lang.Double getWeight()


setWeight

public void setWeight(java.lang.Double weight)


evaluate

public java.lang.Double evaluate()
Used to evaluate the weight function

Specified by:
evaluate in interface WeightedInterface
Returns:
the result from evaluating the weight function