Class OMFloat
java.lang.Object
org.episteme.core.mathematics.loaders.openmath.OMObject
org.episteme.core.mathematics.loaders.openmath.OMFloat
- All Implemented Interfaces:
Serializable, Cloneable
Models an OpenMath float.
- Version:
- $Revision: 1.3 $
- Author:
- Manfred N. Riem (mriem@manorrock.org)
- See Also:
-
Field Summary
Fields inherited from class OMObject
attributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the object (shallow copy).copy()Copies the object (full copy).doubleReturns the float as a double.floatReturns the float as a float.getBase()Get the base.getFloat()Gets the float.getType()Gets the type.booleanisAtom()Is this an atom object.booleanIs this a composite object.booleanDetermines if this is the same object.booleanisValid()Determines if this is a valid object.voidSets the base.voidSets the float.voidSets the float.toString()Returns a string representation of the object.Methods inherited from class OMObject
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes
-
Constructor Details
-
OMFloat
public OMFloat()Constructor. -
OMFloat
-
-
Method Details
-
getType
-
setFloat
-
setFloat
-
getFloat
-
setBase
-
getBase
-
doubleValue
public double doubleValue()Returns the float as a double.- Returns:
- the float (as double).
- Throws:
NumberFormatException- if an error occurs
-
floatValue
public float floatValue()Returns the float as a float.- Returns:
- the float (as float).
- Throws:
NumberFormatException- if an error occurs
-
isAtom
-
isComposite
public boolean isComposite()Is this a composite object.- Specified by:
isCompositein classOMObject- Returns:
- false because this is not a composite.
-
toString
-
clone
-
copy
-
isSame
-
isValid
-