Class OpcUaConnector.OpcUaModelAccess
java.lang.Object
de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
de.iip_ecosphere.platform.connectors.opcuav1.OpcUaConnector.OpcUaModelAccess
- All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.model.ModelAccess
- Enclosing class:
- OpcUaConnector<CO,CI>
protected class OpcUaConnector.OpcUaModelAccess
extends de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
Implements the model access for OPC UA.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private static charSEPARATOR_CHARprivate static StringSEPARATOR_STRING -
Constructor Summary
Constructors Modifier Constructor Description protectedOpcUaModelAccess()Creates the instance and binds the listener to the creating connector instance. -
Method Summary
Modifier and Type Method Description Objectcall(String qName, Object... args)Objectget(String qName)private org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdgetEncodingId(Class<?> cls)Returns the encodingId of a custom type.StringgetQSeparator()<T> TgetStruct(String qName, Class<T> type)voidmonitor(String... qName)private voidonSubscriptionValue(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.voidregisterCustomType(Class<?> cls)voidset(String qName, Object value)voidsetStruct(String qName, Object value)
-
Field Details
-
SEPARATOR_CHAR
private static final char SEPARATOR_CHAR- See Also:
- Constant Field Values
-
SEPARATOR_STRING
- See Also:
- Constant Field Values
-
-
Constructor Details
-
OpcUaModelAccess
protected OpcUaModelAccess()Creates the instance and binds the listener to the creating connector instance.
-
-
Method Details
-
getQSeparator
-
call
- Throws:
IOException
-
get
- Throws:
IOException
-
set
- Throws:
IOException
-
getStruct
- Throws:
IOException
-
setStruct
- Throws:
IOException
-
getEncodingId
private org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getEncodingId(Class<?> cls) throws IOExceptionReturns the encodingId of a custom type.- Parameters:
cls- the type class- Returns:
- the encodingId
- Throws:
IOException- if the encodingID cannot be found
-
registerCustomType
- Throws:
IOException
-
monitor
- Throws:
IOException
-
onSubscriptionValue
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.- Parameters:
item- the monitored itemvalue- the new data value
-