Search in sources :

Example 1 with UaObject

use of com.prosysopc.ua.nodes.UaObject in project FAAAST-Service by FraunhoferIOSB.

the class AasServiceNodeManager method addAasEnvironmentNode.

/**
 * Adds the AASEnvironment Node.
 */
private void addAasEnvironmentNode() {
    try {
        final UaObject objectsFolder = getServer().getNodeManagerRoot().getObjectsFolder();
        if (aasEnvironment != null) {
            String name = "AASEnvironment";
            logger.info("addAasEnvironmentNode " + name + "; to ObjectsFolder");
            QualifiedName browseName = UaQualifiedName.from(opc.i4aas.ObjectTypeIds.AASEnvironmentType.getNamespaceUri(), name).toQualifiedName(getNamespaceTable());
            NodeId nid = createNodeId(objectsFolder, browseName);
            aasEnvironmentNode = createInstance(AASEnvironmentType.class, nid, browseName, LocalizedText.english(name));
            objectsFolder.addComponent(aasEnvironmentNode);
        }
    } catch (Throwable ex) {
        logger.error("addAasEnvironmentNode Exception", ex);
        throw ex;
    }
}
Also used : UaQualifiedName(com.prosysopc.ua.UaQualifiedName) QualifiedName(com.prosysopc.ua.stack.builtintypes.QualifiedName) NodeId(com.prosysopc.ua.stack.builtintypes.NodeId) ByteString(com.prosysopc.ua.stack.builtintypes.ByteString) LangString(io.adminshell.aas.v3.model.LangString) UaObject(com.prosysopc.ua.nodes.UaObject) AASEnvironmentType(opc.i4aas.AASEnvironmentType)

Aggregations

UaQualifiedName (com.prosysopc.ua.UaQualifiedName)1 UaObject (com.prosysopc.ua.nodes.UaObject)1 ByteString (com.prosysopc.ua.stack.builtintypes.ByteString)1 NodeId (com.prosysopc.ua.stack.builtintypes.NodeId)1 QualifiedName (com.prosysopc.ua.stack.builtintypes.QualifiedName)1 LangString (io.adminshell.aas.v3.model.LangString)1 AASEnvironmentType (opc.i4aas.AASEnvironmentType)1