public class DataItemInputChained extends DataItemBaseChained
| Modifier and Type | Field and Description |
|---|---|
protected Variant |
primaryValue |
protected Variant |
secondaryValue |
chain, executor, primaryAttributes, secondaryAttributeslistener| Constructor and Description |
|---|
DataItemInputChained(DataItemInformation dataItemInformation,
boolean autoTimestamp,
Executor executor) |
DataItemInputChained(DataItemInformation dataItemInformation,
Executor executor) |
DataItemInputChained(String id,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Variant> |
getCacheAttributes() |
protected Variant |
getCacheValue() |
protected void |
process() |
NotifyFuture<Variant> |
readValue()
The read operation of a data item.
|
NotifyFuture<WriteResult> |
startWriteValue(Variant value,
OperationParameters operationParameters)
The write operation of a data item.
|
void |
updateData(Variant value,
Map<String,Variant> attributes,
AttributeMode mode)
Update the item data
|
addChainElement, addChainElement, getAttributes, getChainCopy, handleUnhandledAttributes, processSetAttributes, removeChainElement, setChain, startSetAttributesgetInformation, handleListenerChange, notifyData, notifyData, setListenerprotected Variant primaryValue
protected Variant secondaryValue
public DataItemInputChained(DataItemInformation dataItemInformation, Executor executor)
public DataItemInputChained(DataItemInformation dataItemInformation, boolean autoTimestamp, Executor executor)
public void updateData(Variant value, Map<String,Variant> attributes, AttributeMode mode)
value - the new value, or null if the value did not
changeattributes - the new attributes, null if no attribute have
changedmode - The attribute change mode, null will use the
default ( AttributeMode.UPDATE )protected void process()
process in class DataItemBaseChainedpublic NotifyFuture<Variant> readValue() throws InvalidOperationException
DataItemInvalidOperationException - Raised if "read" is not a valid operation for this itempublic NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
DataItemvalue - The value to write to the subsystemprotected Map<String,Variant> getCacheAttributes()
getCacheAttributes in class DataItemBaseprotected Variant getCacheValue()
getCacheValue in class DataItemBaseCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.