liurunyu
2023-11-20 fb31efc4c1efee99164dc83f6f67f1f609d1ba40
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
48
49
50
51
52
package com.dy.common.mw.protocol.pMeterV1_0_1;
 
import com.dy.common.mw.protocol.CodeParseParams;
 
public class ParseParamsForDownV1_0_1 implements CodeParseParams{
    
    public String protocolName ;
    public String rtuAddr ;//IMEI号(电信平台设备IMEI)
    public String meterNo ;//水表号
    public Integer productId ;//电信平台产品ID,当不在电信平台运行时,为null
    public String deviceId ;//电信平台设备ID,当不在电信平台运行时,为null
    public String commandId ;
    public String commandCode ;
    public Object param ;
    public Object attachment ;
    
    public ParseParamsForDownV1_0_1(){}
    
    public void clear(){
        this.protocolName = null ; 
        this.rtuAddr = null ; 
        this.meterNo = null ; 
        this.productId = null ; 
        this.deviceId = null ; 
        this.commandId = null ; 
        this.commandCode = null ; 
        this.param = null ; 
        this.attachment = null ; 
    }
    
    public void setValue(
            String protocolName, 
            String rtuAddr, 
            String meterNo,
            Integer productId, 
            String deviceId, 
            String commandId,
            String commandCode, 
            Object param, 
            Object attachment ){
        this.protocolName = protocolName ; 
        this.rtuAddr = rtuAddr ; 
        this.meterNo = meterNo ; 
        this.productId = productId ; 
        this.deviceId = deviceId ; 
        this.commandId = commandId ; 
        this.commandCode = commandCode ; 
        this.param = param ; 
        this.attachment = attachment ; 
    }
 
}