public class COSARAttrFloat extends COSARAttr
| Modifier and Type | Field and Description |
|---|---|
protected float |
m_value |
| Constructor and Description |
|---|
COSARAttrFloat(java.lang.String id) |
COSARAttrFloat(java.lang.String id,
float value) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytesValue() |
double |
getDoubleValue() |
long |
getLongValue() |
long |
getMillisValue() |
OSARecAttr |
getRecAttr() |
java.lang.String |
getStringValue() |
float |
getValue() |
boolean |
setStringValue(java.lang.String value)
This function sets the attribute value based on a string
|
boolean |
setValue(COSARAttr attr)
This function is used to convert the value of another
attribute to this type and store it.
|
void |
setValue(int value) |
java.lang.String |
toString() |
getDCField, getId, getIPValue, getType, idToInt, setIdpublic COSARAttrFloat(java.lang.String id,
float value)
public COSARAttrFloat(java.lang.String id)
public float getValue()
public java.lang.String getStringValue()
throws java.lang.Exception
getStringValue in class COSARAttrjava.lang.Exceptionpublic long getLongValue()
throws java.lang.Exception
getLongValue in class COSARAttrjava.lang.Exceptionpublic double getDoubleValue()
throws java.lang.Exception
getDoubleValue in class COSARAttrjava.lang.Exceptionpublic long getMillisValue()
throws java.lang.Exception
getMillisValue in class COSARAttrjava.lang.Exceptionpublic byte[] getBytesValue()
throws java.lang.Exception
getBytesValue in class COSARAttrjava.lang.Exceptionpublic OSARecAttr getRecAttr()
getRecAttr in class COSARAttrpublic java.lang.String toString()
public void setValue(int value)
public boolean setStringValue(java.lang.String value)
setStringValue in class COSARAttr