|
GNU Prolog for Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended by gnu.prolog.term.Term extended by gnu.prolog.term.AtomicTerm extended by gnu.prolog.term.NumericTerm extended by gnu.prolog.term.FloatTerm
public class FloatTerm
floating point number term
| Field Summary | |
|---|---|
double |
value
value of term |
| Fields inherited from class gnu.prolog.term.Term |
|---|
ATOM, COMPOUND, FLOAT, INTEGER, JAVA_OBJECT, UNKNOWN, VARIABLE |
| Constructor Summary | |
|---|---|
FloatTerm(double val)
a constructor |
|
FloatTerm(String str)
get floating point number term |
|
| Method Summary | |
|---|---|
int |
getTermType()
get type of term |
| Methods inherited from class gnu.prolog.term.AtomicTerm |
|---|
clone, clone |
| Methods inherited from class gnu.prolog.term.Term |
|---|
dereference, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final double value
| Constructor Detail |
|---|
public FloatTerm(String str)
str - string representation of float number
IllegalArgumentException - when str is not valid stringpublic FloatTerm(double val)
val - double value| Method Detail |
|---|
public int getTermType()
getTermType in class Term
|
GNU Prolog for Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||