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, setDataSourcesaddListener, removeListener, updateDatapublic FormulaDataSource(org.osgi.framework.BundleContext context,
ObjectPoolTracker<DataSource> poolTracker,
ScheduledExecutorService executor)
protected void setOutputDataSource(DataSource dataSource)
protected Executor getExecutor()
AbstractDataSourcegetExecutor in class AbstractDataSourcenullpublic 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
Exceptionprotected void handleChange(Map<String,DataSourceHandler> sources)
handleChange in class AbstractMultiSourceDataSourceprotected Object executeScript(String command, CompiledScript compiledScript) throws ScriptException
ScriptExceptionprotected void executeScript(String command, CompiledScript compiledScript, Map<String,Integer> flags) throws Exception
Exceptionprotected void setOutputDataSource(String dataSourceId) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.