biz.hammurapi.rules
Class KnowledgeMaximizingCompactor

java.lang.Object
  extended by biz.hammurapi.rules.KnowledgeMaximizingCompactor
All Implemented Interfaces:
KnowledgeCompactor

public class KnowledgeMaximizingCompactor
extends java.lang.Object
implements KnowledgeCompactor


Constructor Summary
KnowledgeMaximizingCompactor()
           
 
Method Summary
 java.util.List compact(java.util.List results)
          This method preprocesses objects before returning them from getObjects() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnowledgeMaximizingCompactor

public KnowledgeMaximizingCompactor()
Method Detail

compact

public java.util.List compact(java.util.List results)
This method preprocesses objects before returning them from getObjects() method. This implementation "maximizes knowledge" i.e. removes conclusions for which there are superceding conslusions. E.g. Father(John, Peter) supercedes Parent(John, Peter) and if both these conclusions are in the source collection then Parent(John, Peter) will not be included in the target collection. If there are two equal conclusions then their derivations are merged and only one conclusion is retained.

Specified by:
compact in interface KnowledgeCompactor
Parameters:
results -
finalCollection -
Returns:


Copyright © 2005 Hammurapi Group. All Rights Reserved.