public class OpenV4JDataSourceVO extends DataSourceVO<OpenV4JDataSourceVO>
DataSourceVO.Type
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
commPortId |
private net.sf.openv4j.Devices |
device |
private static ExportCodes |
EVENT_CODES |
private static org.apache.commons.logging.Log |
LOG |
private net.sf.openv4j.Protocol |
protocol |
private static int |
SERIAL_VERSION |
private static long |
serialVersionUID |
private int |
updatePeriods |
private int |
updatePeriodType |
XID_PREFIX
Constructor and Description |
---|
OpenV4JDataSourceVO() |
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,
OpenV4JDataSourceVO from) |
DataSourceRT |
createDataSourceRT() |
PointLocatorVO |
createPointLocator() |
java.lang.String |
getCommPortId() |
com.serotonin.web.i18n.LocalizableMessage |
getConnectionDescription() |
net.sf.openv4j.DataPoint[] |
getDataPoints() |
net.sf.openv4j.Devices |
getDevice() |
net.sf.openv4j.Devices[] |
getDevices() |
ExportCodes |
getEventCodes() |
net.sf.openv4j.Group[] |
getGroups() |
net.sf.openv4j.DataPoint[] |
getProperties(net.sf.openv4j.Group g) |
net.sf.openv4j.Protocol |
getProtocol() |
net.sf.openv4j.Protocol[] |
getProtocols() |
DataSourceVO.Type |
getType() |
int |
getUpdatePeriods() |
int |
getUpdatePeriodType() |
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 |
setCommPortId(java.lang.String commPortId) |
void |
setDevice(net.sf.openv4j.Devices device) |
void |
setProtocol(net.sf.openv4j.Protocol protocol) |
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
private static final org.apache.commons.logging.Log LOG
private static final ExportCodes EVENT_CODES
private java.lang.String commPortId
private int updatePeriodType
private int updatePeriods
private net.sf.openv4j.Devices device
private net.sf.openv4j.Protocol protocol
private static final long serialVersionUID
private static final int SERIAL_VERSION
public DataSourceVO.Type getType()
getType
in class DataSourceVO<OpenV4JDataSourceVO>
protected void addEventTypes(java.util.List<EventTypeVO> eventTypes)
addEventTypes
in class DataSourceVO<OpenV4JDataSourceVO>
public com.serotonin.web.i18n.LocalizableMessage getConnectionDescription()
getConnectionDescription
in class DataSourceVO<OpenV4JDataSourceVO>
public PointLocatorVO createPointLocator()
createPointLocator
in class DataSourceVO<OpenV4JDataSourceVO>
public DataSourceRT createDataSourceRT()
createDataSourceRT
in class DataSourceVO<OpenV4JDataSourceVO>
public ExportCodes getEventCodes()
getEventCodes
in class DataSourceVO<OpenV4JDataSourceVO>
protected void addPropertiesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list)
addPropertiesImpl
in class DataSourceVO<OpenV4JDataSourceVO>
protected void addPropertyChangesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, OpenV4JDataSourceVO from)
addPropertyChangesImpl
in class DataSourceVO<OpenV4JDataSourceVO>
public java.lang.String getCommPortId()
public void setCommPortId(java.lang.String commPortId)
public int getUpdatePeriodType()
public void setUpdatePeriodType(int updatePeriodType)
public int getUpdatePeriods()
public void setUpdatePeriods(int updatePeriods)
public void validate(com.serotonin.web.dwr.DwrResponseI18n response)
validate
in class DataSourceVO<OpenV4JDataSourceVO>
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.io.IOException
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<OpenV4JDataSourceVO>
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<OpenV4JDataSourceVO>
public net.sf.openv4j.Devices getDevice()
public void setDevice(net.sf.openv4j.Devices device)
device
- the device to setpublic net.sf.openv4j.Devices[] getDevices()
public net.sf.openv4j.DataPoint[] getProperties(net.sf.openv4j.Group g)
public net.sf.openv4j.Protocol getProtocol()
public void setProtocol(net.sf.openv4j.Protocol protocol)
protocol
- the protocol to setpublic net.sf.openv4j.Protocol[] getProtocols()
public net.sf.openv4j.Group[] getGroups()
public net.sf.openv4j.DataPoint[] getDataPoints()