當前位置: 首頁>>代碼示例>>Java>>正文


Java UaMethodNode類代碼示例

本文整理匯總了Java中org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode的典型用法代碼示例。如果您正苦於以下問題:Java UaMethodNode類的具體用法?Java UaMethodNode怎麽用?Java UaMethodNode使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


UaMethodNode類屬於org.eclipse.milo.opcua.sdk.server.nodes包,在下文中一共展示了UaMethodNode類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createCallMeNode

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
public static UaMethodNode createCallMeNode(final UShort index, final ServerNodeMap nodeMap) {
    final UaMethodNode method = new UaMethodNode(
            nodeMap,
            new NodeId(index, "call-me-al"),
            new QualifiedName(index, "Al"),
            LocalizedText.english("Al"),
            LocalizedText.english("Call me Al"),
            UInteger.MIN, UInteger.MIN, true, true);

    try {
        final AnnotationBasedInvocationHandler handler = AnnotationBasedInvocationHandler
                .fromAnnotatedObject(nodeMap, new CallMe());
        method.setInputArguments(handler.getInputArguments());
        method.setOutputArguments(handler.getOutputArguments());
        method.setInvocationHandler(handler);
    } catch (final Exception e) {
        e.printStackTrace();
    }
    return method;
}
 
開發者ID:ctron,項目名稱:milo-ece2017,代碼行數:21,代碼來源:CallMe.java

示例2: getInvocationHandler

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
@Override
public Optional<MethodInvocationHandler> getInvocationHandler(final NodeId methodId) {
    return Optional
            .ofNullable(this.nodeMap.get(methodId))
            .filter(n -> n instanceof UaMethodNode)
            .map(n -> {
                final UaMethodNode m = (UaMethodNode) n;
                return m.getInvocationHandler()
                        .orElse(new NotImplementedHandler());
            });
}
 
開發者ID:ctron,項目名稱:milo-ece2017,代碼行數:12,代碼來源:CustomNamespace.java

示例3: getInvocationHandler

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
@Override
public Optional<MethodInvocationHandler> getInvocationHandler(NodeId methodId) {
    ServerNode node = nodeManager.get(methodId);

    if (node instanceof UaMethodNode) {
        return ((UaMethodNode) node).getInvocationHandler();
    } else {
        return Optional.empty();
    }
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:11,代碼來源:TestNamespace.java

示例4: buildNode0

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode0() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=12543"), new QualifiedName(0, "OpenWithMasks"), new LocalizedText("en", "OpenWithMasks"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=12543"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12522"), NodeClass.ObjectType, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12543"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12544"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12543"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12545"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12543"), NodeId.parse("ns=0;i=37"), ExpandedNodeId.parse("svr=0;i=78"), NodeClass.Object, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12543"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12522"), NodeClass.ObjectType, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12543"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12544"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12543"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12545"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:12,代碼來源:UaMethodLoader.java

示例5: buildNode1

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode1() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=12546"), new QualifiedName(0, "CloseAndUpdate"), new LocalizedText("en", "CloseAndUpdate"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=12546"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12522"), NodeClass.ObjectType, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12546"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12705"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12546"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12547"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12546"), NodeId.parse("ns=0;i=37"), ExpandedNodeId.parse("svr=0;i=80"), NodeClass.Object, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12546"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12522"), NodeClass.ObjectType, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12546"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12705"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12546"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12547"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:12,代碼來源:UaMethodLoader.java

示例6: buildNode109

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode109() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=14142"), new QualifiedName(0, "SetPosition"), new LocalizedText("en", "SetPosition"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=14142"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=14123"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=14142"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=14143"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=14142"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=14123"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=14142"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=14143"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:9,代碼來源:UaMethodLoader.java

