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
ConstructorsModifierConstructorDescriptionprotected
COSARAttrDouble
(int type, String id, double value) COSARAttrDouble
(String id, double value) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
double
long
long
double
getValue()
boolean
setStringValue
(String value) This function sets the attribute value based on a stringvoid
setValue
(double value) boolean
This 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:
getStringValue
in classCOSARAttr
- Returns:
- The value as a string
- Throws:
Exception
-
getLongValue
- Overrides:
getLongValue
in classCOSARAttr
- Returns:
- The value as a long
- Throws:
Exception
-
getDoubleValue
- Overrides:
getDoubleValue
in classCOSARAttr
- Returns:
- The value as a double
- Throws:
Exception
-
getMillisValue
- Overrides:
getMillisValue
in classCOSARAttr
- Returns:
- The value as in milliseconds
- Throws:
Exception
-
getBytesValue
- Overrides:
getBytesValue
in classCOSARAttr
- Returns:
- The value as an array of bytes
- Throws:
Exception
-
getRecAttr
- Overrides:
getRecAttr
in classCOSARAttr
- Returns:
- The equivalent OSARecAttr
-
toString
-
setValue
public void setValue(double value) -
setStringValue
This function sets the attribute value based on a string- Overrides:
setStringValue
in classCOSARAttr
- Returns:
- true if successful, false otherwise
-
setValue
This function is used to convert a value obtained from another attribute to this type.
-