|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KsTerm
Interface that encapsulates an n-ary term from a knowledge source.
| Method Summary | |
|---|---|
KsValue |
getArg(int i)
Answer the i'th argument of the term |
int |
getArity()
Answer the arity for this term. |
KsSymbol |
getFunctor()
Answer the functor of the term as a string |
KsList |
getPositionalArgsList()
Answer a KsList of the positional arguments of this term. |
java.util.List |
listArgs()
Answer a list of the arguments of this term |
| Methods inherited from interface org.nuin.ks.values.KsNamedArgs |
|---|
asMap, getArg, getArg, getNamedArgsList, hasArg, hasArg, initialise, listNamedArgs, setArg, setArg |
| Methods inherited from interface org.nuin.ks.values.KsValue |
|---|
canHaveURI, getURI, isAction, isAnonymous, isCollection, isConst, isEvent, isGround, isList, isMessage, isMetaValue, isSymbol, isTerm, isVar, listVariables, substitute |
| Methods inherited from interface org.nuin.ks.values.KsIdentifier |
|---|
asTerm, getSymbol |
| Methods inherited from interface org.nuin.ks.values.KsValue |
|---|
canHaveURI, getURI, isAction, isAnonymous, isCollection, isConst, isEvent, isGround, isList, isMessage, isMetaValue, isSymbol, isTerm, isVar, listVariables, substitute |
| Method Detail |
|---|
int getArity()
KsValue getArg(int i)
Answer the i'th argument of the term
i - The index of the required argument.
Throws - IndexOutOfBoundsException if i is out of range (i < 0 || i >= getArity())KsSymbol getFunctor()
java.util.List listArgs()
Answer a list of the arguments of this term
KsList getPositionalArgsList()
Answer a KsList of the positional arguments of this term.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||