public class ModbusPointLocatorVO extends AbstractPointLocatorVO implements com.serotonin.json.JsonSerializable
| Modifier and Type | Field and Description |
|---|---|
private double |
additive |
private byte |
bit |
private java.lang.String |
charset |
private static ExportCodes |
MODBUS_DATA_TYPE_CODES |
private int |
modbusDataType |
private double |
multiplier |
private int |
offset |
private int |
range |
private static ExportCodes |
RANGE_CODES |
private int |
registerCount |
private static long |
serialVersionUID |
private boolean |
settableOverride |
private int |
slaveId |
private boolean |
slaveMonitor |
private boolean |
socketMonitor |
private static int |
version |
| Constructor and Description |
|---|
ModbusPointLocatorVO() |
| 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
|
double |
getAdditive() |
byte |
getBit() |
java.lang.String |
getCharset() |
com.serotonin.web.i18n.LocalizableMessage |
getConfigurationDescription()
An arbitrary description of the point location configuration for human consumption.
|
int |
getDataTypeId()
One of the com.serotonin.mango.DataTypes
|
int |
getModbusDataType() |
double |
getMultiplier() |
int |
getOffset() |
int |
getRange() |
com.serotonin.web.i18n.LocalizableMessage |
getRangeMessage() |
static com.serotonin.web.i18n.LocalizableMessage |
getRangeMessage(int range) |
int |
getRegisterCount() |
int |
getSlaveId() |
boolean |
isSettable()
Can the value be set in the data source?
|
boolean |
isSettableOverride() |
boolean |
isSlaveMonitor() |
boolean |
isSocketMonitor() |
private boolean |
isString() |
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 |
setAdditive(double additive) |
void |
setBit(byte bit) |
void |
setCharset(java.lang.String charset) |
void |
setModbusDataType(int modbusDataType) |
void |
setMultiplier(double multiplier) |
void |
setOffset(int offset) |
void |
setRange(int range) |
void |
setRegisterCount(int registerCount) |
void |
setSettableOverride(boolean settableOverride) |
void |
setSlaveId(int slaveId) |
void |
setSlaveMonitor(boolean slaveMonitor) |
void |
setSocketMonitor(boolean socketMonitor) |
private boolean |
settableRange() |
void |
validate(com.serotonin.web.dwr.DwrResponseI18n response)
Validate.
|
private void |
writeObject(java.io.ObjectOutputStream out) |
deserializeDataType, getDataPointSaveHandler, getDataTypeMessage, getMessage, isRelinquishable, serializeDataTypeprivate static ExportCodes RANGE_CODES
private static ExportCodes MODBUS_DATA_TYPE_CODES
private int range
private int modbusDataType
private int slaveId
private boolean slaveMonitor
private boolean socketMonitor
private int offset
private byte bit
private int registerCount
private java.lang.String charset
private boolean settableOverride
private double multiplier
private double additive
private static final long serialVersionUID
private static final int version
public static com.serotonin.web.i18n.LocalizableMessage getRangeMessage(int range)
public com.serotonin.web.i18n.LocalizableMessage getConfigurationDescription()
PointLocatorVOgetConfigurationDescription in interface PointLocatorVOpublic int getDataTypeId()
PointLocatorVOgetDataTypeId in interface PointLocatorVOpublic boolean isSettable()
PointLocatorVOisSettable in interface PointLocatorVOpublic PointLocatorRT createRuntime()
PointLocatorVOcreateRuntime in interface PointLocatorVOpublic com.serotonin.web.i18n.LocalizableMessage getRangeMessage()
public double getAdditive()
public void setAdditive(double additive)
public byte getBit()
public void setBit(byte bit)
public int getRegisterCount()
public void setRegisterCount(int registerCount)
public java.lang.String getCharset()
public void setCharset(java.lang.String charset)
public boolean isSettableOverride()
public void setSettableOverride(boolean settableOverride)
public int getRange()
public void setRange(int range)
public int getModbusDataType()
public void setModbusDataType(int modbusDataType)
public double getMultiplier()
public void setMultiplier(double multiplier)
public int getOffset()
public void setOffset(int offset)
public int getSlaveId()
public void setSlaveId(int slaveId)
public boolean isSlaveMonitor()
public boolean isSocketMonitor()
public void setSlaveMonitor(boolean slaveMonitor)
public void setSocketMonitor(boolean socketMonitor)
public void validate(com.serotonin.web.dwr.DwrResponseI18n response)
PointLocatorVOvalidate in interface PointLocatorVOprivate boolean settableRange()
private boolean isString()
public void addProperties(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list)
addProperties in interface ChangeComparableObjectpublic void addPropertyChanges(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.Object o)
addPropertyChanges in interface ChangeComparableObjectprivate void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOExceptionprivate void readObject(java.io.ObjectInputStream in)
throws java.io.IOException
java.io.IOExceptionpublic void jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json)
throws com.serotonin.json.JsonException
jsonDeserialize in interface com.serotonin.json.JsonSerializablecom.serotonin.json.JsonExceptionpublic void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize in interface com.serotonin.json.JsonSerializable