|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.svincent.moksa.WamObject
|
+--com.svincent.moksa.PrologTerm
|
+--com.svincent.moksa.WamFloat
A WamFloat is a Prolog constant for a floating-point number
| Fields inherited from class com.svincent.moksa.PrologTerm |
EmptyArray |
| Constructor Summary | |
WamFloat(PrologEngine _engine,
double _value)
Builds a new WamFloat with the given name. |
|
| Method Summary | |
java.lang.Object |
accept(PrologTermVisitor v,
java.lang.Object parm)
Allow PrologTermVisitor to access this PrologTerm. |
PrologTerm |
clonePrologTerm(java.util.Map objs)
|
PrologTerm |
evaluateExpression()
Evaluates this term as an expression. |
double |
floatValue()
Returns this Float's integral value. |
java.lang.String |
getName()
Retrieves this WamFloat's name. |
PrologTerm |
getNameConstant()
Retrieves this WamInteger's name as a term. |
boolean |
isConstant()
Returns true iff this is a constant. |
boolean |
isFloat()
Returns true iff this is a WamFloat. |
void |
tag(java.io.PrintWriter out)
Writes a short human-readable representation of this object to the given Writer. |
boolean |
unify(PrologTerm _that,
boolean doBindings)
Unification algorithm. |
| Methods inherited from class com.svincent.moksa.PrologTerm |
clonePrologTerm,
deref,
getArity,
getPriority,
intValue,
isAtom,
isCompoundTerm,
isEmptyList,
isInteger,
isJavaObject,
isList,
isNonEmptyList,
isStreamId,
isStructure,
isVariable,
printVariables,
setPriority,
unify,
unifyWithoutBindings,
untrail |
| Methods inherited from class com.svincent.moksa.WamObject |
tag |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public WamFloat(PrologEngine _engine,
double _value)
| Method Detail |
public java.lang.String getName()
public PrologTerm getNameConstant()
public boolean isFloat()
public boolean isConstant()
public double floatValue()
public java.lang.Object accept(PrologTermVisitor v,
java.lang.Object parm)
public boolean unify(PrologTerm _that,
boolean doBindings)
public PrologTerm clonePrologTerm(java.util.Map objs)
public PrologTerm evaluateExpression()
throws PrologException
public void tag(java.io.PrintWriter out)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/
Copyright © 1999 Shawn P. Vincent.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.