|
|||||||||
| 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.TermNumber
public class TermNumber
Each numerical term both at compile time and at run time, is an instance of this class.
| Constructor Summary | |
|---|---|
TermNumber(double numberIn)
To initialize this numerical term. |
|
| Method Summary | |
|---|---|
Term |
bind(Term[] binding)
Since this term is a numerical term, binding will not change it, therefore, simply this numerical term itself is returned. |
boolean |
equals(Term t)
Whether or not another term is equivalent to this numerical term. |
boolean |
findUnifier(Term t,
Term[] binding)
Find a unifier between this numerical term and another given term. |
double |
getNumber()
To get the value of this numerical term. |
boolean |
isGround()
This function always returns true because a
numerical term is always ground by definition. |
java.lang.String |
toCode()
This function produces Java code to create this numerical. |
java.lang.String |
toString()
This function returns the String representation of
the value of this numerical 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 TermNumber(double numberIn)
numberIn - the value this numerical term is set to have.| 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 double getNumber()
public boolean isGround()
true because a
numerical term is always ground by definition.
isGround in class Termpublic java.lang.String toCode()
toCode in class CompileTimeObjectpublic java.lang.String toString()
String representation of
the value of this numerical term.
toString in class Term
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||