public class ByteDataBlock extends DataBlock implements BcdValue
EMPTY_VIFE
Constructor and Description |
---|
ByteDataBlock() |
ByteDataBlock(DataFieldCode dif,
Vif vif,
byte value) |
Modifier and Type | Method and Description |
---|---|
protected void |
accumulateDatatoJSON(net.sf.json.JSONObject json) |
void |
fromJSON(net.sf.json.JSONObject json) |
String |
getBcdError() |
byte |
getValue() |
String |
getValueAsString() |
boolean |
isBcd() |
boolean |
isBcdError() |
void |
setBcdError(String bcdError) |
void |
setValue(byte 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, vifFromJSON
public ByteDataBlock()
public ByteDataBlock(DataFieldCode dif, Vif vif, byte value)
public boolean isBcdError()
isBcdError
in interface BcdValue
public byte getValue()
public String getValueAsString()
getValueAsString
in class DataBlock
public void setValue(byte value)
value
- the value to setprotected void accumulateDatatoJSON(net.sf.json.JSONObject json)
accumulateDatatoJSON
in class DataBlock
public void fromJSON(net.sf.json.JSONObject json)
fromJSON
in interface JSONSerializable
fromJSON
in class DataBlock
public String getBcdError()
getBcdError
in interface BcdValue
public void setBcdError(String bcdError)
setBcdError
in interface BcdValue
bcdError
- the bcdError to setCopyright © 2009–2016 MBus4J. All rights reserved.