Search in sources :

Example 1 with AASQualifierList

use of opc.i4aas.AASQualifierList in project FAAAST-Service by FraunhoferIOSB.

the class AasServiceNodeManager method addQualifierNode.

/**
 * Adds a QualifierNode to the given Node.
 *
 * @param node The desired base node
 */
private void addQualifierNode(UaNode node) {
    try {
        String name = AASSubmodelElementType.QUALIFIER;
        LOG.info("addQualifierNode {}; to Node: {}", name, node);
        QualifiedName browseName = UaQualifiedName.from(opc.i4aas.ObjectTypeIds.AASQualifierList.getNamespaceUri(), name).toQualifiedName(getNamespaceTable());
        NodeId nid = createNodeId(node, browseName);
        AASQualifierList listNode = createInstance(AASQualifierList.class, nid, browseName, LocalizedText.english(name));
        node.addComponent(listNode);
    } catch (Exception ex) {
        LOG.error("addQualifierNode Exception", ex);
    }
}
Also used : UaQualifiedName(com.prosysopc.ua.UaQualifiedName) QualifiedName(com.prosysopc.ua.stack.builtintypes.QualifiedName) NodeId(com.prosysopc.ua.stack.builtintypes.NodeId) AASQualifierList(opc.i4aas.AASQualifierList) ByteString(com.prosysopc.ua.stack.builtintypes.ByteString) LangString(io.adminshell.aas.v3.model.LangString) ServiceResultException(com.prosysopc.ua.stack.common.ServiceResultException) StatusException(com.prosysopc.ua.StatusException) MessageBusException(de.fraunhofer.iosb.ilt.faaast.service.exception.MessageBusException) ServiceException(com.prosysopc.ua.ServiceException) UaNodeFactoryException(com.prosysopc.ua.nodes.UaNodeFactoryException) AddressSpaceException(com.prosysopc.ua.client.AddressSpaceException)

Aggregations

ServiceException (com.prosysopc.ua.ServiceException)1 StatusException (com.prosysopc.ua.StatusException)1 UaQualifiedName (com.prosysopc.ua.UaQualifiedName)1 AddressSpaceException (com.prosysopc.ua.client.AddressSpaceException)1 UaNodeFactoryException (com.prosysopc.ua.nodes.UaNodeFactoryException)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 ServiceResultException (com.prosysopc.ua.stack.common.ServiceResultException)1 MessageBusException (de.fraunhofer.iosb.ilt.faaast.service.exception.MessageBusException)1 LangString (io.adminshell.aas.v3.model.LangString)1 AASQualifierList (opc.i4aas.AASQualifierList)1