提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.netsdk.lib.NetSDKLib; |
|
4 |
|
|
5 |
/** |
|
6 |
* @author 47081 |
|
7 |
* @version 1.0 |
|
8 |
* @description 门禁的AB互锁功能, 多个门通道,只有其他B通道都关闭,唯一的A通道才打开 |
|
9 |
* @date 2021/2/7 |
|
10 |
*/ |
|
11 |
public class CFG_ABLOCK_INFO extends NetSDKLib.SdkStructure { |
|
12 |
/** 最大的互锁组数 */ |
|
13 |
public static final int CFG_MAX_ABLOCK_GROUP_NUM = 8; |
|
14 |
/** 使能 */ |
|
15 |
public boolean bEnable; |
|
16 |
/** 有效互锁组数 */ |
|
17 |
public int nDoors; |
|
18 |
/** 互锁组信息 */ |
|
19 |
public CFG_ABLOCK_DOOR_INFO[] stuDoors = |
|
20 |
(CFG_ABLOCK_DOOR_INFO[]) new CFG_ABLOCK_DOOR_INFO().toArray(CFG_MAX_ABLOCK_GROUP_NUM); |
|
21 |
|
|
22 |
@Override |
|
23 |
public String toString() { |
|
24 |
StringBuilder builder = new StringBuilder(); |
|
25 |
for (int i = 0; i < nDoors; i++) { |
|
26 |
builder.append(stuDoors[i].toString()).append("\n"); |
|
27 |
} |
|
28 |
return "CFG_ABLOCK_INFO{" |
|
29 |
+ "bEnable=" |
|
30 |
+ bEnable |
|
31 |
+ ", nDoors=" |
|
32 |
+ nDoors |
|
33 |
+ ", stuDoors=" |
|
34 |
+ builder.toString() |
|
35 |
+ '}'; |
|
36 |
} |
|
37 |
} |