当前位置: 首页>>代码示例>>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;未经允许,请勿转载。