public class IntegerDataBlock extends DataBlock implements BcdValue
EMPTY_VIFE| Constructor and Description |
|---|
IntegerDataBlock() |
IntegerDataBlock(DataFieldCode dif,
FunctionField functionField,
short subUnit,
int tariff,
long storageNumber,
Vif vif,
Vife... vifes)
Deprecated.
|
IntegerDataBlock(DataFieldCode dif,
Vif vif)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
accumulateDatatoJSON(net.sf.json.JSONObject json) |
void |
fromJSON(net.sf.json.JSONObject json) |
String |
getBcdError() |
int |
getValue() |
String |
getValueAsString() |
boolean |
isBcd() |
boolean |
isBcdError() |
void |
setBcdError(String bcdError) |
void |
setValue(int value) |
void |
setValue(String text) |
addVife, clearVifes, formatBcdError, getAction, getCorrectionConstant, getCorrectionExponent, getDataBlockClass, getDataFieldCode, getExponent, getFunctionField, getParamDescr, getSiPrefix, getStorageNumber, getSubUnit, getTariff, getUnitOfMeasurement, getVif, getVif, getVife, getVifes, setAction, setDataFieldCode, setFunctionField, setStorageNumber, setSubUnit, setTariff, setVif, toJSON, toString, toString, vifesFromJSON, vifFromJSONpublic IntegerDataBlock()
@Deprecated public IntegerDataBlock(DataFieldCode dif, FunctionField functionField, short subUnit, int tariff, long storageNumber, Vif vif, Vife... vifes)
@Deprecated public IntegerDataBlock(DataFieldCode dif, Vif vif)
public boolean isBcdError()
isBcdError in interface BcdValuepublic int getValue()
public String getValueAsString()
getValueAsString in class DataBlockpublic void setValue(int value)
value - the value to setprotected void accumulateDatatoJSON(net.sf.json.JSONObject json)
accumulateDatatoJSON in class DataBlockpublic void fromJSON(net.sf.json.JSONObject json)
fromJSON in interface JSONSerializablefromJSON in class DataBlockpublic String getBcdError()
getBcdError in interface BcdValuepublic void setBcdError(String bcdError)
setBcdError in interface BcdValuebcdError - the bcdError to setCopyright © 2009–2016 MBus4J. All rights reserved.