public class AttributeWriteHandlerItem extends DataItemInputChained
primaryValue, secondaryValue
chain, executor, primaryAttributes, secondaryAttributes
listener
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, updateData
addChainElement, addChainElement, getAttributes, getChainCopy, processSetAttributes, removeChainElement, setChain, startSetAttributes
getInformation, handleListenerChange, notifyData, notifyData, setListener
public 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)
DataItemBaseChained
handleUnhandledAttributes
in class DataItemBaseChained
writeAttributeResults
- the result setattributes
- the attributes to setpublic NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
DataItem
startWriteValue
in interface DataItem
startWriteValue
in class DataItemInputChained
value
- The value to write to the subsystemprotected WriteResult processWriteValue(Variant value, OperationParameters operationParameters)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.