at.jku.risc.stout.hoau.algo
public class AntiUnifyProblem extends Object implements Equation
Modifier and Type | Field and Description |
---|---|
static String |
PRINT_EQ_SEPARATOR |
static String |
PRINT_VAR_SEPARATOR |
Constructor and Description |
---|
AntiUnifyProblem() |
Modifier and Type | Method and Description |
---|---|
boolean |
abstrContains(TermAtom boundVar)
Tests whether the set of abstracted variables contains the given
variable.
|
BoundVariable |
abstrItem(int index)
Returns the abstracted bound variable corresponding to the given position
index from the list of abstractions.
|
void |
abstrLambda()
Abstracts the lambda bound variables of both sides of the equation of
this AUP.
|
Set<BoundVariable> |
abstrSet()
Returns the set of abstracted variables.
|
int |
abstrSize()
Returns the length of the list of abstractions.
|
void |
addAbstrVar(BoundVariable boundVar)
Adds a bound variable to the list of abstractions
|
TermNode |
bindAll(TermNode t)
Binds all the abstracted variables to the given term.
|
AntiUnifyProblem |
clone() |
void |
copyAbstr(AntiUnifyProblem eq)
Copies the variables from the abstraction list of the given AUP into the
abstraction list of this AUP.
|
TermNode |
createHO_Fnc()
X(x,y,...) where X is the generalization variable and x,y,...
|
TermNode |
createHO_Fnc(Map<Variable,Variable> pi)
X(x,y,...) where X is the generalization variable and x,y,...
|
TermNode |
createLambdaHedge(TermNode lambda)
Creates a lambda hedge which contains the given term node and all the
abstracted bound variables.
|
Variable |
getGeneralizationVar()
Returns the generalization variable, which represents the most general
generalization of this AUP.
|
TermNode |
getLeft()
Returns the left hand side of the equation.
|
TermNode |
getRight()
Returns the right hand side of the equation.
|
void |
setLeft(TermNode left)
Sets the left hand side of the equation to the given
TermNode.
|
void |
setRight(TermNode right)
Sets the right hand side of the equation to the given
TermNode.
|
String |
toString() |
public static String PRINT_EQ_SEPARATOR
public static String PRINT_VAR_SEPARATOR
public boolean abstrContains(TermAtom boundVar)
public BoundVariable abstrItem(int index)
public void abstrLambda()
public Set<BoundVariable> abstrSet()
public int abstrSize()
public void addAbstrVar(BoundVariable boundVar)
public AntiUnifyProblem clone()
public void copyAbstr(AntiUnifyProblem eq)
public TermNode createHO_Fnc()
public TermNode createHO_Fnc(Map<Variable,Variable> pi)
public TermNode createLambdaHedge(TermNode lambda)
public Variable getGeneralizationVar()
public TermNode getLeft()
Equation
public TermNode getRight()
Equation
public void setLeft(TermNode left)
Equation
public void setRight(TermNode right)
Equation