|
|||||||||
| 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
ua.gradsoft.termware.set.SetTerm
public class SetTerm
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 | |
|---|---|
SetTerm()
|
|
SetTerm(SetOfTerms subterms)
|
|
SetTerm(Term[] body)
|
|
| Method Summary | |
|---|---|
Term |
createSame(Term[] newBody)
create term, with same name but new body. |
int |
getArity()
return arity of set. |
Term |
getSubtermAt(int i)
get i-th subbterm. |
int |
index(Term t)
|
int |
indirectionLevel()
level of indirection - abstract set term can be setTerm or chain of SetTermWithoutElmenent |
void |
insert(Term t)
|
boolean |
isEmpty()
|
void |
setSubtermAt(int i,
Term t)
set i-th subterm. |
boolean |
substInside(Substitution s)
apply substitution s to current term. |
| Methods inherited from class ua.gradsoft.termware.set.AbstractSetTerm |
|---|
concreteOrder, findBoundUnifyIndex, findSubtermBoundEqualsTo, getName, getNameIndex, termClone |
| 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 SetTerm(Term[] body)
public SetTerm()
throws TermWareException
TermWareException
public SetTerm(SetOfTerms subterms)
throws TermWareException
TermWareException| Method Detail |
|---|
public Term createSame(Term[] newBody)
throws TermWareException
Term
createSame in class AbstractSetTermTermWareExceptionpublic final int getArity()
getArity in class AbstractSetTermpublic Term getSubtermAt(int i)
getSubtermAt in class AbstractSetTermi - - index of term in set
public void setSubtermAt(int i,
Term t)
throws TermWareException
AbstractComplexTerm
setSubtermAt in class AbstractSetTermi - - indext of subterm to set.t - - subterm to set.
TermWareException
public boolean substInside(Substitution s)
throws TermWareException
s to current term.
substInside in class AbstractSetTermTermWareExceptionpublic void insert(Term t)
insert in class AbstractSetTermpublic final boolean isEmpty()
isEmpty in class AbstractSetTerm
public int index(Term t)
throws TermWareException
index in class AbstractSetTermTermWareExceptionpublic int indirectionLevel()
AbstractSetTerm
indirectionLevel in class AbstractSetTerm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||