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
package com.iailab.netsdk.lib.enumeration;
 
/**
 * @author 47081
 * @version 1.0
 * @description 通道宽度
 * @date 2021/2/7
 */
public enum EM_CHANNEL_WIDTH {
  /** 未知 */
  EM_CHANNEL_WIDTH_UNKNOWN(-1, "未知"),
  /** 600mm */
  EM_CHANNEL_WIDTH_600(0, "600mm"),
  /** 700mm */
  EM_CHANNEL_WIDTH_700(1, "700mm"),
  /** 800mm */
  EM_CHANNEL_WIDTH_800(2, "800mm"),
  /** 900mm */
  EM_CHANNEL_WIDTH_900(3, "900mm"),
  /** 1000mm */
  EM_CHANNEL_WIDTH_1000(4, "1000mm"),
  /** 1100mm */
  EM_CHANNEL_WIDTH_1100(5, "1100mm"),
  /** 1200mm */
  EM_CHANNEL_WIDTH_1200(6, "1200mm");
  private int emWidth;
  private String desc;
 
  EM_CHANNEL_WIDTH(int emWidth, String desc) {
    this.emWidth = emWidth;
    this.desc = desc;
  }
 
  public int getEmWidth() {
    return emWidth;
  }
 
  public void setEmWidth(int emWidth) {
    this.emWidth = emWidth;
  }
 
  public String getDesc() {
    return desc;
  }
 
  public void setDesc(String desc) {
    this.desc = desc;
  }
  public static EM_CHANNEL_WIDTH getChannelWidth(int emWidth){
    for (EM_CHANNEL_WIDTH channelWidth :EM_CHANNEL_WIDTH.values() ) {
        if(channelWidth.emWidth==emWidth){
          return channelWidth;
        }
    }
    return EM_CHANNEL_WIDTH_UNKNOWN;
  }
}