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, setListenerpublic DataItemTargetImpl(ObjectPoolTracker<DataSource> poolTracker, DataItemInformation information, String dataSourceId) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionprotected Map<String,Variant> getCacheAttributes()
getCacheAttributes in class DataItemBaseprotected Variant getCacheValue()
getCacheValue in class DataItemBaseprotected void setDataSource(DataSource dataSource)
public Map<String,Variant> getAttributes()
getAttributes in interface DataItempublic NotifyFuture<Variant> readValue() throws InvalidOperationException
DataItemreadValue in interface DataItemInvalidOperationException - Raised if "read" is not a valid operation for this itempublic NotifyFuture<WriteAttributeResults> startSetAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
DataItemstartSetAttributes in interface DataItemattributes - attributes to setpublic NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
DataItemstartWriteValue in interface DataItemvalue - The value to write to the subsystempublic void dispose()
public void stateChanged(DataItemValue value)
stateChanged in interface DataSourceListenerCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.