public class SymbolController extends Object implements RegistrationManager.Listener
Constructor and Description |
---|
SymbolController(org.eclipse.swt.widgets.Shell shell,
SymbolController parentController,
SymbolLoader symbolLoader,
Map<String,String> properties,
Map<String,Object> scriptObjects,
FactoryContext factoryContext) |
SymbolController(org.eclipse.swt.widgets.Shell shell,
SymbolLoader symbolLoader,
Map<String,String> properties,
Map<String,Object> scriptObjects,
FactoryContext factoryContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(SymbolController controller) |
void |
addElement(Primitive primitive,
Object element) |
void |
addRawElement(String name,
Object element) |
void |
addSummaryListener(SummaryListener listener) |
Object |
createProperties(String command,
String onCreateProperties,
Map<String,String> currentProperties) |
ScriptExecutor |
createScriptExecutor(String command,
String sourceName) |
void |
debugLog(String string) |
void |
dispose() |
void |
errorLog(String string) |
void |
errorLog(String string,
Throwable e) |
void |
execute(ScriptExecutor scriptExecutor,
Map<String,Object> scriptObjects) |
protected void |
generatorConfigurationChanged() |
protected org.eclipse.ui.console.MessageConsole |
getConsole() |
protected SymbolContext |
getContext() |
Object |
getElement(Primitive primitive) |
Object |
getElement(String name) |
SymbolContext |
getParentContext() |
Properties |
getProperties() |
Map<String,DataValue> |
getRegistrationManagerData() |
Map<String,Object> |
getScriptObjects() |
org.eclipse.swt.widgets.Shell |
getShell() |
SummaryInformation |
getSummaryInformation() |
protected void |
handleDataUpdate() |
void |
init() |
protected void |
notifySummaryListeners() |
void |
registerItem(String name,
String itemId,
String connectionId,
boolean ignoreSummary,
boolean nullInvalid) |
protected void |
removeChild(SymbolController controller) |
void |
removeElement(Primitive primitive) |
void |
removeSummaryListener(SummaryListener listener) |
void |
startWrite(String connectionId,
String itemId,
Variant value) |
void |
startWriteAttributes(String connectionId,
String itemId,
Map<String,Variant> attributes) |
void |
triggerDataUpdate()
Trigger the controller to update the data from the registration manager
|
void |
unregisterItem(String name) |
public SymbolController(org.eclipse.swt.widgets.Shell shell, SymbolLoader symbolLoader, Map<String,String> properties, Map<String,Object> scriptObjects, FactoryContext factoryContext) throws Exception
Exception
public SymbolController(org.eclipse.swt.widgets.Shell shell, SymbolController parentController, SymbolLoader symbolLoader, Map<String,String> properties, Map<String,Object> scriptObjects, FactoryContext factoryContext) throws Exception
Exception
public org.eclipse.swt.widgets.Shell getShell()
protected void generatorConfigurationChanged()
protected org.eclipse.ui.console.MessageConsole getConsole()
public Properties getProperties()
protected void addChild(SymbolController controller)
protected void removeChild(SymbolController controller)
public void dispose()
public Object createProperties(String command, String onCreateProperties, Map<String,String> currentProperties) throws Exception
Exception
public void removeElement(Primitive primitive)
public void unregisterItem(String name)
public void registerItem(String name, String itemId, String connectionId, boolean ignoreSummary, boolean nullInvalid)
public void triggerDataUpdate()
This method can be called from any thread and must synchronized to the UI
triggerDataUpdate
in interface RegistrationManager.Listener
public SummaryInformation getSummaryInformation()
protected void handleDataUpdate()
protected void notifySummaryListeners()
public void addSummaryListener(SummaryListener listener)
public void removeSummaryListener(SummaryListener listener)
public ScriptExecutor createScriptExecutor(String command, String sourceName) throws Exception
Exception
public void execute(ScriptExecutor scriptExecutor, Map<String,Object> scriptObjects) throws Exception
Exception
public void startWrite(String connectionId, String itemId, Variant value) throws InterruptedException
InterruptedException
public void startWriteAttributes(String connectionId, String itemId, Map<String,Variant> attributes) throws InterruptedException
InterruptedException
public void debugLog(String string)
public void errorLog(String string)
protected SymbolContext getContext()
public SymbolContext getParentContext()