From 4b067b4db5c1f2a068d6e27cc138118810785e2d Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期三, 07 五月 2025 10:47:13 +0800 Subject: [PATCH] 1、创建命令生成器模块,实现部分命令数据生成,还需继续实现其他命令; 2、完善代码。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V2/ParseParamsForDownV2.java | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V2/ParseParamsForDownV2.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V2/ParseParamsForDownV2.java new file mode 100644 index 0000000..3888618 --- /dev/null +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V2/ParseParamsForDownV2.java @@ -0,0 +1,47 @@ +package com.dy.common.mw.protocol.p206V2; + +import com.dy.common.mw.protocol.CodeParseParams; + +public class ParseParamsForDownV2 implements CodeParseParams{ + + public String rtuResultSendWebUrl ;//rtu杩斿洖鍛戒护缁撴灉 鍙戝悜鐩殑鍦皐eb URL + public String protocolName ; + public Short protocolVersion ; + public String rtuAddr ;//鎺у埗鍣ㄥ湴鍧� + public String commandId ; + public String commandCode ; + public Object param ; + public Object attachment ; + + public ParseParamsForDownV2(){} + + public void clear(){ + this.protocolName = null ; + this.protocolVersion = null ; + this.rtuAddr = null ; + this.commandId = null ; + this.commandCode = null ; + this.param = null ; + this.attachment = null ; + } + + public void setValue( + String rtuResultSendWebUrl, + String protocolName, + Short protocolVersion, + String rtuAddr, + String commandId, + String commandCode, + Object param, + Object attachment ){ + this.rtuResultSendWebUrl = rtuResultSendWebUrl ; + this.protocolName = protocolName ; + this.protocolVersion = protocolVersion ; + this.rtuAddr = rtuAddr ; + this.commandId = commandId ; + this.commandCode = commandCode ; + this.param = param ; + this.attachment = attachment ; + } + +} -- Gitblit v1.8.0