Administrator
2021-08-05 130b3ab4872e0010bfef188360a75ab61bfcdf98
ElectricalSystem_MonitorServer_2KW/src/com/electrical/TwoKW/Electric_2MW_alarm.java
@@ -74,23 +74,23 @@
    */
   public String getStrByAlarm_id(int alarm_id) {
      switch(alarm_id) {
         case 109001:return "synchro_cycle_fault";
         case 109002:return "main_cabinet_fault_one";
         case 109003:return "main_cabinet_fault_two";
         case 109004:return "dcover_curr";
         case 109005:return "synchro_lose";
         case 109006:return "dcover_vol";
         case 109007:return "case_pulse_block";
         case 109008:return "case_transA_overcurr";
         case 109009:return "case_transB_overcurr";
         case 109010:return "case_transC_overcurr";
         case 109011:return "case_cuurfeedback_lose";
         case 109012:return "case_trip";
         case 109013:return "high_vol_switch_off";
         case 109014:return "emergency_button_pressed";
         case 109015:return "cabinet_door_protection";
         case 109016:return "tran_overtmp";
         case 109017:return "tran_overhightmp_trip";
         case 119001:return "synchro_cycle_fault";
         case 119002:return "main_cabinet_fault_one";
         case 119003:return "main_cabinet_fault_two";
         case 119004:return "dcover_curr";
         case 119005:return "synchro_lose";
         case 119006:return "dcover_vol";
         case 119007:return "case_pulse_block";
         case 119008:return "case_transA_overcurr";
         case 119009:return "case_transB_overcurr";
         case 119010:return "case_transC_overcurr";
         case 119011:return "case_cuurfeedback_lose";
         case 119012:return "case_trip";
         case 119013:return "high_vol_switch_off";
         case 119014:return "emergency_button_pressed";
         case 119015:return "cabinet_door_protection";
         case 119016:return "tran_overtmp";
         case 119017:return "tran_overhightmp_trip";
      }
      return "";
   }
@@ -101,45 +101,45 @@
    */
   public void setAlarmStateByAlarm_id(int alarm_id) {
      switch(alarm_id) {
         case 109001:this.synchro_cycle_fault = 1;
         case 109002:this.main_cabinet_fault_one = 1;
         case 109003:this.main_cabinet_fault_two = 1;
         case 109004:this.dcover_curr = 1;
         case 109005:this.synchro_lose = 1;
         case 109006:this.dcover_vol = 1;
         case 109007:this.case_pulse_block = 1;
         case 109008:this.case_transA_overcurr = 1;
         case 109009:this.case_transB_overcurr = 1;
         case 109010:this.case_transC_overcurr = 1;
         case 109011:this.case_cuurfeedback_lose = 1;
         case 109012:this.case_trip = 1;
         case 109013:this.high_vol_switch_off = 1;
         case 109014:this.emergency_button_pressed = 1;
         case 109015:this.cabinet_door_protection = 1;
         case 109016:this.tran_overtmp = 1;
         case 109017:this.tran_overhightmp_trip = 1;
         case 119001:this.synchro_cycle_fault = 1;
         case 119002:this.main_cabinet_fault_one = 1;
         case 119003:this.main_cabinet_fault_two = 1;
         case 119004:this.dcover_curr = 1;
         case 119005:this.synchro_lose = 1;
         case 119006:this.dcover_vol = 1;
         case 119007:this.case_pulse_block = 1;
         case 119008:this.case_transA_overcurr = 1;
         case 119009:this.case_transB_overcurr = 1;
         case 119010:this.case_transC_overcurr = 1;
         case 119011:this.case_cuurfeedback_lose = 1;
         case 119012:this.case_trip = 1;
         case 119013:this.high_vol_switch_off = 1;
         case 119014:this.emergency_button_pressed = 1;
         case 119015:this.cabinet_door_protection = 1;
         case 119016:this.tran_overtmp = 1;
         case 119017:this.tran_overhightmp_trip = 1;
      }
   }
   
   public int getAlarmIdByStr(String str) {
      switch(str) {
         case "synchro_cycle_fault":return 109001;
         case "main_cabinet_fault_one":return 109002;
         case "main_cabinet_fault_two":return 109003;
         case "dcover_curr":return 109004;
         case "synchro_lose":return 109005;
         case "dcover_vol":return 109006;
         case "case_pulse_block":return 109007;
         case "case_transA_overcurr":return 109008;
         case "case_transB_overcurr":return 109009;
         case "case_transC_overcurr":return 109010;
         case "case_cuurfeedback_lose":return 109011;
         case "case_trip":return 109012;
         case "high_vol_switch_off":return 109013;
         case "emergency_button_pressed":return 109014;
         case "cabinet_door_protection":return 109015;
         case "tran_overtmp":return 109016;
         case "tran_overhightmp_trip":return 109017;
         case "synchro_cycle_fault":return 119001;
         case "main_cabinet_fault_one":return 119002;
         case "main_cabinet_fault_two":return 119003;
         case "dcover_curr":return 119004;
         case "synchro_lose":return 119005;
         case "dcover_vol":return 119006;
         case "case_pulse_block":return 119007;
         case "case_transA_overcurr":return 119008;
         case "case_transB_overcurr":return 119009;
         case "case_transC_overcurr":return 119010;
         case "case_cuurfeedback_lose":return 119011;
         case "case_trip":return 119012;
         case "high_vol_switch_off":return 119013;
         case "emergency_button_pressed":return 119014;
         case "cabinet_door_protection":return 119015;
         case "tran_overtmp":return 119016;
         case "tran_overhightmp_trip":return 119017;
      }
      return 0;
   }