public class MBusPointLocatorVO extends AbstractPointLocatorVO implements com.serotonin.json.JsonSerializable
Modifier and Type | Field and Description |
---|---|
private byte |
address
The address of the device.
|
private net.sf.mbus4j.MBusAddressing |
addressing |
private double |
correctionFactor |
private int |
deviceUnit |
private java.lang.String |
difCode |
static java.lang.String[] |
EMPTY_STRING_ARRAY |
private java.lang.Integer |
exponent |
private java.lang.String |
functionField |
private int |
identNumber |
private java.lang.String |
manufacturer |
private java.lang.String |
medium |
private java.lang.String |
responseFrame |
private static int |
SERIAL_VERSION |
private static long |
serialVersionUID |
private java.lang.String |
siPrefix |
private long |
storageNumber |
private int |
tariff |
private java.lang.String |
unitOfMeasurement |
private byte |
version |
private java.lang.String[] |
vifeLabels |
private java.lang.String[] |
vifeTypes |
private java.lang.String |
vifLabel |
private java.lang.String |
vifType |
Constructor and Description |
---|
MBusPointLocatorVO() |
Modifier and Type | Method and Description |
---|---|
void |
addProperties(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list) |
void |
addPropertyChanges(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.Object o) |
PointLocatorRT |
createRuntime()
Create a runtime version of the locator
|
byte |
getAddress() |
java.lang.String |
getAddressHex() |
net.sf.mbus4j.MBusAddressing |
getAddressing() |
com.serotonin.web.i18n.LocalizableMessage |
getConfigurationDescription()
An arbitrary description of the point location configuration for human consumption.
|
double |
getCorrectionFactor() |
int |
getDataTypeId()
One of the com.serotonin.mango.DataTypes
|
int |
getDeviceUnit() |
java.lang.String |
getDifCode() |
java.lang.Integer |
getExponent() |
java.lang.String |
getFunctionField() |
int |
getIdentNumber() |
java.lang.String |
getManufacturer() |
java.lang.String |
getMedium() |
java.lang.String |
getResponseFrame() |
java.lang.String |
getSiPrefix() |
long |
getStorageNumber() |
int |
getTariff() |
java.lang.String |
getUnitOfMeasurement() |
byte |
getVersion() |
java.lang.String |
getVersionHex() |
java.lang.String[] |
getVifeLabels() |
java.lang.String[] |
getVifeTypes() |
java.lang.String |
getVifLabel() |
java.lang.String |
getVifType() |
boolean |
isPrimaryAddressing()
Helper for JSP
|
boolean |
isSecondaryAddressing()
Helper for JSP
|
boolean |
isSettable()
Can the value be set in the data source?
|
void |
jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json) |
void |
jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map) |
private void |
readObject(java.io.ObjectInputStream in) |
void |
setAddress(byte address) |
void |
setAddressHex(java.lang.String address) |
void |
setAddressing(net.sf.mbus4j.MBusAddressing addressing) |
void |
setCorrectionFactor(double correctionFactor) |
void |
setDeviceUnit(int deviceUnit) |
void |
setDifCode(java.lang.String difCode) |
void |
setExponent(java.lang.Integer exponent) |
void |
setFunctionField(java.lang.String functionField) |
void |
setIdentNumber(int identNumber) |
void |
setManufacturer(java.lang.String manufacturer) |
void |
setMedium(java.lang.String medium) |
void |
setResponseFrame(java.lang.String responseFrame) |
void |
setSiPrefix(java.lang.String siPrefix) |
void |
setStorageNumber(long storageNumber) |
void |
setTariff(int tariff) |
void |
setUnitOfMeasurement(java.lang.String unitOfMeasurement) |
void |
setVersion(byte version) |
void |
setVersionHex(java.lang.String version) |
void |
setVifeLabels(java.lang.String[] vifeLabel) |
void |
setVifeTypes(java.lang.String[] vifeTypes) |
void |
setVifLabel(java.lang.String vifLabel) |
void |
setVifType(java.lang.String vifType) |
void |
validate(com.serotonin.web.dwr.DwrResponseI18n response)
Validate.
|
private void |
writeObject(java.io.ObjectOutputStream out) |
deserializeDataType, getDataPointSaveHandler, getDataTypeMessage, getMessage, isRelinquishable, serializeDataType
public static final java.lang.String[] EMPTY_STRING_ARRAY
private byte address
private java.lang.String difCode
private java.lang.String functionField
private int deviceUnit
private int tariff
private long storageNumber
private java.lang.String vifType
private java.lang.String vifLabel
private java.lang.String unitOfMeasurement
private java.lang.String siPrefix
private java.lang.Integer exponent
private java.lang.String[] vifeLabels
private java.lang.String[] vifeTypes
private java.lang.String medium
private java.lang.String responseFrame
private byte version
private int identNumber
private java.lang.String manufacturer
private double correctionFactor
private net.sf.mbus4j.MBusAddressing addressing
private static final long serialVersionUID
private static final int SERIAL_VERSION
public int getDataTypeId()
PointLocatorVO
getDataTypeId
in interface PointLocatorVO
public com.serotonin.web.i18n.LocalizableMessage getConfigurationDescription()
PointLocatorVO
getConfigurationDescription
in interface PointLocatorVO
public boolean isSettable()
PointLocatorVO
isSettable
in interface PointLocatorVO
public PointLocatorRT createRuntime()
PointLocatorVO
createRuntime
in interface PointLocatorVO
public void validate(com.serotonin.web.dwr.DwrResponseI18n response)
PointLocatorVO
validate
in interface PointLocatorVO
public void addProperties(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list)
addProperties
in interface ChangeComparableObject
public void addPropertyChanges(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.Object o)
addPropertyChanges
in interface ChangeComparableObject
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void jsonDeserialize(com.serotonin.json.JsonReader reader, com.serotonin.json.JsonObject json)
jsonDeserialize
in interface com.serotonin.json.JsonSerializable
public void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize
in interface com.serotonin.json.JsonSerializable
public byte getAddress()
public java.lang.String getAddressHex()
public void setAddress(byte address)
address
- the address to setpublic void setAddressHex(java.lang.String address)
address
- the address to setpublic void setManufacturer(java.lang.String manufacturer)
public void setIdentNumber(int identNumber)
public void setVersion(byte version)
public void setVersionHex(java.lang.String version)
public void setResponseFrame(java.lang.String responseFrame)
public int getDeviceUnit()
public void setDeviceUnit(int deviceUnit)
deviceUnit
- the deviceUnit to setpublic int getTariff()
public void setTariff(int tariff)
tariff
- the tariff to setpublic long getStorageNumber()
public void setStorageNumber(long storageNumber)
storageNumber
- the storageNumber to setpublic java.lang.String getResponseFrame()
public byte getVersion()
public java.lang.String getVersionHex()
public int getIdentNumber()
public java.lang.String getManufacturer()
public java.lang.String getDifCode()
public void setDifCode(java.lang.String difCode)
difCode
- the difCode to setpublic java.lang.String getFunctionField()
public void setFunctionField(java.lang.String functionField)
functionField
- the functionField to setpublic java.lang.String getVifLabel()
public void setVifLabel(java.lang.String vifLabel)
vifLabel
- the vifLabel to setpublic java.lang.String getUnitOfMeasurement()
public void setUnitOfMeasurement(java.lang.String unitOfMeasurement)
unitOfMeasurement
- the unitOfMeasurement to setpublic java.lang.String getSiPrefix()
public void setSiPrefix(java.lang.String siPrefix)
siPrefix
- the siPrefix to setpublic java.lang.Integer getExponent()
public void setExponent(java.lang.Integer exponent)
exponent
- the exponent to setpublic java.lang.String[] getVifeLabels()
public void setVifeLabels(java.lang.String[] vifeLabel)
vifeLabel
- the vifeLabel to setpublic java.lang.String getMedium()
public void setMedium(java.lang.String medium)
medium
- the medium to setpublic net.sf.mbus4j.MBusAddressing getAddressing()
public void setAddressing(net.sf.mbus4j.MBusAddressing addressing)
addressing
- the addressing to setpublic boolean isPrimaryAddressing()
public boolean isSecondaryAddressing()
public java.lang.String getVifType()
public void setVifType(java.lang.String vifType)
vifType
- the vifType to setpublic java.lang.String[] getVifeTypes()
public void setVifeTypes(java.lang.String[] vifeTypes)
vifeTypes
- the vifeTypes to setpublic double getCorrectionFactor()
public void setCorrectionFactor(double correctionFactor)
correctionFactor
- the correctionFactor to set