Package org.opcfoundation.ua.core

Examples of org.opcfoundation.ua.core.NodeClass


        /*
         * Create the reference...
         */
        NodeId targetNodeId = NodeId.parseNodeId(gReference.getValue());

        NodeClass targetNodeClass = nodeSet.getUAObjectOrUAVariableOrUAMethod().stream()
                .filter(gNode -> gNode.getNodeId().equals(gReference.getValue()))
                .findFirst()
                .map(this::nodeClass)
                .orElse(NodeClass.Unspecified);

        boolean forward = gReference.isIsForward();

        ReferenceType reference = referenceBuilder.buildReference(
                sourceNodeId, referenceTypeId, new ExpandedNodeId(targetNodeId), targetNodeClass, forward);

        /*
         * Create the inverse of the reference...
         */
        NodeClass sourceNodeClass = nodeSet.getUAObjectOrUAVariableOrUAMethod().stream()
                .filter(gNode -> gNode.getNodeId().equals(sourceNodeId.toString()))
                .findFirst()
                .map(this::nodeClass)
                .orElse(NodeClass.Unspecified);

View Full Code Here

TOP

Related Classes of org.opcfoundation.ua.core.NodeClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.