at.jku.risc.stout.nau.algo
public class AntiUnifySystem extends Printable
Constructor and Description |
---|
AntiUnifySystem(NodeFactory factory,
EquationSystem<AntiUnifyProblem> problemSet,
FreshnessCtx nablaIn)
Creates and initializes the rule based system.
|
AntiUnifySystem(NodeFactory factory,
EquationSystem<AntiUnifyProblem> problemSet,
FreshnessCtx nablaIn,
Collection<? extends Atom> atoms,
List<AntiUnifyProblem> store,
FreshnessCtx nablaGen,
Substitution sigma)
Creates and initializes the rule based system.
|
Modifier and Type | Method and Description |
---|---|
AntiUnifyProblem |
addEquation(NominalTerm left,
NominalTerm right,
boolean deepCopy)
Adds an anti-unification problem to the set of problems.
|
void |
compute()
Computes the result silently.
|
void |
compute(DebugLevel debugLevel,
PrintStream debugOut)
Computes the result and prints progress information to
PrintStream according to DebugLevel.
|
FreshnessCtx |
getNablaGen()
The freshness context of the generalization after compute()
succeeded.
|
EquationSystem<AntiUnifyProblem> |
getProblemSet()
Returns the problem set which is empty after compute()
succeeded.
|
Substitution |
getSigma()
The substitution sigma contains the generalization after
compute() succeeded.
|
List<AntiUnifyProblem> |
getStore()
Returns the store where all the disagreements are stored during the
computation.
|
void |
printString(Writer toPrint)
Writes a string representation of this object into an arbitrary
Writer.
|
printString, toString
public AntiUnifySystem(NodeFactory factory, EquationSystem<AntiUnifyProblem> problemSet, FreshnessCtx nablaIn)
AntiUnify
public AntiUnifySystem(NodeFactory factory, EquationSystem<AntiUnifyProblem> problemSet, FreshnessCtx nablaIn, Collection<? extends Atom> atoms, List<AntiUnifyProblem> store, FreshnessCtx nablaGen, Substitution sigma)
AntiUnify
public AntiUnifyProblem addEquation(NominalTerm left, NominalTerm right, boolean deepCopy) throws ControlledException
ControlledException
public void compute() throws ControlledException
ControlledException
public void compute(DebugLevel debugLevel, PrintStream debugOut) throws ControlledException
ControlledException
public FreshnessCtx getNablaGen()
public EquationSystem<AntiUnifyProblem> getProblemSet()
public Substitution getSigma()
public List<AntiUnifyProblem> getStore()
public void printString(Writer toPrint) throws IOException
Printable
printString
in class Printable
IOException