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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
| package com.battalarm;
|
| public class BattAlarmParam {
|
| public AlarmParamCell alm_OnlineVol;
| public AlarmParamCell alm_GroupVol;
| public AlarmParamCell alm_BattChargeCurr;
| public AlarmParamCell alm_BattDisChargeCurr;
| public AlarmParamCell alm_MonVol;
| public AlarmParamCell alm_MonTmp;
| public AlarmParamCell alm_MonRes;
| public AlarmParamCell alm_ConnRes;
| public AlarmParamCell alm_DischargeMonVol;
| public AlarmParamCell alm_MonLYVol; //©Һµçѹ¸æ¾¯
| public AlarmParamCell alm_MonREALCAP; //µ¥ÌåÔ¤¹ÀÈÝÁ¿¸æ¾¯
|
|
| /**
| * ĬÈÏ¿ªÆô ×é¶Ëµçѹ(ÉÏÏÂÏÞ) µ¥Ìåµçѹ(ÉÏÏÂÏÞ) ³äµçµçÁ÷(ÉÏÏÞ) ·ÅµçµçÁ÷(ÉÏÏÞ)
| */
| public BattAlarmParam()
| {
|
| /***
| * ¹úÍøÄ¬ÈϺËÈݸ澯²ÎÊý
| */
| alm_OnlineVol = new AlarmParamCell((float)1.18, (float)1.075, 1, 1, true, true, 1.187f, 1.062f, true, true,60,1,1);
| alm_GroupVol = new AlarmParamCell((float)1.18, (float)1.075, 1, 1, true, true, 1.187f, 1.062f, true, true,60,1,1);
| alm_BattChargeCurr = new AlarmParamCell((float)3, (float)0, 3, 3, true, false, 10f, 0, true, false,60,3,3);
| alm_BattDisChargeCurr = new AlarmParamCell((float)3, (float)0, 3, 3, true, false, 10f,0, true, false,60,3,3);
|
| alm_MonVol = new AlarmParamCell((float)1.19, (float)1, 4, 1, true, true, 1.23f, 0.9f, true, true,60,4,1);
| alm_MonTmp = new AlarmParamCell((float)1.5, (float)0.2, 4, 4, true, true, 1.6f, 0.12f,true , true,60,1,4);
|
| alm_MonRes = new AlarmParamCell((float)1.2, (float)0.5, 2, 4, false, false, 1.22f, 0.1f, true, false,60,1,4);
| alm_ConnRes = new AlarmParamCell((float)2, (float)0.5, 4, 4, false, false, 4f, 0.1f, false, false,60,4,4);
|
| alm_DischargeMonVol = new AlarmParamCell((float)1.2, (float)0.8, 4, 4, false, false, 1.75f, 0.6f, false, false,60,4,4);
|
| alm_MonLYVol = new AlarmParamCell((float)1.2, (float)0.7, 4, 4, true, false, 1.4f, 0.5f, true , false,60,4,4);
|
| alm_MonREALCAP = new AlarmParamCell((float)1.1,(float) 0.8, 4, 4, false, false, 1.3f, 0.6f, false, false,60,3,3);
|
| // /***
| // * ÄÏÍøÄ¬ÈϺËÈݸ澯²ÎÊý - ÄÏÈð
| // */
| // alm_OnlineVol = new AlarmParamCell((float)1.18, (float)1.075, 1, 1, true, true, 1.2f, 1.062f, true, true,60,1,1);
| // alm_GroupVol = new AlarmParamCell((float)1.18, (float)1.075, 2, 2, true, true, 1.2f, 1.062f, true, true,60,2,2);
| // alm_BattChargeCurr = new AlarmParamCell((float)3, (float)0, 3, 3, true, false, 3.2f, 0, true, false,60,3,3);
| // alm_BattDisChargeCurr = new AlarmParamCell((float)3, (float)0, 3, 3, true, false, 3.2f,0, true, false,60,3,3);
| //
| // alm_MonVol = new AlarmParamCell((float)1.2, (float)0.9, 4, 4, true, true, 1.25f, 0f, true, true,60,4,4);
| // alm_MonTmp = new AlarmParamCell((float)1.2, (float)0.5, 4, 4, true, false, 1.6f, 0f,true , true,60,4,4);
| //
| // alm_MonRes = new AlarmParamCell((float)1.2, (float)0.5, 1, 4, false, false, 1.22f, 0.1f, true, false,60,1,4);
| // alm_ConnRes = new AlarmParamCell((float)2, (float)0.5, 4, 4, false, false, 4f, 0.1f, false, false,60,4,4);
| //
| // alm_DischargeMonVol = new AlarmParamCell((float)1.2, (float)0.8, 4, 4, false, false, 1.75f, 0.6f, false, false,60,4,4);
| //
| // alm_MonLYVol = new AlarmParamCell((float)1.2, (float)0.7, 4, 4, true, false, 1.4f, 0.5f, true , false,60,4,4);
| //
| // alm_MonREALCAP = new AlarmParamCell((float)1.1,(float) 0.8, 3, 3, false, false, 1.3f, 0.6f, false, false,60,3,3);
|
|
|
| /* alm_OnlineVol = new AlarmParamCell((float)1.125, (float)0.9, 1, 1, true, true);
| alm_GroupVol = new AlarmParamCell((float)1.125, (float)0.9, 2, 2, true, true);
| alm_BattChargeCurr = new AlarmParamCell((float)3, (float)0, 3, 3, true, false);
| alm_BattDisChargeCurr = new AlarmParamCell((float)3, (float)0, 3, 3, true, false);
|
| alm_MonVol = new AlarmParamCell((float)1.2, (float)0.9, 4, 4, true, true);
| alm_MonTmp = new AlarmParamCell((float)1.5, (float)0.5, 4, 4, false, false);
|
| alm_MonRes = new AlarmParamCell((float)2, (float)0.5, 4, 4, false, false);
| alm_ConnRes = new AlarmParamCell((float)2, (float)0.5, 4, 4, false, false);
|
| alm_DischargeMonVol = new AlarmParamCell((float)1.2, (float)0.8, 4, 4, false, false);
|
| alm_MonLYVol = new AlarmParamCell((float)1.2, (float)0.7, 4, 4, true, false);
|
| alm_MonREALCAP = new AlarmParamCell((float)1.1,(float) 0.8, 3, 3, false, false);
| */ }
|
| public void setAlarmParamCellValue(float std_value, AlarmParamCell apc_target, AlarmParamCell apc_param)
| {
| apc_target.alm_High = std_value * apc_param.alm_High;
| apc_target.alm_High_Level = apc_param.alm_High_Level;
| apc_target.alm_High_EN = apc_param.alm_High_EN;
|
| apc_target.alm_Low = std_value * apc_param.alm_Low;
| apc_target.alm_Low_Level = apc_param.alm_Low_Level;
| apc_target.alm_Low_EN = apc_param.alm_Low_EN;
|
| apc_target.alm_high_coe_upper = std_value * apc_param.alm_high_coe_upper;
| apc_target.alm_low_coe_lower = std_value * apc_param.alm_low_coe_lower;
|
| apc_target.alm_high_coe_upper_en = apc_param.alm_high_coe_upper_en;
| apc_target.alm_low_coe_lower_en = apc_param.alm_low_coe_lower_en;
|
| apc_target.alm_delay_time = apc_param.alm_delay_time;
|
| apc_target.alm_high_level_upper = apc_param.alm_high_level_upper;
| apc_target.alm_low_level_lower = apc_param.alm_low_level_lower;
|
| }
|
| public class AlarmParamCell {
| public int alm_Id = 0;
| public String alm_Name = "";
| public float alm_High = 0;
| public float alm_Low = 0;
| public int alm_High_Level = 1;
| public int alm_Low_Level = 1;
| public boolean alm_High_EN = true;
| public boolean alm_Low_EN = true;
|
| public float alm_high_coe_upper = 0; //ÉÏÉÏÏÞϵÊýÖµ
| public float alm_low_coe_lower = 0; //ÏÂÏÂÏÞϵÊýÖµ
| public boolean alm_high_coe_upper_en = true; //ÉÏÉÏÏÞʹÄÜ
| public boolean alm_low_coe_lower_en = true; //ÏÂÏÂÏÞʹÄÜ
|
| public int alm_delay_time = 60; //¸æ¾¯ÑÓ³Ùʱ³¤[µ¥Î»£ºÃë]
| public int alm_high_level_upper = 1; //'ÉÏÉÏÏ޸澯µÈ¼¶',
| public int alm_low_level_lower = 1; //'ÏÂÏÂÏ޸澯µÈ¼¶',
|
|
|
| /*public AlarmParamCell(float high, float low, int high_lev,
| int low_lev, boolean high_en, boolean low_en)
| {
| alm_Id = 0;
| alm_Name = "";
| alm_High = high;
| alm_Low = low;
| alm_High_Level = high_lev;
| alm_Low_Level = low_lev;
| alm_High_EN = high_en;
| alm_Low_EN = low_en;
| }*/
| public AlarmParamCell(float high, float low, int high_lev, int low_lev,
| boolean high_en, boolean low_en,
| float alm_high_coe_upper,float alm_low_coe_lower,
| boolean alm_high_coe_upper_en,boolean alm_low_coe_lower_en,int alm_delay_time,
| int alm_high_level_upper, int alm_low_level_lower)
| {
| this.alm_Id = 0;
| this.alm_Name = "";
| this.alm_High = high;
| this.alm_Low = low;
| this.alm_High_Level = high_lev;
| this.alm_Low_Level = low_lev;
| this.alm_High_EN = high_en;
| this.alm_Low_EN = low_en;
|
| this.alm_high_coe_upper = alm_high_coe_upper; //ÉÏÉÏÏÞϵÊýÖµ
| this.alm_low_coe_lower = alm_low_coe_lower; //ÏÂÏÂÏÞϵÊýÖµ
| this.alm_high_coe_upper_en = alm_high_coe_upper_en; //ÉÏÉÏÏÞʹÄÜ
| this.alm_low_coe_lower_en = alm_low_coe_lower_en; //ÏÂÏÂÏÞʹÄÜ
|
| this.alm_delay_time = alm_delay_time; //¸æ¾¯ÑÓ³Ùʱ³¤
| this.alm_high_level_upper = alm_high_level_upper; //ÉÏÉÏÏ޸澯µÈ¼¶
| this.alm_low_level_lower = alm_low_level_lower; //ÏÂÏÂÏ޸澯µÈ¼¶
| }
|
| @Override
| public String toString() {
| return "AlarmParamCell [alm_Id=" + alm_Id + ", alm_Name=" + alm_Name + ", alm_High=" + alm_High
| + ", alm_Low=" + alm_Low + ", alm_High_Level=" + alm_High_Level + ", alm_Low_Level=" + alm_Low_Level
| + ", alm_High_EN=" + alm_High_EN + ", alm_Low_EN=" + alm_Low_EN + ", alm_high_coe_upper="
| + alm_high_coe_upper + ", alm_low_coe_lower=" + alm_low_coe_lower + ", alm_high_coe_upper_en="
| + alm_high_coe_upper_en + ", alm_low_coe_lower_en=" + alm_low_coe_lower_en + ", alm_delay_time="
| + alm_delay_time + ", alm_high_level_upper=" + alm_high_level_upper + ", alm_low_level_lower="
| + alm_low_level_lower + "]";
| }
| }
| }
|
|