org.neo4j.graphalgo.impl.util
Class DoubleEvaluator

java.lang.Object
  extended by org.neo4j.graphalgo.impl.util.DoubleEvaluator
All Implemented Interfaces:
CostEvaluator<Double>

public class DoubleEvaluator
extends Object
implements CostEvaluator<Double>


Constructor Summary
DoubleEvaluator(String costpropertyName)
           
 
Method Summary
 Double getCost(Relationship relationship, Direction direction)
          This is the general method for looking up costs for relationships.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleEvaluator

public DoubleEvaluator(String costpropertyName)
Method Detail

getCost

public Double getCost(Relationship relationship,
                      Direction direction)
Description copied from interface: CostEvaluator
This is the general method for looking up costs for relationships. This can do anything, like looking up a property or running some small calculation.

Specified by:
getCost in interface CostEvaluator<Double>
direction - The direction in which the relationship is being evaluated, either Direction.INCOMING or Direction.OUTGOING.
Returns:
The cost for this edge/relationship


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.