|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents non-elementary objects that can change depending on interpretation and/or variable assignment, or objects that reference such objects.
Method Summary | |
boolean |
contains(Variable v)
Checks if this Unifyable contains a given Variable (in that case, they cannot be unified). |
Object |
deReferenceVariables()
Replaces all the variables in this Unifyable by their values. |
Collection |
getVariables(Collection target)
Retrieves the variables in this Unifyable and places them into a provided target collection. |
boolean |
unify(Object o,
List stack)
Attempts to unify with another object, that is find a variable assignment that will make the two objects equal. |
Method Detail |
public boolean contains(Variable v)
v
- the variable to look for
public Collection getVariables(Collection target)
target
- the collection to which the variables are added. If null, and this Unifyable
contains variables, a new collection is created.
public Object deReferenceVariables()
this
is returned if no variables needed to be dereferenced.Variable
public boolean unify(Object o, List stack)
o
- the object to unify with.stack
- the variable stack
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |