public class ProxyDataItem extends DataItemInputOutputChained
primaryValue, secondaryValuechain, executor, primaryAttributes, secondaryAttributeslistener| Constructor and Description |
|---|
ProxyDataItem(String id,
ProxyValueHolder proxyValueHolder,
ProxyWriteHandler writeHandler,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
ProxyValueHolder |
getProxyValueHolder() |
protected WriteAttributeResults |
processSetAttributes(Map<String,Variant> attributes,
OperationParameters operationParameters) |
protected void |
processWriteCalculatedValue(Variant value,
OperationParameters operationParameters) |
void |
setTemplateAttributes(Map<String,Variant> attributes,
OperationParameters operationParameters) |
NotifyFuture<WriteAttributeResults> |
startSetAttributes(Map<String,Variant> attributes,
OperationParameters operationParameters)
This method sets the attributes.
|
protected NotifyFuture<WriteResult> |
startWriteCalculatedValue(Variant value,
OperationParameters operationParameters) |
startWriteValuegetCacheAttributes, getCacheValue, process, readValue, updateDataaddChainElement, addChainElement, getAttributes, getChainCopy, handleUnhandledAttributes, removeChainElement, setChaingetInformation, handleListenerChange, notifyData, notifyData, setListenerpublic ProxyDataItem(String id, ProxyValueHolder proxyValueHolder, ProxyWriteHandler writeHandler, Executor executor)
id - proxyValueHolder - executor - the executor to use for write callspublic ProxyValueHolder getProxyValueHolder()
public NotifyFuture<WriteAttributeResults> startSetAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
DataItemBaseChainedIt is intended to be overridden by subclasses that wish to handle attribute writes differently. The method needs to remove attributes from the parameter map that were handled and return a result for all attributes that were requested.
startSetAttributes in interface DataItemstartSetAttributes in class DataItemBaseChainedattributes - Attributes to setprotected WriteAttributeResults processSetAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
processSetAttributes in class DataItemBaseChainedpublic void setTemplateAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
attributes - protected NotifyFuture<WriteResult> startWriteCalculatedValue(Variant value, OperationParameters operationParameters)
startWriteCalculatedValue in class DataItemInputOutputChainedprotected void processWriteCalculatedValue(Variant value, OperationParameters operationParameters) throws NotConvertableException, InvalidOperationException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.