protected class OpcUaConnector.OpcUaModelAccess
extends de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
| Modifier and Type | Field and Description |
|---|---|
private static char |
SEPARATOR_CHAR |
private static String |
SEPARATOR_STRING |
| Modifier | Constructor and Description |
|---|---|
protected |
OpcUaModelAccess()
Creates the instance and binds the listener to the creating connector instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
call(String qName,
Object... args) |
Object |
get(String qName) |
private org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId |
getEncodingId(Class<?> cls)
Returns the encodingId of a custom type.
|
String |
getQSeparator() |
<T> T |
getStruct(String qName,
Class<T> type) |
void |
monitor(String... qName) |
private void |
onSubscriptionValue(org.eclipse.milo.opcua.sdk.client.api.subscriptions.UaMonitoredItem item,
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
Is called on changing a monitored item.
|
void |
registerCustomType(Class<?> cls) |
void |
set(String qName,
Object value) |
void |
setStruct(String qName,
Object value) |
private static final char SEPARATOR_CHAR
private static final String SEPARATOR_STRING
protected OpcUaModelAccess()
public String getQSeparator()
public Object call(String qName, Object... args) throws IOException
IOExceptionpublic Object get(String qName) throws IOException
IOExceptionpublic void set(String qName, Object value) throws IOException
IOExceptionpublic <T> T getStruct(String qName, Class<T> type) throws IOException
IOExceptionpublic void setStruct(String qName, Object value) throws IOException
IOExceptionprivate org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getEncodingId(Class<?> cls) throws IOException
cls - the type classIOException - if the encodingID cannot be foundpublic void registerCustomType(Class<?> cls) throws IOException
IOExceptionpublic void monitor(String... qName) throws IOException
IOExceptionprivate void onSubscriptionValue(org.eclipse.milo.opcua.sdk.client.api.subscriptions.UaMonitoredItem item,
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
item - the monitored itemvalue - the new data valueCopyright © 2021. All rights reserved.