|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.planning.CompileTimeObject
org.jscience.computing.ai.planning.Term
org.jscience.computing.ai.planning.TermCall
public class TermCall
Each call term, both at compile time and at run time, is an instance of this class.
| Constructor Summary | |
|---|---|
TermCall(List argsIn,
Calculate calculateIn,
java.lang.String funcIn)
To initialize this call term. |
|
TermCall(List argsIn,
java.lang.String funcIn)
To initialize this call term. |
|
| Method Summary | |
|---|---|
Term |
bind(Term[] binding)
To apply a given binding to the list of arguments of the function call. |
boolean |
equals(Term t)
Whether or not another term is equivalent to the result of this call term. |
boolean |
findUnifier(Term t,
Term[] binding)
Find a unifier between the result of this call term and another given term. |
boolean |
isGround()
Check the argument list of this call term for variables. |
java.lang.String |
toCode()
This function produces Java code to create this call term. |
java.lang.String |
toString()
This function is used to print this call term. |
| Methods inherited from class org.jscience.computing.ai.planning.Term |
|---|
isNil, merge, merge, print |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TermCall(List argsIn,
java.lang.String funcIn)
argsIn - the argument list.funcIn - the name of the function to be applied.
public TermCall(List argsIn,
Calculate calculateIn,
java.lang.String funcIn)
argsIn - the argument list.calculateIn - the Java implementation of the function to be
applied.funcIn - the name of the function to be applied.| Method Detail |
|---|
public Term bind(Term[] binding)
bind in class Termbinding - DOCUMENT ME!
public boolean equals(Term t)
equals in class Termt - DOCUMENT ME!
public boolean findUnifier(Term t,
Term[] binding)
findUnifier in class Termt - DOCUMENT ME!binding - DOCUMENT ME!
public boolean isGround()
isGround in class Termpublic java.lang.String toCode()
toCode in class CompileTimeObjectpublic java.lang.String toString()
toString in class Term
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||