Administrator
2021-01-20 929c6af032f17eb85310cb027730fc6472b6fd5f
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.dev.fbs9600;
 
public class FBS9600_State {
    static final int UsrCmdNull = 0;
    static final int UsrCmdTestRes = 81;
    static final int UsrCmdTestResSuc = 82;
    static final int WorkStateNull = 0;
    static final int WorkStateRes = 1;
    String ip_addr;
    int dev_id;
    private int op_cmd;
    private boolean op_cmd_ack_fromdev = false;
    int work_state;
    int com_count;
    int com_err_count;
    long alm_rec_id = 0L;
 
    public FBS9600_State(String ipaddr, int id) {
        this.ip_addr = ipaddr;
        this.dev_id = id;
    }
 
    public void setWorkState() {
        this.work_state = 1;
    }
 
    public void clearWorkState() {
        this.work_state = 0;
    }
 
    public int getWorkState() {
        return this.work_state;
    }
 
    public void setFBS9600CmdAckFromDev(boolean stat) {
        this.op_cmd_ack_fromdev = stat;
    }
 
    public boolean getFBS9600CmdAckFromDev() {
        return this.op_cmd_ack_fromdev;
    }
 
    public void setFBS9600Cmd(int cmd) {
        this.op_cmd = cmd;
    }
 
    public int getFBS9600Cmd() {
        return this.op_cmd;
    }
 
    public void setComCountInc() {
        this.com_err_count = 0;
        this.com_count += 1;
        if (this.com_count >= 90000000)
            this.com_count = 1;
    }
 
    public void setComErrCountInc() {
        this.com_err_count += 1;
        if (this.com_err_count >= 90000000)
            this.com_err_count = 20;
    }
}
 
/*
 * Location:
 * C:\Users\LiJun\Desktop\公司各种设备资料\9600显示模块相关文件\后台程序\2018-09-07\BattFBS9600XSP.
 * jar Qualified Name: com.dev.fbs9600.FBS9600_State JD-Core Version: 0.6.2
 */