public class AttributeWriteHandlerItem extends DataItemInputChained
primaryValue, secondaryValuechain, executor, primaryAttributes, secondaryAttributeslistener| Constructor and Description |
|---|
AttributeWriteHandlerItem(DataItemInformation di,
AttributeWriteHandler writeHandler,
Executor executor) |
AttributeWriteHandlerItem(String itemId,
AttributeWriteHandler writeHandler,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
protected WriteAttributeResults |
handleUnhandledAttributes(WriteAttributeResults writeAttributeResults,
Map<String,Variant> attributes)
Handle all unhandled set attribute requests
|
protected WriteResult |
processWriteValue(Variant value,
OperationParameters operationParameters) |
void |
setWriteHandler(AttributeWriteHandler writeHandler)
Change the write handler
|
NotifyFuture<WriteResult> |
startWriteValue(Variant value,
OperationParameters operationParameters)
The write operation of a data item.
|
getCacheAttributes, getCacheValue, process, readValue, updateDataaddChainElement, addChainElement, getAttributes, getChainCopy, processSetAttributes, removeChainElement, setChain, startSetAttributesgetInformation, handleListenerChange, notifyData, notifyData, setListenerpublic AttributeWriteHandlerItem(DataItemInformation di, AttributeWriteHandler writeHandler, Executor executor)
public AttributeWriteHandlerItem(String itemId, AttributeWriteHandler writeHandler, Executor executor)
public void setWriteHandler(AttributeWriteHandler writeHandler)
The write handler will not be called for the last written value only for the next one.
writeHandler - the new write handlerprotected WriteAttributeResults handleUnhandledAttributes(WriteAttributeResults writeAttributeResults, Map<String,Variant> attributes)
DataItemBaseChainedhandleUnhandledAttributes in class DataItemBaseChainedwriteAttributeResults - the result setattributes - the attributes to setpublic NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
DataItemstartWriteValue in interface DataItemstartWriteValue in class DataItemInputChainedvalue - The value to write to the subsystemprotected WriteResult processWriteValue(Variant value, OperationParameters operationParameters)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.