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.
|
readValue
getCacheAttributes, getCacheValue, getInformation, handleListenerChange, notifyData, notifyData, setListener
public NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
DataItem
value
- The value to write to the subsystempublic void processWrite(Variant value) throws InvalidOperationException
InvalidOperationException
public 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)
DataItem
attributes
- attributes to setCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.