|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.openmath.OMObject
org.jscience.ml.openmath.OMFloat
public class OMFloat
Models an OpenMath float.
| Field Summary |
|---|
| Fields inherited from class org.jscience.ml.openmath.OMObject |
|---|
attributes |
| Constructor Summary | |
|---|---|
OMFloat()
Constructor. |
|
OMFloat(java.lang.String newFloat,
java.lang.String newBase)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the object (shallow copy). |
java.lang.Object |
copy()
Copies the object (full copy). |
double |
doubleValue()
Returns the float as a double. |
float |
floatValue()
Returns the float as a float. |
java.lang.String |
getBase()
Get the base. |
java.lang.String |
getFloat()
Gets the float. |
java.lang.String |
getType()
Gets the type. |
boolean |
isAtom()
Is this an atom object. |
boolean |
isComposite()
Is this a composite object. |
boolean |
isSame(OMObject object)
Determines if this is the same object. |
boolean |
isValid()
Determines if this is a valid object. |
void |
setBase(java.lang.String newBase)
Sets the base. |
void |
setFloat(java.lang.String newFloat)
Sets the float. |
void |
setFloat(java.lang.String newFloat,
java.lang.String newBase)
Sets the float. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class org.jscience.ml.openmath.OMObject |
|---|
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OMFloat()
public OMFloat(java.lang.String newFloat,
java.lang.String newBase)
newFloat - the float.newBase - the base.| Method Detail |
|---|
public java.lang.String getType()
getType in class OMObjectpublic void setFloat(java.lang.String newFloat)
newFloat - the float to set.
public void setFloat(java.lang.String newFloat,
java.lang.String newBase)
newFloat - the float.newBase - the base.public java.lang.String getFloat()
public void setBase(java.lang.String newBase)
newBase - the base.public java.lang.String getBase()
public double doubleValue()
java.lang.NumberFormatException - DOCUMENT ME!public float floatValue()
java.lang.NumberFormatException - DOCUMENT ME!public boolean isAtom()
isAtom in class OMObjectpublic boolean isComposite()
isComposite in class OMObjectpublic java.lang.String toString()
toString in class OMObjectpublic java.lang.Object clone()
clone in class OMObjectpublic java.lang.Object copy()
copy in class OMObjectpublic boolean isSame(OMObject object)
isSame in class OMObjectobject - the object to test against.
public boolean isValid()
isValid in class OMObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||