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,org.eclipse.scada.core.Variant> |
getAttributes() |
void |
processWrite(org.eclipse.scada.core.Variant value) |
void |
removeListener(DataItemCommand.Listener listener)
Remove a listener from the list
|
org.eclipse.scada.utils.concurrent.NotifyFuture<WriteAttributeResults> |
startSetAttributes(Map<String,org.eclipse.scada.core.Variant> attributes,
OperationParameters operationParameters)
Start the write attributes operation
|
org.eclipse.scada.utils.concurrent.NotifyFuture<WriteResult> |
startWriteValue(org.eclipse.scada.core.Variant value,
OperationParameters operationParameters)
The write operation of a data item.
|
readValuegetCacheAttributes, getCacheValue, getInformation, handleListenerChange, notifyData, notifyData, setListenerpublic org.eclipse.scada.utils.concurrent.NotifyFuture<WriteResult> startWriteValue(org.eclipse.scada.core.Variant value, OperationParameters operationParameters)
DataItemvalue - The value to write to the subsystempublic void processWrite(org.eclipse.scada.core.Variant value)
throws org.eclipse.scada.core.InvalidOperationException
org.eclipse.scada.core.InvalidOperationExceptionpublic void addListener(DataItemCommand.Listener listener)
listener - listener to addpublic void removeListener(DataItemCommand.Listener listener)
listener - listener to removepublic org.eclipse.scada.utils.concurrent.NotifyFuture<WriteAttributeResults> startSetAttributes(Map<String,org.eclipse.scada.core.Variant> attributes, OperationParameters operationParameters)
DataItemattributes - attributes to set