|
|||||||||
| 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.set.AbstractSetTerm
public abstract class AbstractSetTerm
set term, - subterms are elements of set, ordered in our natural order
| Field Summary |
|---|
| Fields inherited from class ua.gradsoft.termware.AbstractComplexTerm |
|---|
emptyFv_ |
| Constructor Summary | |
|---|---|
AbstractSetTerm()
|
|
| Method Summary | |
|---|---|
PartialOrderingResult |
concreteOrder(Term x,
Substitution s)
compare for 'more concrete' relation. |
abstract Term |
createSame(Term[] newBody)
create term, with same name but new body. |
int |
findBoundUnifyIndex(Term t,
Substitution s)
return first index, which matched term t or throw MatchingFailure. |
int |
findSubtermBoundEqualsTo(Term t)
|
abstract int |
getArity()
get arity of term. |
String |
getName()
get name of term. |
Object |
getNameIndex()
get name index in bounded symbol table or sust string, if name in symbol table does not exists. |
abstract Term |
getSubtermAt(int i)
get i-th subterm. |
abstract int |
index(Term t)
|
abstract int |
indirectionLevel()
level of indirection - abstract set term can be setTerm or chain of SetTermWithoutElmenent |
abstract void |
insert(Term t)
|
abstract boolean |
isEmpty()
|
abstract void |
setSubtermAt(int i,
Term t)
set i-th subterm. |
abstract boolean |
substInside(Substitution s)
apply substitution s to current term. |
Term |
termClone()
do 'deep-clone' of object. |
| Methods inherited from class ua.gradsoft.termware.AbstractComplexTerm |
|---|
boundEquals, boundUnify, clone, emptyFv, findSubtermIndexBoundEqualsTo, freeEquals, freeUnify, getBigDecimal, getBigInteger, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getJavaObject, getLong, getNumber, getPatternName, getPatternNameIndex, 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, 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 |
| Constructor Detail |
|---|
public AbstractSetTerm()
| Method Detail |
|---|
public abstract Term createSame(Term[] newBody)
throws TermWareException
Term
createSame in class AbstractComplexTermTermWareExceptionpublic final String getName()
AbstractComplexTerm
getName in class AbstractComplexTermpublic final Object getNameIndex()
AbstractComplexTerm
getNameIndex in class AbstractComplexTermpublic abstract int getArity()
AbstractComplexTerm
getArity in class AbstractComplexTermpublic abstract Term getSubtermAt(int i)
AbstractComplexTerm
getSubtermAt in class AbstractComplexTermi - - index of subterm to get.
i
public abstract void setSubtermAt(int i,
Term t)
throws TermWareException
AbstractComplexTerm
setSubtermAt in class AbstractComplexTermi - - indext of subterm to set.t - - subterm to set.
TermWareException
public abstract boolean substInside(Substitution s)
throws TermWareException
s to current term.
substInside in class AbstractComplexTermTermWareException
public Term termClone()
throws TermWareException
AbstractComplexTerm
termClone in class AbstractComplexTermTermWareException
public int findSubtermBoundEqualsTo(Term t)
throws TermWareException
TermWareException
public int findBoundUnifyIndex(Term t,
Substitution s)
throws TermWareException
TermWareException
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
public abstract void insert(Term t)
throws TermWareException
TermWareExceptionpublic abstract boolean isEmpty()
public abstract int index(Term t)
throws TermWareException
TermWareExceptionpublic abstract int indirectionLevel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||