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
|
*/
|