| | |
| | | public int interval_time; //间隔时间
|
| | | public String note;
|
| | |
|
| | | public Dynamicload_control(int dev_id) {
|
| | | public int button_num; |
| | | public boolean control_en = false; |
| | | |
| | | public void clear() { |
| | | this.FZ_b1=0; |
| | | this.FZ_b2=0; |
| | | this.FZ_b3=0; |
| | | this.FZ_b4=0; |
| | | this.FZ_b5=0; |
| | | this.FZ_b6=0; |
| | | this.FZ_b7=0; |
| | | this.FZ_b8=0; |
| | | this.FZ_b9=0; |
| | | this.FZ_b10=0; |
| | | this.FZ_b11=0; |
| | | this.start_auto=0; |
| | | this.stop_auto=0; |
| | | this.sudden_crease=0; |
| | | this.all_open=0; |
| | | this.FZ_autostate1=0; |
| | | this.FZ_autostate2=0; |
| | | this.FZ_autostate3=0; |
| | | this.FZ_autostate4=0; |
| | | this.FZ_autostate5=0; |
| | | this.local_control=0; |
| | | this.back_control=0; |
| | | this.central_control=0; |
| | | this.inter_volume_M200=0; |
| | | this.fan_button=0; |
| | | this.set_power=0; |
| | | this.interval_time=0; |
| | | } |
| | | |
| | | public boolean isControl_en() { |
| | | return control_en; |
| | | } |
| | | public Dynamicload_control(int dev_id,int button_num) { |
| | | this.dev_id = dev_id;
|
| | | this.button_num=button_num; |
| | | }
|
| | |
|
| | | public int getDev_id() {
|
| | |
| | | this.dev_id = dev_id;
|
| | | }
|
| | | public void setFZ_b1(int fZ_b1) {
|
| | | if(fZ_b1 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b1 = fZ_b1;
|
| | | }
|
| | | public void setFZ_b2(int fZ_b2) {
|
| | | if(fZ_b2 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b2 = fZ_b2;
|
| | | }
|
| | | public void setFZ_b3(int fZ_b3) {
|
| | | if(fZ_b3 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b3 = fZ_b3;
|
| | | }
|
| | | public void setFZ_b4(int fZ_b4) {
|
| | | if(fZ_b4 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b4 = fZ_b4;
|
| | | }
|
| | | public void setFZ_b5(int fZ_b5) {
|
| | | if(fZ_b5 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b5 = fZ_b5;
|
| | | }
|
| | | public void setFZ_b6(int fZ_b6) {
|
| | | if(fZ_b6 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b6 = fZ_b6;
|
| | | }
|
| | | public void setFZ_b7(int fZ_b7) {
|
| | | if(fZ_b7 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b7 = fZ_b7;
|
| | | }
|
| | | public void setFZ_b8(int fZ_b8) {
|
| | | if(fZ_b8 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b8 = fZ_b8;
|
| | | }
|
| | | public void setFZ_b9(int fZ_b9) {
|
| | | if(fZ_b9 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b9 = fZ_b9;
|
| | | }
|
| | | public void setFZ_b10(int fZ_b10) {
|
| | | if(fZ_b10 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b10 = fZ_b10;
|
| | | }
|
| | | public void setFZ_b11(int fZ_b11) {
|
| | | if(fZ_b11 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_b11 = fZ_b11;
|
| | | }
|
| | | public void setStart_auto(int start_auto) {
|
| | | if(start_auto > 0) { |
| | | control_en = true; |
| | | } |
| | | this.start_auto = start_auto;
|
| | | }
|
| | | public void setStop_auto(int stop_auto) {
|
| | | if(stop_auto > 0) { |
| | | control_en = true; |
| | | } |
| | | this.stop_auto = stop_auto;
|
| | | }
|
| | | public void setSudden_crease(int sudden_crease) {
|
| | | if(sudden_crease > 0) { |
| | | control_en = true; |
| | | } |
| | | this.sudden_crease = sudden_crease;
|
| | | }
|
| | | public void setAll_open(int all_open) {
|
| | | if(all_open > 0) { |
| | | control_en = true; |
| | | } |
| | | this.all_open = all_open;
|
| | | }
|
| | | public void setFZ_autostate1(int fZ_autostate1) {
|
| | | if(fZ_autostate1 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_autostate1 = fZ_autostate1;
|
| | | }
|
| | | public void setFZ_autostate2(int fZ_autostate2) {
|
| | | if(fZ_autostate2 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_autostate2 = fZ_autostate2;
|
| | | }
|
| | | public void setFZ_autostate3(int fZ_autostate3) {
|
| | | if(fZ_autostate3 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_autostate3 = fZ_autostate3;
|
| | | }
|
| | | public void setFZ_autostate4(int fZ_autostate4) {
|
| | | if(fZ_autostate4 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_autostate4 = fZ_autostate4;
|
| | | }
|
| | | public void setFZ_autostate5(int fZ_autostate5) {
|
| | | if(fZ_autostate5 > 0) { |
| | | control_en = true; |
| | | } |
| | | FZ_autostate5 = fZ_autostate5;
|
| | | }
|
| | | public void setLocal_control(int local_control) {
|
| | | if(back_control > 0) { |
| | | control_en = true; |
| | | } |
| | | this.local_control = local_control;
|
| | | }
|
| | | public void setBack_control(int back_control) {
|
| | | if(back_control > 0) { |
| | | control_en = true; |
| | | } |
| | | this.back_control = back_control;
|
| | | }
|
| | | public void setCentral_control(int central_control) {
|
| | | if(central_control > 0) { |
| | | control_en = true; |
| | | } |
| | | this.central_control = central_control;
|
| | | }
|
| | | public void setInter_volume_M200(int inter_volume_M200) {
|
| | | if(inter_volume_M200 > 0) { |
| | | control_en = true; |
| | | } |
| | | this.inter_volume_M200 = inter_volume_M200;
|
| | | }
|
| | | public void setFan_button(int fan_button) {
|
| | | if(fan_button > 0) { |
| | | control_en = true; |
| | | } |
| | | this.fan_button = fan_button;
|
| | | }
|
| | | public void setNote(String note) {
|
| | | this.note = note;
|
| | | }
|
| | | |
| | | public float getSet_power() { |
| | | return set_power; |
| | | } |
| | | |
| | | public void setSet_power(float set_power) { |
| | | if(set_power > 0) { |
| | | control_en = true; |
| | | } |
| | | this.set_power = set_power; |
| | | } |
| | | |
| | | public int getInterval_time() { |
| | | return interval_time; |
| | | } |
| | | |
| | | public void setInterval_time(int interval_time) { |
| | | if(interval_time > 0) { |
| | | control_en = true; |
| | | } |
| | | this.interval_time = interval_time; |
| | | } |
| | | |
| | | public int getButton_num() { |
| | | return button_num; |
| | | } |
| | | |
| | | public void setButton_num(int button_num) { |
| | | this.button_num = button_num; |
| | | } |
| | | |
| | | @Override
|
| | | public String toString() {
|
| | | return "Dynamicload_control [dev_id=" + dev_id + ", FZ_b1=" + FZ_b1 + ", FZ_b2=" + FZ_b2 + ", FZ_b3=" + FZ_b3
|