public class PLFloat extends PLTerm
Constructor and Description |
---|
PLFloat(double v)
Creates a new
PLFloat object
with the given float value. |
Modifier and Type | Method and Description |
---|---|
PLTerm |
copy()
Makes a full copy of this
PLFloat object. |
boolean |
equals(PLTerm t)
Comparison between Prolog terms.
|
double |
getValue()
Returns the value of this Prolog float as a Java
double . |
boolean |
isRunnable()
Execution test on Prolog objects.
|
java.lang.Object |
javaRepr()
Java representation of a Prolog float.
|
java.lang.Object |
javaRepr(CiaoJava.PLInterpreter i)
Java representation of a Prolog float.
|
java.lang.String |
toString()
String representation of a Prolog float.
|
isAtom, isFloat, isInteger, isList, isNil, isString, isStructure, isVariable, unify
public PLFloat(double v)
PLFloat
object
with the given float value.v
- double
value that will contain the new object.public java.lang.String toString()
public java.lang.Object javaRepr(CiaoJava.PLInterpreter i)
Double
object that contains the Prolog float.javaRepr
in class PLTerm
i
- is the PLInterpreter instance used to translate
Prolog representations of Java objects. Although
this method makes no use of this argument, is
included to keep the declaration of this method
as abstract in class PLTerm
.Object
instance that contains a
Double
object.public java.lang.Object javaRepr()
Double
object that contains the Prolog float.Object
instance that contains a
Double
object.public double getValue()
double
.PLFloat
as a Java
double
.public boolean isRunnable()
PLTerm
class.isRunnable
in class PLTerm
false
.public boolean equals(PLTerm t)