示例7: buildNode137

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode137() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=11680"), new QualifiedName(0, "Open"), new LocalizedText("en", "Open"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=11680"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=11675"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11680"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=11681"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11680"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=11682"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11680"), NodeId.parse("ns=0;i=37"), ExpandedNodeId.parse("svr=0;i=78"), NodeClass.Object, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11680"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=11675"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11680"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=11681"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11680"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=11682"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:12,代碼來源:UaMethodLoader.java

示例8: buildNode4

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode4() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=12616"), new QualifiedName(0, "UpdateCertificate"), new LocalizedText("en", "UpdateCertificate"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=12616"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12581"), NodeClass.ObjectType, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12616"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12617"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12616"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12618"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12616"), NodeId.parse("ns=0;i=37"), ExpandedNodeId.parse("svr=0;i=78"), NodeClass.Object, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12616"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12581"), NodeClass.ObjectType, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12616"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12617"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12616"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12618"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:12,代碼來源:UaMethodLoader.java

示例9: buildNode113

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode113() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=14153"), new QualifiedName(0, "RemoveCertificate"), new LocalizedText("en", "RemoveCertificate"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=14153"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=14123"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=14153"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=14154"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=14153"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=14123"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=14153"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=14154"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:9,代碼來源:UaMethodLoader.java

示例10: buildNode6

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode6() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=12650"), new QualifiedName(0, "Close"), new LocalizedText("en", "Close"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=12650"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12642"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12650"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12651"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12650"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12642"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12650"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12651"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:9,代碼來源:UaMethodLoader.java

示例11: getInvocationHandler

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
@Override
public Optional<MethodInvocationHandler> getInvocationHandler(NodeId methodId) {
    return Optional.ofNullable(nodeMap.get(methodId))
        .filter(n -> n instanceof UaMethodNode)
        .map(n -> {
            UaMethodNode m = (UaMethodNode) n;
            return m.getInvocationHandler()
                .orElse(new NotImplementedHandler());
        });
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:11,代碼來源:OpcUaNamespace.java

示例12: buildNode8

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode8() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=12655"), new QualifiedName(0, "Write"), new LocalizedText("en", "Write"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=12655"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12642"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12655"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12656"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12655"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12642"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12655"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12656"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:9,代碼來源:UaMethodLoader.java

示例13: buildNode9

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode9() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=12657"), new QualifiedName(0, "GetPosition"), new LocalizedText("en", "GetPosition"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=12657"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12642"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12657"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12658"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12657"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12659"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12657"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12642"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12657"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12658"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12657"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12659"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:11,代碼來源:UaMethodLoader.java

示例14: buildNode127

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode127() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=11588"), new QualifiedName(0, "Write"), new LocalizedText("en", "Write"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=11588"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=11575"), NodeClass.ObjectType, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11588"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=11589"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11588"), NodeId.parse("ns=0;i=37"), ExpandedNodeId.parse("svr=0;i=78"), NodeClass.Object, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11588"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=11575"), NodeClass.ObjectType, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=11588"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=11589"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:10,代碼來源:UaMethodLoader.java

示例15: buildNode11

import org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode; //導入依賴的package包/類
private void buildNode11() {
    UaMethodNode node = new UaMethodNode(this.nodeMap, NodeId.parse("ns=0;i=12663"), new QualifiedName(0, "OpenWithMasks"), new LocalizedText("en", "OpenWithMasks"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), true, true);
    node.addReference(new Reference(NodeId.parse("ns=0;i=12663"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12642"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12663"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12664"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12663"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12665"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12663"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=12642"), NodeClass.Object, false));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12663"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12664"), NodeClass.Variable, true));
    node.addReference(new Reference(NodeId.parse("ns=0;i=12663"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=12665"), NodeClass.Variable, true));
    this.nodeMap.addNode(node);
}
 
開發者ID:eclipse,項目名稱:milo,代碼行數:11,代碼來源:UaMethodLoader.java


注:本文中的org.eclipse.milo.opcua.sdk.server.nodes.UaMethodNode類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。