org.dhmp.util
Class Algorithm.BinaryFunction

java.lang.Object
  extended byorg.dhmp.util.Algorithm.BinaryFunction
Enclosing class:
Algorithm

public abstract static class Algorithm.BinaryFunction
extends java.lang.Object

Abstract fucntion for map transformation. It receives two object as argument and must return an object.


Constructor Summary
Algorithm.BinaryFunction()
           
 
Method Summary
abstract  java.lang.Object f(java.lang.Object o1, java.lang.Object o2)
          Function to be applied during map transformation involving two HierarchicalMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Algorithm.BinaryFunction

public Algorithm.BinaryFunction()
Method Detail

f

public abstract java.lang.Object f(java.lang.Object o1,
                                   java.lang.Object o2)
Function to be applied during map transformation involving two HierarchicalMap.

Parameters:
o1 - the original value of each node visited from first map.
o2 - the value of corresponding node from second map.
Returns:
the new value that will substitute the original one at first map.