public class DataItemInputChained extends DataItemBaseChained
Modifier and Type | Field and Description |
---|---|
protected Variant |
primaryValue |
protected Variant |
secondaryValue |
chain, executor, primaryAttributes, secondaryAttributes
listener
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, startSetAttributes
getInformation, handleListenerChange, notifyData, notifyData, setListener
protected 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 DataItemBaseChained
public NotifyFuture<Variant> readValue() throws InvalidOperationException
DataItem
InvalidOperationException
- Raised if "read" is not a valid operation for this itempublic NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
DataItem
value
- The value to write to the subsystemprotected Map<String,Variant> getCacheAttributes()
getCacheAttributes
in class DataItemBase
protected Variant getCacheValue()
getCacheValue
in class DataItemBase
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.