public class ProxyDataItem extends DataItemInputOutputChained
primaryValue, secondaryValue
chain, executor, primaryAttributes, secondaryAttributes
listener
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) |
startWriteValue
getCacheAttributes, getCacheValue, process, readValue, updateData
addChainElement, addChainElement, getAttributes, getChainCopy, handleUnhandledAttributes, removeChainElement, setChain
getInformation, handleListenerChange, notifyData, notifyData, setListener
public 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)
DataItemBaseChained
It 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 DataItem
startSetAttributes
in class DataItemBaseChained
attributes
- Attributes to setprotected WriteAttributeResults processSetAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
processSetAttributes
in class DataItemBaseChained
public void setTemplateAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
attributes
- protected NotifyFuture<WriteResult> startWriteCalculatedValue(Variant value, OperationParameters operationParameters)
startWriteCalculatedValue
in class DataItemInputOutputChained
protected void processWriteCalculatedValue(Variant value, OperationParameters operationParameters) throws NotConvertableException, InvalidOperationException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.