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, pointListChanged
addedChangedPoints, 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, updateChangedPoints
addDataPoint, forcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, relinquish, removeDataPoint, returnToNormal, setPersistentData
public 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 PollingDataSource
private 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.COMMException
com.i2msolucoes.alpha24j.exception.InvalidFrameReceivedException
com.i2msolucoes.alpha24j.exception.ErrorMessageReceivedException
public void setPointValue(DataPointRT dataPoint, PointValueTime valueTime, SetPointSource source)
setPointValue
in class DataSourceRT
public void initialize()
initialize
in interface com.serotonin.util.ILifecycle
initialize
in class DataSourceRT
public void terminate()
terminate
in interface com.serotonin.util.ILifecycle
terminate
in class PollingDataSource
private void treatException(int exceptionType, java.lang.Exception e, long time)