public class DataItemCommand extends DataItemOutput
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataItemCommand.Listener
The listener interface
|
listener| Constructor and Description |
|---|
DataItemCommand(String id,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DataItemCommand.Listener listener)
Add a new listener which gets called on write requests
|
Map<String,Variant> |
getAttributes() |
void |
processWrite(Variant value) |
void |
removeListener(DataItemCommand.Listener listener)
Remove a listener from the list
|
NotifyFuture<WriteAttributeResults> |
startSetAttributes(Map<String,Variant> attributes,
OperationParameters operationParameters)
Start the write attributes operation
|
NotifyFuture<WriteResult> |
startWriteValue(Variant value,
OperationParameters operationParameters)
The write operation of a data item.
|
readValuegetCacheAttributes, getCacheValue, getInformation, handleListenerChange, notifyData, notifyData, setListenerpublic NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
DataItemvalue - The value to write to the subsystempublic void processWrite(Variant value) throws InvalidOperationException
InvalidOperationExceptionpublic void addListener(DataItemCommand.Listener listener)
listener - listener to addpublic void removeListener(DataItemCommand.Listener listener)
listener - listener to removepublic NotifyFuture<WriteAttributeResults> startSetAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
DataItemattributes - attributes to setCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.