public class AntiUnify
extends java.lang.Object
Constructor and Description |
---|
AntiUnify(RigidityFnc rigidFnc,
RigidityFncSubsequence rigidFncCommutative,
TermGraph g1,
TermGraph g2,
NodeFactory nf)
Attention: Do not run two instances in parallel, since
AntiUnifySystem uses global static arguments!
|
Modifier and Type | Method and Description |
---|---|
long |
antiUnify(boolean iterateAll,
boolean normalize)
Silently computes the generalizations.
|
long |
antiUnify(boolean iterateAll,
boolean normalize,
DebugLevel debugLevel,
java.io.PrintStream out)
Start computation with the specified PrintStream to show the
progress of the computation.
|
void |
callback(TermGraph generalization)
This callback function will be invoked for every found generalization.
|
java.util.Set<TermGraph> |
getNormalizedSet()
The set of all the computed and normalized generalizations.
|
void |
printDebug(DebugLevel debugLevel,
java.io.PrintStream out,
AntiUnifySystem sys) |
public AntiUnify(RigidityFnc rigidFnc, RigidityFncSubsequence rigidFncCommutative, TermGraph g1, TermGraph g2, NodeFactory nf)
public long antiUnify(boolean iterateAll, boolean normalize) throws IllegalAlignmentException
IllegalAlignmentException
public long antiUnify(boolean iterateAll, boolean normalize, DebugLevel debugLevel, java.io.PrintStream out) throws IllegalAlignmentException
IllegalAlignmentException
public void callback(TermGraph generalization)
public java.util.Set<TermGraph> getNormalizedSet()
public void printDebug(DebugLevel debugLevel, java.io.PrintStream out, AntiUnifySystem sys)