public class SymbolContext extends Object
Constructor and Description |
---|
SymbolContext(SymbolController controller) |
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(String commandId,
Map<String,String> eventData)
Execute an Eclipse command
|
Object |
getElement(String name)
Get an element from this symbol by name
|
SymbolContext |
getParent() |
Properties |
getProperties() |
Map<String,String> |
getPropertiesAsMap() |
Object |
getProperty(String name) |
Object |
getProperty(String name,
String defaultValue) |
SummaryInformation |
getSummary() |
void |
registerItem(String name,
String itemId,
String connectionId) |
void |
registerItem(String name,
String itemId,
String connectionId,
boolean ignoreSummary,
boolean nullInvalid) |
void |
startWrite(String connectionId,
String itemId,
Object value) |
void |
startWriteAttribute(String connectionId,
String itemId,
String key,
Object value) |
void |
startWriteAttributes(String connectionId,
String itemId,
Map<String,Variant> attributes) |
void |
startWriteAttributeString(String connectionId,
String itemId,
String key,
String value) |
void |
startWriteString(String connectionId,
String itemId,
String value) |
void |
unregisterItem(String name)
Unregister item for symbol
|
public SymbolContext(SymbolController controller)
public Properties getProperties()
public Object getElement(String name)
name
- the name of the symbol to fetchnull
if the element could not be found.org.eclipse.scada.vi.ui.draw2d.primitives
,
FigureContainerController
,
ImageController
,
ShapeController
,
RectangleController
public void registerItem(String name, String itemId, String connectionId, boolean ignoreSummary, boolean nullInvalid)
public void unregisterItem(String name)
There is no need to unregister items when the symbol is disposed. This will be performed automatically.
name
- the name of the item (not the id) to unregisterpublic void startWrite(String connectionId, String itemId, Object value) throws InterruptedException
InterruptedException
public void startWriteString(String connectionId, String itemId, String value) throws InterruptedException
InterruptedException
public void startWriteAttributeString(String connectionId, String itemId, String key, String value) throws InterruptedException
InterruptedException
public void startWriteAttribute(String connectionId, String itemId, String key, Object value) throws InterruptedException
InterruptedException
public void startWriteAttributes(String connectionId, String itemId, Map<String,Variant> attributes) throws InterruptedException
InterruptedException
public SymbolContext getParent()
public SummaryInformation getSummary()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.