public class MonitoredDataItem extends BaseMonitoredItem<DataValue> implements DataItem
| Modifier and Type | Field and Description |
|---|---|
static DataChangeFilter |
DEFAULT_FILTER |
clientHandle, discardOldest, id, monitoringMode, queue, queueSize, readValueId, samplingInterval, server, session, subscriptionId, timestamps, triggered, triggeredItems| Constructor and Description |
|---|
MonitoredDataItem(OpcUaServer server,
Session session,
UInteger id,
UInteger subscriptionId,
ReadValueId readValueId,
MonitoringMode monitoringMode,
TimestampsToReturn timestamps,
UInteger clientHandle,
double samplingInterval,
UInteger queueSize,
boolean discardOldest) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enqueue(@NotNull DataValue value) |
ExtensionObject |
getFilterResult() |
void |
installFilter(MonitoringFilter filter) |
boolean |
isSamplingEnabled() |
void |
maybeSendLastValue() |
void |
setMonitoringMode(MonitoringMode monitoringMode) |
void |
setQuality(StatusCode quality)
Apply a new
StatusCode to the last value that passed the filter and then set the derived value. |
void |
setValue(DataValue value)
Set the latest sampled value.
|
protected MonitoredItemNotification |
wrapQueueValue(DataValue value) |
getClientHandle, getId, getMonitoringMode, getNotifications, getQueueSize, getReadValueId, getSamplingInterval, getSession, getSubscriptionId, getTimestampsToReturn, getTriggeredItems, hasNotifications, isDiscardOldest, isTriggered, modify, setQueueSize, setSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSamplingIntervalgetId, getReadValueId, getSession, getSubscriptionId, getTimestampsToReturnpublic static final DataChangeFilter DEFAULT_FILTER
public MonitoredDataItem(OpcUaServer server, Session session, UInteger id, UInteger subscriptionId, ReadValueId readValueId, MonitoringMode monitoringMode, TimestampsToReturn timestamps, UInteger clientHandle, double samplingInterval, UInteger queueSize, boolean discardOldest)
public void setValue(DataValue value)
DataItemprotected void enqueue(@NotNull
@NotNull DataValue value)
enqueue in class BaseMonitoredItem<DataValue>public void setQuality(StatusCode quality)
DataItemStatusCode to the last value that passed the filter and then set the derived value.setQuality in interface DataItemquality - the StatusCode to apply.public boolean isSamplingEnabled()
isSamplingEnabled in interface MonitoredItemtrue if this item should be sampled.public void setMonitoringMode(MonitoringMode monitoringMode)
setMonitoringMode in class BaseMonitoredItem<DataValue>public void maybeSendLastValue()
public void installFilter(MonitoringFilter filter) throws UaException
installFilter in class BaseMonitoredItem<DataValue>UaExceptionpublic ExtensionObject getFilterResult()
getFilterResult in class BaseMonitoredItem<DataValue>protected MonitoredItemNotification wrapQueueValue(DataValue value)
wrapQueueValue in class BaseMonitoredItem<DataValue>Copyright © 2021. All rights reserved.