|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ifcomputer.minerva.MinervaTerm
|
+--com.ifcomputer.minerva.MinervaNumber
|
+--com.ifcomputer.minerva.MinervaDouble
The class MinervaDouble is used to represent a
value of type double.
| Field Summary |
| Fields inherited from class com.ifcomputer.minerva.MinervaTerm |
ATOM, COMPOUND, DOUBLE, LIST, LONG, OBJECT, VARIABLE |
| Constructor Summary | |
MinervaDouble(double value)
Constructs a Minerva double term, representing the value 'value'. |
|
| Method Summary | |
double |
doubleValue()
This function returns the value represented by the term. |
boolean |
equals(java.lang.Object other)
This function returns true, if 'other' is a MinervaDouble term representing the same value as 'this'. |
int |
hashCode()
This function calculates a hashcode for the term. |
long |
longValue()
This function returns the value represented by the term as a long value |
java.lang.String |
toString()
This function stringifies the term into a format readable by the Minerva read predicates. |
int |
typeOf()
This function returns the type ( VARIABLE,
ATOM, etc.) of this term. |
| Methods inherited from class com.ifcomputer.minerva.MinervaTerm |
getEnumeration, getListLength, getStringArray, getTermArray, isList, reset, resolve, setValue |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MinervaDouble(double value)
| Method Detail |
public long longValue()
longValue in class MinervaNumberpublic double doubleValue()
doubleValue in class MinervaNumberpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int typeOf()
MinervaTermVARIABLE,
ATOM, etc.) of this term.
typeOf in class MinervaTermcom.ifcomputer.minerva.MinervaTermMinervaTerm.VARIABLE,
MinervaTerm.ATOM,
MinervaTerm.LONG,
MinervaTerm.DOUBLE,
MinervaTerm.OBJECT,
MinervaTerm.COMPOUND,
MinervaTerm.LIST
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||