public class Alpha2DataSource extends PollingDataSource
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_SOURCE_EXCEPTION_EVENT |
private com.i2msolucoes.alpha24j.layer.user.Alpha2Master |
master |
static int |
POINT_READ_EXCEPTION_EVENT |
static int |
POINT_WRITE_EXCEPTION_EVENT |
private Alpha2DataSourceVO<?> |
vo |
dataPoints, pointListChangedaddedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints| Constructor and Description |
|---|
Alpha2DataSource(Alpha2DataSourceVO<?> vo) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPoll(long time) |
void |
initialize() |
private java.util.List<com.i2msolucoes.alpha24j.DeviceValue> |
read(java.util.List<com.i2msolucoes.alpha24j.DeviceLocator> devices) |
void |
setPointValue(DataPointRT dataPoint,
PointValueTime valueTime,
SetPointSource source) |
void |
terminate() |
private void |
treatException(int exceptionType,
java.lang.Exception e,
long time) |
beginPolling, joinTermination, scheduleTimeout, setPollingPeriod, updateChangedPointsaddDataPoint, forcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, relinquish, removeDataPoint, returnToNormal, setPersistentDatapublic static final int POINT_READ_EXCEPTION_EVENT
public static final int POINT_WRITE_EXCEPTION_EVENT
public static final int DATA_SOURCE_EXCEPTION_EVENT
private final Alpha2DataSourceVO<?> vo
private com.i2msolucoes.alpha24j.layer.user.Alpha2Master master
public Alpha2DataSource(Alpha2DataSourceVO<?> vo)
protected void doPoll(long time)
doPoll in class PollingDataSourceprivate java.util.List<com.i2msolucoes.alpha24j.DeviceValue> read(java.util.List<com.i2msolucoes.alpha24j.DeviceLocator> devices)
throws com.i2msolucoes.alpha24j.exception.COMMException,
com.i2msolucoes.alpha24j.exception.InvalidFrameReceivedException,
com.i2msolucoes.alpha24j.exception.ErrorMessageReceivedException
com.i2msolucoes.alpha24j.exception.COMMExceptioncom.i2msolucoes.alpha24j.exception.InvalidFrameReceivedExceptioncom.i2msolucoes.alpha24j.exception.ErrorMessageReceivedExceptionpublic void setPointValue(DataPointRT dataPoint, PointValueTime valueTime, SetPointSource source)
setPointValue in class DataSourceRTpublic void initialize()
initialize in interface com.serotonin.util.ILifecycleinitialize in class DataSourceRTpublic void terminate()
terminate in interface com.serotonin.util.ILifecycleterminate in class PollingDataSourceprivate void treatException(int exceptionType,
java.lang.Exception e,
long time)