|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Node | +--VariableNode
This class implements a variable node.
Variable
Fields inherited from class Node |
MAX_PRIORITY, MIN_PRIORITY |
Constructor Summary | |
VariableNode(Variable id)
Constructor of the variable node. |
Method Summary | |
Node |
applySubst(Substitution sigma)
Applies a substitution to this node. |
boolean |
equals(Object o)
Tests if some other object is "equal to" this node. |
int |
getNumber(Type t)
Returns number of sub term with a specified type of this node. |
Type |
getType()
Returns the type of the node. |
void |
getVariables(Set vars)
Extends the set of variables with this one. |
boolean |
greaterThan(Node node)
Tests if this variable node is greater (in order) than a function call node. |
int |
hashCode()
Returns a hash code for this variable node. |
Variable |
identifier()
Returns the identifier of the variable. |
void |
inductionVariables(Map iv,
int priority)
Extends the map of induction variable with the one of this term. |
void |
makeFilter(Node node,
Substitution sigma)
Constructs a filter between this variable node and an other node. |
Node |
simplify(RuleTable rules,
Conjecture clause)
Applies a rewrite step on this node in a specified conjecture. |
String |
toString()
Returns a string representation of this variable node. |
Methods inherited from class Node |
bot, botPath, find, getAsPart, getSubterm, isConstant, isConstructorRooted, isGround, nbt, ntp, numAsPart, remplaceSubterm, top, topPath, toStringInfix, withNewVariables |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VariableNode(Variable id)
id
- identifier of the variable.Method Detail |
public Type getType()
getType
in class Node
public Variable identifier()
public Node applySubst(Substitution sigma)
applySubst
in class Node
sigma
- the substitution map.public void makeFilter(Node node, Substitution sigma) throws SubstitutionStop
makeFilter
in class Node
node
- the other node.sigma
- the substitution map in construction.SubstitutionStop
- public boolean greaterThan(Node node)
greaterThan
in class Node
node
- the other node.public Node simplify(RuleTable rules, Conjecture clause)
rules
- the table of rewrite rules.clause
- the conjecture where occurs simplifying.RuleTable
public boolean equals(Object o)
equals
in class Object
o
- the object with which to compare.public void inductionVariables(Map iv, int priority)
inductionVariables
in class Node
iv
- the map in construction.priority
- the current priority.public void getVariables(Set vars)
getVariables
in class Node
vars
- the set of variables in construction.public int getNumber(Type t)
getNumber
in class Node
t
- the type.public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |