Package com.nt.udc.io
Class COSARAttrLong
java.lang.Object
com.nt.udc.io.COSARAttr
com.nt.udc.io.COSARAttrLong
- Direct Known Subclasses:
COSARAttrMac
,COSARAttrMillis
This class represents the long OSAR attribute.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
COSARAttrLong
(int type, String id, long value) COSARAttrLong
(String id) COSARAttrLong
(String id, long value) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
double
long
long
long
getValue()
boolean
setStringValue
(String value) This function sets the attribute value based on a string.void
setValue
(long value) boolean
This 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 long m_value
-
-
Constructor Details
-
COSARAttrLong
-
COSARAttrLong
-
COSARAttrLong
-
-
Method Details
-
getValue
public long 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(long value) -
setStringValue
This function sets the attribute value based on a string.- Overrides:
setStringValue
in classCOSARAttr
- Returns:
- true if succesful, false otherwise
-
setValue
This function is used to convert the value of another attribute to this type and store it.
-