|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedType
uk.ac.ic.doc.automed.wrappers.AutoMedFloat
public class AutoMedFloat
Provides generic representation of floating values with abritrary precision.
Field Summary |
---|
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
---|
BOOLEAN, FLOAT, INTEGER, NULL_STR, STRING, TIME, TUPLE |
Constructor Summary | |
---|---|
AutoMedFloat()
Create a new AutoMedFloat that is null in value |
|
AutoMedFloat(double value,
int bits)
Create a new AutoMedFloat from a 64 bit floating point value. |
|
AutoMedFloat(float value,
int bits)
Create a new AutoMedFloat from a 32 bit floating point value. |
|
AutoMedFloat(java.lang.String text)
Create a new AutoMedFloat from text, creating a null value if the text cannon be parsed. |
Method Summary | |
---|---|
AutoMedFloat |
add(AutoMedFloat v)
Return the sum of two AutoMedFloats. |
AutoMedFloat |
divide(AutoMedFloat v)
Return the division of two AutoMedFloats. |
double |
doubleValue()
Return the value of this AutoMedFloat as an double |
boolean |
equals(AutoMedType v)
Test two AutoMedTypes for equality, performing conversions as appropriate. |
float |
floatValue()
Return the value of this AutoMedFloat as an float |
int |
getType()
Return the Type (INTEGER, TUPLE, ...) of this AutoMedType |
AutoMedFloat |
multiply(AutoMedFloat v)
Return the multiplication of two AutoMedFloats. |
AutoMedFloat |
subtract(AutoMedFloat v)
Return the difference of two AutoMedFloats. |
java.lang.String |
toString()
Return a string representation of this AutoMedFloat. |
Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
---|
isLiteral, isNull, isNumeric |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AutoMedFloat(java.lang.String text)
public AutoMedFloat(float value, int bits)
public AutoMedFloat(double value, int bits)
public AutoMedFloat()
Method Detail |
---|
public float floatValue()
public double doubleValue()
doubleValue
in class AutoMedType
public AutoMedFloat add(AutoMedFloat v)
public AutoMedFloat subtract(AutoMedFloat v)
public AutoMedFloat divide(AutoMedFloat v)
public AutoMedFloat multiply(AutoMedFloat v)
public java.lang.String toString()
toString
in class AutoMedType
public boolean equals(AutoMedType v)
AutoMedType
equals
in class AutoMedType
public final int getType()
AutoMedType
getType
in class AutoMedType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |