org.neo4j.graphalgo.impl.util
Class IntegerEvaluator

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

public class IntegerEvaluator
extends Object
implements CostEvaluator<Integer>


Constructor Summary
IntegerEvaluator(String costpropertyName)
           
 
Method Summary
 Integer 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

IntegerEvaluator

public IntegerEvaluator(String costpropertyName)
Method Detail

getCost

public Integer 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<Integer>
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.