org.semwebcentral.sweetrules.ruleml
Class SweetDiffFacts

java.lang.Object
  extended byorg.semwebcentral.sweetrules.ruleml.SweetDiffFacts

public class SweetDiffFacts
extends java.lang.Object

Created on Oct 28, 2004 This class generates a diff of 2 fact bases

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Constructor Summary
SweetDiffFacts()
           
 
Method Summary
 void generateDiff(org.semwebcentral.sweetrules.ruleml.sweetrulemlobjectmodel.FactType[] oldFactArray, org.semwebcentral.sweetrules.ruleml.sweetrulemlobjectmodel.FactType[] newFactArray, java.util.Vector addedFacts, java.util.Vector removedFacts)
          Generates a diff of the old and the new facts
 void generateDiff(org.semwebcentral.sweetrules.ruleml.sweetrulemlobjectmodel.RulebaseType oldRuleBase, org.semwebcentral.sweetrules.ruleml.sweetrulemlobjectmodel.RulebaseType newRuleBase, java.util.Vector addedFacts, java.util.Vector removedFacts)
          Generates a diff of the old and the new facts in the specified rulebases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SweetDiffFacts

public SweetDiffFacts()
Method Detail

generateDiff

public void generateDiff(org.semwebcentral.sweetrules.ruleml.sweetrulemlobjectmodel.RulebaseType oldRuleBase,
                         org.semwebcentral.sweetrules.ruleml.sweetrulemlobjectmodel.RulebaseType newRuleBase,
                         java.util.Vector addedFacts,
                         java.util.Vector removedFacts)
Generates a diff of the old and the new facts in the specified rulebases. The non-fact entities in the rule bases are ignored

Parameters:
oldRuleBase - The old rule base
newRuleBase - The new rule base
addedFacts - The output vector of added facts i.e. facts only in the new rulebase
removedFacts - The output vector of removed facts i.e. facts only in the old rulebase

generateDiff

public void generateDiff(org.semwebcentral.sweetrules.ruleml.sweetrulemlobjectmodel.FactType[] oldFactArray,
                         org.semwebcentral.sweetrules.ruleml.sweetrulemlobjectmodel.FactType[] newFactArray,
                         java.util.Vector addedFacts,
                         java.util.Vector removedFacts)
Generates a diff of the old and the new facts

Parameters:
oldFactArray - The old facts
newFactArray - The new facts
addedFacts - The facts that were added (output of this API)
removedFacts - The facts that were removed (output of this API)