public class HdbShort extends HdbData
Constructor and Description |
---|
HdbShort(int type) |
HdbShort(int type,
short value) |
Modifier and Type | Method and Description |
---|---|
void |
applyConversionFactor(double f) |
short |
getValue() |
double |
getValueAsDouble()
Returns the value as double if it can be converted.
|
double[] |
getValueAsDoubleArray()
Returns the value as double array it can be converted.
|
long |
getValueAsLong()
Returns the value as long if it can be converted.
|
long[] |
getValueAsLongArray()
Returns the value as long array it can be converted.
|
String |
getValueAsString()
Returns the value as a String
|
short |
getWriteValue() |
double |
getWriteValueAsDouble()
Returns the write value as double if it can be converted.
|
double[] |
getWriteValueAsDoubleArray()
Returns the write value as double array it can be converted.
|
long |
getWriteValueAsLong()
Returns the write value as long if it can be converted.
|
long[] |
getWriteValueAsLongArray()
Returns the write value as long array it can be converted.
|
String |
getWriteValueAsString()
Returns the write value as a String
|
void |
parseValue(ArrayList<Object> value)
Parse value
|
void |
parseWriteValue(ArrayList<Object> value)
Parse write value
|
String |
toString() |
copy, createData, getDataTime, getErrorMessage, getInsertTime, getQualityFactor, getRecvTime, getType, hasFailed, hasWriteValue, isArray, isInvalid, parse, qualitytoStr, setDataTime, setRecvTime, size, sizeW, timeToStr
public HdbShort(int type)
public HdbShort(int type, short value)
public void parseValue(ArrayList<Object> value) throws HdbFailed
HdbData
parseValue
in class HdbData
value
- Value to be parsedHdbFailed
public void parseWriteValue(ArrayList<Object> value) throws HdbFailed
HdbData
parseWriteValue
in class HdbData
value
- Value to be parsedHdbFailed
public void applyConversionFactor(double f)
applyConversionFactor
in class HdbData
public String getValueAsString()
HdbData
getValueAsString
in class HdbData
public String getWriteValueAsString()
HdbData
getWriteValueAsString
in class HdbData
public double getValueAsDouble() throws HdbFailed
HdbData
getValueAsDouble
in class HdbData
HdbFailed
- In case of failurepublic double getWriteValueAsDouble() throws HdbFailed
HdbData
getWriteValueAsDouble
in class HdbData
HdbFailed
- In case of failurepublic double[] getValueAsDoubleArray() throws HdbFailed
HdbData
getValueAsDoubleArray
in class HdbData
HdbFailed
- In case of failurepublic double[] getWriteValueAsDoubleArray() throws HdbFailed
HdbData
getWriteValueAsDoubleArray
in class HdbData
HdbFailed
- In case of failurepublic long getValueAsLong() throws HdbFailed
HdbData
getValueAsLong
in class HdbData
HdbFailed
- In case of failurepublic long getWriteValueAsLong() throws HdbFailed
HdbData
getWriteValueAsLong
in class HdbData
HdbFailed
- In case of failurepublic long[] getValueAsLongArray() throws HdbFailed
HdbData
getValueAsLongArray
in class HdbData
HdbFailed
- In case of failurepublic long[] getWriteValueAsLongArray() throws HdbFailed
HdbData
getWriteValueAsLongArray
in class HdbData
HdbFailed
- In case of failureCopyright © 2017. All rights reserved.