annas.graph
Class DefaultWeight
java.lang.Object
annas.graph.DefaultWeight
- All Implemented Interfaces:
- WeightedInterface
public class DefaultWeight
- extends java.lang.Object
- implements WeightedInterface
Default implementation of WeightedInterface
- Author:
- Sam Wilson
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 |
DefaultWeight
public DefaultWeight(java.lang.Double weight)
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