public class FormulaDataSource extends AbstractMultiSourceDataSource
DATA_SOURCE_ID
Constructor and Description |
---|
FormulaDataSource(org.osgi.framework.BundleContext context,
ObjectPoolTracker<DataSource> poolTracker,
ScheduledExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
protected Object |
executeScript(String command,
CompiledScript compiledScript) |
protected void |
executeScript(String command,
CompiledScript compiledScript,
Map<String,Integer> flags) |
protected Executor |
getExecutor()
Return the executor to use for sending out events
|
protected void |
handleChange(Map<String,DataSourceHandler> sources)
Handle data change
|
protected NotifyFuture<WriteResult> |
processWrite(Variant writeValue,
OperationParameters operationParameters) |
protected void |
setOutputDataSource(DataSource dataSource) |
protected void |
setOutputDataSource(String dataSourceId) |
NotifyFuture<WriteAttributeResults> |
startWriteAttributes(Map<String,Variant> attributes,
OperationParameters operationParameters) |
NotifyFuture<WriteResult> |
startWriteValue(Variant value,
OperationParameters operationParameters) |
void |
update(Map<String,String> parameters) |
addDataSource, clearSources, dispose, getSourcesCopy, getType, setDataSources
addListener, removeListener, updateData
public FormulaDataSource(org.osgi.framework.BundleContext context, ObjectPoolTracker<DataSource> poolTracker, ScheduledExecutorService executor)
protected void setOutputDataSource(DataSource dataSource)
protected Executor getExecutor()
AbstractDataSource
getExecutor
in class AbstractDataSource
null
public NotifyFuture<WriteAttributeResults> startWriteAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
public NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
protected NotifyFuture<WriteResult> processWrite(Variant writeValue, OperationParameters operationParameters) throws Exception
Exception
protected void handleChange(Map<String,DataSourceHandler> sources)
handleChange
in class AbstractMultiSourceDataSource
protected Object executeScript(String command, CompiledScript compiledScript) throws ScriptException
ScriptException
protected void executeScript(String command, CompiledScript compiledScript, Map<String,Integer> flags) throws Exception
Exception
protected void setOutputDataSource(String dataSourceId) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.