Package com.nt.udc.io
Class COSARAttrDouble
java.lang.Object
com.nt.udc.io.COSARAttr
com.nt.udc.io.COSARAttrDouble
- Direct Known Subclasses:
COSARAttrSeconds
This class represents the double OSAR attribute.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCOSARAttrDouble(int type, String id, double value) COSARAttrDouble(String id, double value) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]doublelonglongdoublegetValue()booleansetStringValue(String value) This function sets the attribute value based on a stringvoidsetValue(double value) booleanThis function is used to convert a value obtained from another attribute to this type.toString()Methods inherited from class com.nt.udc.io.COSARAttr
getDCField, getId, getIPValue, getType, idToInt, setId
-
Field Details
-
m_value
protected double m_value
-
-
Constructor Details
-
COSARAttrDouble
-
COSARAttrDouble
-
COSARAttrDouble
-
-
Method Details
-
getValue
public double 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(double 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 a value obtained from another attribute to this type.
-