提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 47081 |
|
5 |
* @version 1.0 |
|
6 |
* @description 热度图类型 |
|
7 |
* @date 2020/9/21 |
|
8 |
*/ |
|
9 |
public enum EM_HEATMAP_TYPE { |
|
10 |
/** |
|
11 |
* 未知 |
|
12 |
*/ |
|
13 |
EM_HEATMAP_UNKNOWN(0,"未知"), |
|
14 |
/** |
|
15 |
* 平均滞留时间热度图 |
|
16 |
*/ |
|
17 |
EM_HEATMAP_AVERAGESTAYTIME(1,"平均滞留时间热度图"), |
|
18 |
/** |
|
19 |
* 人数统计热度图 |
|
20 |
*/ |
|
21 |
EM_HEATMAP_HUMANSTATISTICS(2,"人数统计热度图"), |
|
22 |
/** |
|
23 |
* 行人轨迹图 |
|
24 |
*/ |
|
25 |
EM_HEATMAP_HUMANTRACK(3,"行人轨迹图"); |
|
26 |
/** |
|
27 |
* 类型 |
|
28 |
*/ |
|
29 |
private int type; |
|
30 |
/** |
|
31 |
* 解释 |
|
32 |
*/ |
|
33 |
private String desc; |
|
34 |
private EM_HEATMAP_TYPE(int type,String desc){ |
|
35 |
this.type=type; |
|
36 |
this.desc=desc; |
|
37 |
} |
|
38 |
|
|
39 |
public int getType() { |
|
40 |
return type; |
|
41 |
} |
|
42 |
|
|
43 |
public void setType(int type) { |
|
44 |
this.type = type; |
|
45 |
} |
|
46 |
|
|
47 |
public String getDesc() { |
|
48 |
return desc; |
|
49 |
} |
|
50 |
|
|
51 |
public void setDesc(String desc) { |
|
52 |
this.desc = desc; |
|
53 |
} |
|
54 |
|
|
55 |
public static EM_HEATMAP_TYPE getEmHeatMap(int type) { |
|
56 |
for (EM_HEATMAP_TYPE heatmap : EM_HEATMAP_TYPE.values()) { |
|
57 |
if (heatmap.getType() == type) { |
|
58 |
return heatmap; |
|
59 |
} |
|
60 |
} |
|
61 |
return null; |
|
62 |
} |
|
63 |
} |