New file |
| | |
| | | package com.electrical.FourKW; |
| | | |
| | | public class Electric_control_conn { |
| | | public int num ;//'主键', |
| | | public int electric_id ;// '组合界面主要id', |
| | | public String conn_name ;// '组合名称', |
| | | public int convolcontrol ;// '恒压控制', |
| | | public int concurrcontrol ;// '恒流控制', |
| | | public int conn_flag ;// '并联模式', |
| | | public int divide_flag ;// '串联模式', |
| | | public int volset ;// '电压给定', |
| | | public int currset ;// '电流给定', |
| | | public float givevol ;// '给定电压', |
| | | public float givecurr ;// '给定电流', |
| | | public int switchon1 ;// '输出合闸1', |
| | | public int switchon2 ;// '输出合闸2', |
| | | public int switchoff1 ;// '输出分闸1 ', |
| | | public int switchoff2 ;// '输出分闸2', |
| | | public int conn_start ;// '并联运行启动', |
| | | public int conn_stop ;// '并联运行停止', |
| | | |
| | | |
| | | public boolean control_en = false; |
| | | |
| | | |
| | | public Electric_control_conn(int electric_id) { |
| | | super(); |
| | | this.electric_id=electric_id; |
| | | } |
| | | public void clear() { |
| | | this.control_en = false; |
| | | this.convolcontrol = 0; |
| | | this.concurrcontrol = 0; |
| | | this.conn_flag = 0; |
| | | this.divide_flag=0; |
| | | this.volset = 0; |
| | | this.currset = 0; |
| | | this.givevol = 0; |
| | | this.givecurr = 0; |
| | | this.switchon1 = 0; |
| | | this.switchon2 = 0; |
| | | this.switchoff1 = 0; |
| | | this.switchoff2=0; |
| | | this.conn_start=0; |
| | | this.conn_stop=0; |
| | | } |
| | | public int getNum() { |
| | | return num; |
| | | } |
| | | public void setNum(int num) { |
| | | this.num = num; |
| | | } |
| | | public int getElectric_id() { |
| | | return electric_id; |
| | | } |
| | | public void setElectric_id(int electric_id) { |
| | | this.electric_id = electric_id; |
| | | } |
| | | public String getConn_name() { |
| | | return conn_name; |
| | | } |
| | | public void setConn_name(String conn_name) { |
| | | this.conn_name = conn_name; |
| | | } |
| | | public int getConvolcontrol() { |
| | | return convolcontrol; |
| | | } |
| | | public void setConvolcontrol(int convolcontrol) { |
| | | if(convolcontrol > 0) { |
| | | control_en = true; |
| | | } |
| | | this.convolcontrol = convolcontrol; |
| | | } |
| | | public int getConcurrcontrol() { |
| | | return concurrcontrol; |
| | | } |
| | | public void setConcurrcontrol(int concurrcontrol) { |
| | | if(concurrcontrol > 0) { |
| | | control_en = true; |
| | | } |
| | | this.concurrcontrol = concurrcontrol; |
| | | } |
| | | |
| | | public int getDivide_flag() { |
| | | return divide_flag; |
| | | } |
| | | public void setDivide_flag(int divide_flag) { |
| | | if(divide_flag > 0) { |
| | | control_en = true; |
| | | } |
| | | this.divide_flag = divide_flag; |
| | | } |
| | | public int getConn_flag() { |
| | | return conn_flag; |
| | | } |
| | | public void setConn_flag(int conn_flag) { |
| | | if(conn_flag > 0) { |
| | | control_en = true; |
| | | } |
| | | this.conn_flag = conn_flag; |
| | | } |
| | | public int getVolset() { |
| | | return volset; |
| | | } |
| | | public void setVolset(int volset) { |
| | | if(volset > 0) { |
| | | control_en = true; |
| | | } |
| | | this.volset = volset; |
| | | } |
| | | public int getCurrset() { |
| | | return currset; |
| | | } |
| | | public void setCurrset(int currset) { |
| | | if(currset > 0) { |
| | | control_en = true; |
| | | } |
| | | this.currset = currset; |
| | | } |
| | | public float getGivevol() { |
| | | return givevol; |
| | | } |
| | | public void setGivevol(float givevol) { |
| | | this.givevol = givevol; |
| | | } |
| | | public float getGivecurr() { |
| | | return givecurr; |
| | | } |
| | | public void setGivecurr(float givecurr) { |
| | | this.givecurr = givecurr; |
| | | } |
| | | public int getSwitchon1() { |
| | | return switchon1; |
| | | } |
| | | public void setSwitchon1(int switchon1) { |
| | | if(switchon1 > 0) { |
| | | control_en = true; |
| | | } |
| | | this.switchon1 = switchon1; |
| | | } |
| | | public int getSwitchon2() { |
| | | return switchon2; |
| | | } |
| | | public void setSwitchon2(int switchon2) { |
| | | if(switchon2 > 0) { |
| | | control_en = true; |
| | | } |
| | | this.switchon2 = switchon2; |
| | | } |
| | | public int getSwitchoff1() { |
| | | return switchoff1; |
| | | } |
| | | public void setSwitchoff1(int switchoff1) { |
| | | if(switchoff1 > 0) { |
| | | control_en = true; |
| | | } |
| | | this.switchoff1 = switchoff1; |
| | | } |
| | | public int getSwitchoff2() { |
| | | return switchoff2; |
| | | } |
| | | public void setSwitchoff2(int switchoff2) { |
| | | if(switchoff2 > 0) { |
| | | control_en = true; |
| | | } |
| | | this.switchoff2 = switchoff2; |
| | | } |
| | | public int getConn_start() { |
| | | return conn_start; |
| | | } |
| | | public void setConn_start(int conn_start) { |
| | | if(conn_start > 0) { |
| | | control_en = true; |
| | | } |
| | | this.conn_start = conn_start; |
| | | } |
| | | public int getConn_stop() { |
| | | return conn_stop; |
| | | } |
| | | public void setConn_stop(int conn_stop) { |
| | | if(conn_stop > 0) { |
| | | control_en = true; |
| | | } |
| | | this.conn_stop = conn_stop; |
| | | } |
| | | public boolean isControl_en() { |
| | | return control_en; |
| | | } |
| | | |
| | | public void setControl_en(boolean control_en) { |
| | | this.control_en = control_en; |
| | | } |
| | | |
| | | } |