|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectua.gradsoft.termware.Term
ua.gradsoft.termware.AbstractComplexTerm
ua.gradsoft.termware.ClassPatternTerm
public class ClassPatternTerm
Term for class pattern. JObject with class 'name' math pattern @class(name,$x)
| Field Summary |
|---|
| Fields inherited from class ua.gradsoft.termware.AbstractComplexTerm |
|---|
emptyFv_ |
| Method Summary | |
|---|---|
boolean |
boundUnify(Term t,
Substitution s)
unification of this and t via substitution s,
whith bound propositional variables. |
PartialOrderingResult |
concreteOrder(Term x,
Substitution s)
compare for 'more concrete' relation. |
static Term |
createClassPatternTerm(String name,
Term t)
|
static Term |
createClassPatternTerm(Term x1,
Term x2)
|
Term |
createSame(Term[] newBody)
create term, with same name but new body. |
int |
findSubtermIndexBoundEqualsTo(Term x)
|
int |
getArity()
get arity of term. |
String |
getName()
get name of term. |
Object |
getNameIndex()
get index of name in termware symbol term. |
String |
getPatternName()
get name, for which we can forse unfication. |
Object |
getPatternNameIndex()
get index for pattern name. |
Term |
getSubtermAt(int i)
get i-th subterm. |
void |
setSubtermAt(int i,
Term t)
set i-th subterm. |
Term |
termClone()
do 'deep-clone' of object. |
| Methods inherited from class ua.gradsoft.termware.AbstractComplexTerm |
|---|
boundEquals, clone, emptyFv, freeEquals, freeUnify, getBigDecimal, getBigInteger, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getJavaObject, getLong, getNumber, getPrimaryType0, getShort, getString, getTerm, getXIndex, isAtom, isBigDecimal, isBigInteger, isBoolean, isByte, isChar, isComplexTerm, isDouble, isFloat, isInt, isJavaObject, isLong, isNil, isNumber, isShort, isString, isX, maxFv, minFv, normalizeFv, print, recheckEmptyFv, resetFV, shiftFv, subst, substInside, termCompare |
| Methods inherited from class ua.gradsoft.termware.Term |
|---|
containsSubtermBoundEqualsTo, getAsBigDecimal, getAsBigInteger, getAsBoolean, getAsByte, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsJavaObject, getAsLong, getAsNumber, getAsShort, getAsString, getPrimaryType1, print, println, println |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Term createClassPatternTerm(String name,
Term t)
throws TermWareException
TermWareException
public static Term createClassPatternTerm(Term x1,
Term x2)
throws TermWareException
TermWareExceptionpublic String getName()
getName in class AbstractComplexTermpublic Object getNameIndex()
getNameIndex in class AbstractComplexTermpublic String getPatternName()
AbstractComplexTerm
getPatternName in class AbstractComplexTermpublic Object getPatternNameIndex()
AbstractComplexTerm
getPatternNameIndex in class AbstractComplexTermpublic int getArity()
AbstractComplexTerm
getArity in class AbstractComplexTermpublic Term getSubtermAt(int i)
AbstractComplexTerm
getSubtermAt in class AbstractComplexTermi - - index of subterm to get.
i
public void setSubtermAt(int i,
Term t)
throws TermWareException
AbstractComplexTerm
setSubtermAt in class AbstractComplexTermi - - indext of subterm to set.t - - subterm to set.
TermWareException
public Term createSame(Term[] newBody)
throws TermWareException
Term
createSame in class AbstractComplexTermTermWareException
public Term termClone()
throws TermWareException
AbstractComplexTerm
termClone in class AbstractComplexTermTermWareException
public boolean boundUnify(Term t,
Substitution s)
throws TermWareException
this and t via substitution s,
whith bound propositional variables.
boundUnify in class AbstractComplexTermTermWareException
public int findSubtermIndexBoundEqualsTo(Term x)
throws TermWareException
findSubtermIndexBoundEqualsTo in class AbstractComplexTermTermWareException
public PartialOrderingResult concreteOrder(Term x,
Substitution s)
throws TermWareException
Term x.<(concrete)<(y) means, that for each substitution
of free variables sx exists substituion sy :
x[sx] = y[sy] . s store previously matched variables.
concreteOrder in class TermTermWareException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||