houzhongjian
2024-10-30 a28ca3f36d0ace05966a8c0fac1e4b5fe921f882
提交 | 用户 | 时间
ce910c 1 package com.netsdk.lib.enumeration;
H 2
3 /**
4  * @author 47081
5  * @version 1.0
6  * @description \if ENGLISH_LANG
7  * <p>
8  * \else
9  * 太阳能系统故障信息
10  * \endif
11  * @date 2020/8/11
12  */
13 public enum EM_SOLARCELL_SYSTEM_FAULT_TYPE {
14
15     /**
16      * 未知
17      */
18     EM_SOLARCELL_SYSTEM_FAULT_TYPE_UNKNOWN(0, "未知"),
19     /**
20      * 电池过放
21      */
22     EM_SOLARCELL_SYSTEM_FAULT_TYPE_BATTERY_OVER_DISCHARGE(1, "电池过放"),
23     /**
24      * 电池施压
25      */
26     EM_SOLARCELL_SYSTEM_FAULT_TYPE_BATTERY_OVERPRESSURE(2, "电池施压"),
27     /**
28      * 欠压警告
29      */
30     EM_SOLARCELL_SYSTEM_FAULT_TYPE_UNDERVOLTAGE_WARNING(3, "欠压警告"),
31     /**
32      * 负载短路
33      */
34     EM_SOLARCELL_SYSTEM_FAULT_TYPE_LOAD_SHORT_CIRCUIT(4, "负载短路"),
35     /**
36      * 负载功率过大或负载过流
37      */
38     EM_SOLARCELL_SYSTEM_FAULT_TYPE_EXCESSIVE_LOAD_POWER_OR_LOAD_OVER_CURRENT(5, "负载功率过大或负载过流"),
39     /**
40      * 控制器温度过高
41      */
42     EM_SOLARCELL_SYSTEM_FAULT_TYPE_CONTROLLER_TEMPERATURE_IS_TOO_HIGH(6, "控制器温度过高"),
43     /**
44      * 外部环境温度过高
45      */
46     EM_SOLARCELL_SYSTEM_FAULT_TYPE_EXTERNAL_AMBIENT_TEMPERATURE_IS_TOO_HIGH(7, "外部环境温度过高"),
47     /**
48      * 光伏输入功率过大
49      */
50     EM_SOLARCELL_SYSTEM_FAULT_TYPE_EXCESSIVE_PHOTOVOLTAIC_INPUT_POWER(8, "光伏输入功率过大"),
51     /**
52      * 光伏输入短路
53      */
54     EM_SOLARCELL_SYSTEM_FAULT_TYPE_PHOTOVOLTAIC_INPUT_SHORT_CIRCUIT(9, "光伏输入短路"),
55     /**
56      * 光伏输入端超压
57      */
58     EM_SOLARCELL_SYSTEM_FAULT_TYPE_PHOTOVOLTAIC_INPUT_TERMINAL_OVERPRESSURE(10, "光伏输入端超压"),
59     /**
60      * 太阳板逆流
61      */
62     EM_SOLARCELL_SYSTEM_FAULT_TYPE_PHOTOVOLTAIC_SOLAR_PLATE_COUNTERCURRENT(11, "太阳板逆流"),
63     /**
64      * 太阳板工作点超压
65      */
66     EM_SOLARCELL_SYSTEM_FAULT_TYPE_OVERPRESSURE_AT_WORKING_POINT_OF_SOLAR_PANEL(12, "太阳板工作点超压"),
67     /**
68      * 太阳板反接
69      */
70     EM_SOLARCELL_SYSTEM_FAULT_TYPE_REVERSE_CONNECTION_OF_SOLAR_PANEL(13, "太阳板反接"),
71     /**
72      * Anti-reverse MOS short
73      */
74     EM_SOLARCELL_SYSTEM_FAULT_TYPE_ANTI_REVERSE_MOS_SHORT(14, "Anti-reverse MOS short"),
75     /**
76      * Circuit,charge MOS short circui
77      */
78     EM_SOLARCELL_SYSTEM_FAULT_TYPE_ANTI_CIRCUIT_CHARGE_MOS_SHORT_CIRCUI(15, "Circuit,charge MOS short circui");
79     private int type;
80     private String info;
81
82     private EM_SOLARCELL_SYSTEM_FAULT_TYPE(int type, String info) {
83         this.type = type;
84         this.info = info;
85     }
86
87     public int getType() {
88         return type;
89     }
90
91     public String getInfo() {
92         return info;
93     }
94
95     public static EM_SOLARCELL_SYSTEM_FAULT_TYPE getSolarcellFaultType(int type) {
96         for (EM_SOLARCELL_SYSTEM_FAULT_TYPE faultType : EM_SOLARCELL_SYSTEM_FAULT_TYPE.values()) {
97             if (faultType.getType() == type) {
98                 return faultType;
99             }
100         }
101         return null;
102     }
103 }