From e11e83330959d4a31ad73bf58767a60d66f63595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E4=BA=91=E6=98=8A?= Date: Sun, 27 Sep 2020 13:26:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor(opcua):=E8=B0=83=E6=95=B4pojo=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/i3plus-pojo-hardswitch/pom.xml | 6 ++ .../i3plus/pojo/hardswitch/bean/OpcUAParam.java | 69 ++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 modules/i3plus-pojo-hardswitch/src/main/java/cn/estsh/i3plus/pojo/hardswitch/bean/OpcUAParam.java diff --git a/modules/i3plus-pojo-hardswitch/pom.xml b/modules/i3plus-pojo-hardswitch/pom.xml index 0a44fb0..dc13374 100644 --- a/modules/i3plus-pojo-hardswitch/pom.xml +++ b/modules/i3plus-pojo-hardswitch/pom.xml @@ -42,6 +42,12 @@ + + + i3plus.pojo + i3plus-pojo-base + + ${project.artifactId}-${project.version} diff --git a/modules/i3plus-pojo-hardswitch/src/main/java/cn/estsh/i3plus/pojo/hardswitch/bean/OpcUAParam.java b/modules/i3plus-pojo-hardswitch/src/main/java/cn/estsh/i3plus/pojo/hardswitch/bean/OpcUAParam.java new file mode 100644 index 0000000..654b74b --- /dev/null +++ b/modules/i3plus-pojo-hardswitch/src/main/java/cn/estsh/i3plus/pojo/hardswitch/bean/OpcUAParam.java @@ -0,0 +1,69 @@ +package cn.estsh.i3plus.pojo.hardswitch.bean; + +import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn; +import io.swagger.annotations.ApiParam; +import lombok.Data; + +/** + * @Description : + * @Reference : + * @Author : yunhao + * @CreateDate : 2019-11-12 17:03 + * @Modify: + **/ +@Data +public class OpcUAParam { + + //opc.tcp://127.0.0.1:49320 + @ApiParam("ua服务地址") + private String serverUrl; + + /** + * 命名空间索引 + * 地址所在的 OPC UA 服务器命名空间的索引。 + */ + @ApiParam("命名空间索引") + private Integer namespaceIndex; + + /** + * 标记地址 + * 通道.设备.标记 + */ + @ApiParam("标记地址") + private String tagAddress; + + /** + * 标记值 + */ + @ApiParam("标记值") + private String tagValue; + + /** + * 标记值类型 + */ + @ApiParam("标记值类型") +// @AnnoOutputColumn(refClass = OpcUAEnumUtil.OPC_UA_TAG_VALUE_TYPE.class) + private String tagValueType; + public String getTagValueTypeVal(){ + return tagValueType == null ? "10" : tagValueType; + } + + /** + * 用户名 + */ + @ApiParam("用户名") + private String userName; + + /** + * 用户密码 + */ + @ApiParam("用户密码") + private String password; + + /** + * 请求间隔 + */ + @ApiParam("请求间隔") + private Double requestInterval = 500.0; + +}