Package com.nt.udc.io
Class COSARAttrFloat
java.lang.Object
com.nt.udc.io.COSARAttr
com.nt.udc.io.COSARAttrFloat
This class represents the float OSAR attribute.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]doublelonglongfloatgetValue()booleansetStringValue(String value) This function sets the attribute value based on a stringvoidsetValue(int value) booleanThis function is used to convert the value of another attribute to this type and store it.toString()Methods inherited from class com.nt.udc.io.COSARAttr
getDCField, getId, getIPValue, getType, idToInt, setId
-
Field Details
-
m_value
protected float m_value
-
-
Constructor Details
-
COSARAttrFloat
-
COSARAttrFloat
-
-
Method Details
-
getValue
public float getValue() -
getStringValue
- Overrides:
getStringValuein classCOSARAttr- Returns:
- The value as a string
- Throws:
Exception
-
getLongValue
- Overrides:
getLongValuein classCOSARAttr- Returns:
- The value as a long
- Throws:
Exception
-
getDoubleValue
- Overrides:
getDoubleValuein classCOSARAttr- Returns:
- The value as a double
- Throws:
Exception
-
getMillisValue
- Overrides:
getMillisValuein classCOSARAttr- Returns:
- The value as in milliseconds
- Throws:
Exception
-
getBytesValue
- Overrides:
getBytesValuein classCOSARAttr- Returns:
- The value as an array of bytes
- Throws:
Exception
-
getRecAttr
- Overrides:
getRecAttrin classCOSARAttr- Returns:
- The equivalent OSARecAttr
-
toString
-
setValue
public void setValue(int value) -
setStringValue
This function sets the attribute value based on a string- Overrides:
setStringValuein classCOSARAttr- Returns:
- true if successful, false otherwise
-
setValue
This function is used to convert the value of another attribute to this type and store it.
-