public class ASCIISerialDataSourceVO<T extends ASCIISerialDataSourceVO<?>> extends DataSourceVO<T>
DataSourceVO.Type
Modifier and Type | Field and Description |
---|---|
private int |
baudRate |
private int |
bufferSize |
private int |
charStopMode |
private java.lang.String |
charX |
private java.lang.String |
commPortId |
private int |
dataBits |
private static ExportCodes |
EVENT_CODES |
private java.lang.String |
hexValue |
private java.lang.String |
initString |
private int |
nChar |
private int |
parity |
private boolean |
quantize |
private int |
retries |
private static long |
serialVersionUID |
private int |
stopBits |
private int |
stopMode |
private int |
stopTimeout |
private int |
timeout |
static DataSourceVO.Type |
TYPE |
private int |
updatePeriods |
private int |
updatePeriodType |
private static int |
version |
XID_PREFIX
Constructor and Description |
---|
ASCIISerialDataSourceVO() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEventTypes(java.util.List<EventTypeVO> eventTypes) |
protected void |
addPropertiesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list) |
protected void |
addPropertyChangesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
T from) |
protected java.lang.Object |
clone() |
DataSourceRT |
createDataSourceRT() |
PointLocatorVO |
createPointLocator() |
int |
getBaudRate() |
int |
getBufferSize() |
int |
getCharStopMode() |
java.lang.String |
getCharX() |
java.lang.String |
getCommPortId() |
com.serotonin.web.i18n.LocalizableMessage |
getConnectionDescription() |
int |
getDataBits() |
ExportCodes |
getEventCodes() |
java.lang.String |
getHexValue() |
java.lang.String |
getInitString() |
int |
getnChar() |
int |
getParity() |
int |
getRetries() |
int |
getStopBits() |
int |
getStopMode() |
int |
getStopTimeout() |
int |
getTimeout() |
DataSourceVO.Type |
getType() |
int |
getUpdatePeriods() |
int |
getUpdatePeriodType() |
boolean |
isQuantize() |
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 |
setBaudRate(int baudRate) |
void |
setBufferSize(int bufferSize) |
void |
setCharStopMode(int charStopMode) |
void |
setCharX(java.lang.String charX) |
void |
setCommPortId(java.lang.String commPortId) |
void |
setDataBits(int dataBits) |
void |
setHexValue(java.lang.String hexValue) |
void |
setInitString(java.lang.String initString) |
void |
setnChar(int nChar) |
void |
setParity(int parity) |
void |
setQuantize(boolean quantize) |
void |
setRetries(int retries) |
void |
setStopBits(int stopBits) |
void |
setStopMode(int stopMode) |
void |
setStopTimeout(int stopTimeout) |
void |
setTimeout(int timeout) |
void |
setUpdatePeriods(int updatePeriods) |
void |
setUpdatePeriodType(int updatePeriodType) |
void |
validate(com.serotonin.web.dwr.DwrResponseI18n response) |
private void |
writeObject(java.io.ObjectOutputStream out) |
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 static final ExportCodes EVENT_CODES
private int updatePeriodType
private int updatePeriods
private java.lang.String commPortId
private int baudRate
private int dataBits
private int stopBits
private int parity
private int timeout
private int retries
private int stopMode
private int nChar
private int charStopMode
private java.lang.String charX
private java.lang.String hexValue
private int stopTimeout
private java.lang.String initString
private int bufferSize
private boolean quantize
private static final long serialVersionUID
private static final int version
protected void addEventTypes(java.util.List<EventTypeVO> eventTypes)
addEventTypes
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
public DataSourceRT createDataSourceRT()
createDataSourceRT
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public PointLocatorVO createPointLocator()
createPointLocator
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
public com.serotonin.web.i18n.LocalizableMessage getConnectionDescription()
getConnectionDescription
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
public ExportCodes getEventCodes()
getEventCodes
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
public DataSourceVO.Type getType()
getType
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
public void validate(com.serotonin.web.dwr.DwrResponseI18n response)
validate
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
public int getUpdatePeriodType()
public void setUpdatePeriodType(int updatePeriodType)
public int getUpdatePeriods()
public void setUpdatePeriods(int updatePeriods)
public java.lang.String getCommPortId()
public void setCommPortId(java.lang.String commPortId)
public int getBaudRate()
public void setBaudRate(int baudRate)
public int getDataBits()
public void setDataBits(int dataBits)
public int getStopBits()
public void setStopBits(int stopBits)
public int getParity()
public void setParity(int parity)
public int getTimeout()
public void setTimeout(int timeout)
public int getRetries()
public void setRetries(int retries)
public int getStopMode()
public void setStopMode(int stopMode)
public int getnChar()
public void setnChar(int nChar)
public void setCharStopMode(int charStopMode)
public int getCharStopMode()
public java.lang.String getCharX()
public void setCharX(java.lang.String charX)
public void setHexValue(java.lang.String hexValue)
public java.lang.String getHexValue()
public void setStopTimeout(int stopTimeout)
public int getStopTimeout()
public java.lang.String getInitString()
public void setInitString(java.lang.String initString)
public int getBufferSize()
public void setBufferSize(int bufferSize)
public boolean isQuantize()
public void setQuantize(boolean quantize)
protected void addPropertiesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list)
addPropertiesImpl
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
protected void addPropertyChangesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, T from)
addPropertyChangesImpl
in class DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
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 DataSourceVO<T extends ASCIISerialDataSourceVO<?>>
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 DataSourceVO<T extends ASCIISerialDataSourceVO<?>>