public class DataItemTargetImpl extends DataItemBase implements DataSourceListener
listener
Constructor and Description |
---|
DataItemTargetImpl(ObjectPoolTracker<DataSource> poolTracker,
DataItemInformation information,
String dataSourceId) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
Map<String,Variant> |
getAttributes() |
protected Map<String,Variant> |
getCacheAttributes() |
protected Variant |
getCacheValue() |
NotifyFuture<Variant> |
readValue()
The read operation of a data item.
|
protected void |
setDataSource(DataSource dataSource) |
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.
|
void |
stateChanged(DataItemValue value) |
getInformation, handleListenerChange, notifyData, notifyData, setListener
public DataItemTargetImpl(ObjectPoolTracker<DataSource> poolTracker, DataItemInformation information, String dataSourceId) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
protected Map<String,Variant> getCacheAttributes()
getCacheAttributes
in class DataItemBase
protected Variant getCacheValue()
getCacheValue
in class DataItemBase
protected void setDataSource(DataSource dataSource)
public Map<String,Variant> getAttributes()
getAttributes
in interface DataItem
public NotifyFuture<Variant> readValue() throws InvalidOperationException
DataItem
readValue
in interface DataItem
InvalidOperationException
- Raised if "read" is not a valid operation for this itempublic NotifyFuture<WriteAttributeResults> startSetAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
DataItem
startSetAttributes
in interface DataItem
attributes
- attributes to setpublic NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
DataItem
startWriteValue
in interface DataItem
value
- The value to write to the subsystempublic void dispose()
public void stateChanged(DataItemValue value)
stateChanged
in interface DataSourceListener
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.