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,org.eclipse.scada.core.Variant> attributes,
OperationParameters operationParameters) |
protected void |
processWriteCalculatedValue(org.eclipse.scada.core.Variant value,
OperationParameters operationParameters) |
void |
setTemplateAttributes(Map<String,org.eclipse.scada.core.Variant> attributes,
OperationParameters operationParameters) |
org.eclipse.scada.utils.concurrent.NotifyFuture<WriteAttributeResults> |
startSetAttributes(Map<String,org.eclipse.scada.core.Variant> attributes,
OperationParameters operationParameters)
This method sets the attributes.
|
protected org.eclipse.scada.utils.concurrent.NotifyFuture<WriteResult> |
startWriteCalculatedValue(org.eclipse.scada.core.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 org.eclipse.scada.utils.concurrent.NotifyFuture<WriteAttributeResults> startSetAttributes(Map<String,org.eclipse.scada.core.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,org.eclipse.scada.core.Variant> attributes, OperationParameters operationParameters)
processSetAttributes in class DataItemBaseChainedpublic void setTemplateAttributes(Map<String,org.eclipse.scada.core.Variant> attributes, OperationParameters operationParameters)
attributes - protected org.eclipse.scada.utils.concurrent.NotifyFuture<WriteResult> startWriteCalculatedValue(org.eclipse.scada.core.Variant value, OperationParameters operationParameters)
startWriteCalculatedValue in class DataItemInputOutputChainedprotected void processWriteCalculatedValue(org.eclipse.scada.core.Variant value,
OperationParameters operationParameters)
throws org.eclipse.scada.core.NotConvertableException,
org.eclipse.scada.core.InvalidOperationException
org.eclipse.scada.core.NotConvertableExceptionorg.eclipse.scada.core.InvalidOperationException