liurunyu
2024-11-03 3773d0e2d61676ce23901bb79b670691c28c7b04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.dy.common.mw.protocol.p206V1;
 
import com.dy.common.mw.protocol.CodeParseParams;
 
public class ParseParamsForDownV1 implements CodeParseParams{
 
    public String rtuResultSendWebUrl ;//rtu返回命令结果 发向目的地web URL
    public String protocolName ;
    public Short protocolVersion ;
    public String rtuAddr ;//控制器地址
    public String commandId ;
    public String commandCode ;
    public Object param ;
    public Object attachment ;
    
    public ParseParamsForDownV1(){}
    
    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 ; 
    }
 
}