public class ModbusIpDataSourceVO extends ModbusDataSourceVO<ModbusIpDataSourceVO>
Modifier and Type | Class and Description |
---|---|
static class |
ModbusIpDataSourceVO.TransportType |
DataSourceVO.Type
Modifier and Type | Field and Description |
---|---|
private boolean |
createSocketMonitorPoint |
private boolean |
encapsulated |
private java.lang.String |
host |
private int |
port |
private static long |
serialVersionUID |
private ModbusIpDataSourceVO.TransportType |
transportType |
static DataSourceVO.Type |
TYPE |
private static int |
version |
XID_PREFIX
Constructor and Description |
---|
ModbusIpDataSourceVO() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertiesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list) |
protected void |
addPropertyChangesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
ModbusIpDataSourceVO from) |
DataSourceRT |
createDataSourceRT() |
com.serotonin.web.i18n.LocalizableMessage |
getConnectionDescription() |
java.lang.String |
getHost() |
int |
getPort() |
ModbusIpDataSourceVO.TransportType |
getTransportType() |
java.lang.String |
getTransportTypeStr() |
DataSourceVO.Type |
getType() |
boolean |
isCreateSocketMonitorPoint() |
boolean |
isEncapsulated() |
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 |
setCreateSocketMonitorPoint(boolean createSocketMonitorPoint) |
void |
setEncapsulated(boolean encapsulated) |
void |
setHost(java.lang.String host) |
void |
setPort(int port) |
void |
setTransportType(ModbusIpDataSourceVO.TransportType transportType) |
void |
setTransportTypeStr(java.lang.String transportType) |
void |
validate(com.serotonin.web.dwr.DwrResponseI18n response) |
private void |
writeObject(java.io.ObjectOutputStream out) |
addEventTypes, createPointLocator, getEventCodes, getMaxReadBitCount, getMaxReadRegisterCount, getMaxWriteRegisterCount, getRetries, getTimeout, getUpdatePeriods, getUpdatePeriodType, isContiguousBatches, isCreateSlaveMonitorPoints, isQuantize, setContiguousBatches, setCreateSlaveMonitorPoints, setMaxReadBitCount, setMaxReadRegisterCount, setMaxWriteRegisterCount, setQuantize, setRetries, setTimeout, setUpdatePeriods, setUpdatePeriodType
addProperties, addPropertyChanges, copy, createDataSourceVO, createEventType, createEventType, deserializeUpdatePeriodType, generateXid, getAlarmLevel, getEventType, getEventTypes, getId, getMessage, getName, getTypeKey, getXid, isEnabled, isNew, serializeUpdatePeriodType, setAlarmLevel, setEnabled, setId, setName, setXid
public static final DataSourceVO.Type TYPE
private ModbusIpDataSourceVO.TransportType transportType
private java.lang.String host
private int port
private boolean encapsulated
private boolean createSocketMonitorPoint
private static final long serialVersionUID
private static final int version
public com.serotonin.web.i18n.LocalizableMessage getConnectionDescription()
getConnectionDescription
in class DataSourceVO<ModbusIpDataSourceVO>
public DataSourceVO.Type getType()
getType
in class DataSourceVO<ModbusIpDataSourceVO>
public DataSourceRT createDataSourceRT()
createDataSourceRT
in class DataSourceVO<ModbusIpDataSourceVO>
public java.lang.String getHost()
public void setHost(java.lang.String host)
public int getPort()
public void setPort(int port)
public boolean isEncapsulated()
public boolean isCreateSocketMonitorPoint()
public void setCreateSocketMonitorPoint(boolean createSocketMonitorPoint)
public void setEncapsulated(boolean encapsulated)
public ModbusIpDataSourceVO.TransportType getTransportType()
public void setTransportType(ModbusIpDataSourceVO.TransportType transportType)
public java.lang.String getTransportTypeStr()
public void setTransportTypeStr(java.lang.String transportType)
public void validate(com.serotonin.web.dwr.DwrResponseI18n response)
validate
in class ModbusDataSourceVO<ModbusIpDataSourceVO>
protected void addPropertiesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list)
addPropertiesImpl
in class ModbusDataSourceVO<ModbusIpDataSourceVO>
protected void addPropertyChangesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, ModbusIpDataSourceVO from)
addPropertyChangesImpl
in class ModbusDataSourceVO<ModbusIpDataSourceVO>
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) throws com.serotonin.json.JsonException
jsonDeserialize
in interface com.serotonin.json.JsonSerializable
jsonDeserialize
in class ModbusDataSourceVO<ModbusIpDataSourceVO>
com.serotonin.json.JsonException
public void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize
in interface com.serotonin.json.JsonSerializable
jsonSerialize
in class ModbusDataSourceVO<ModbusIpDataSourceVO>