//reset public void Reset() { this.db_index = -1; this.setDatabase(); this.enzyme_index = 0; this.enzyme_spec_index = 0; this.setEnzyme(); this.cleavages = 3; //default this.ptl.Tl_value = 20; this.ptl.Isppm = 1; this.ftl.Tl_value = 20; this.ftl.Isppm = 1; this.open_search = true; this.fix_mods.Clear(); this.var_mods.Clear(); this.search_advanced = new Search_Advanced(); }
public void CopyTo(Search_Advanced sa) { sa.temppepnum = this.temppepnum; sa.pepnum = this.pepnum; sa.selectpeak = this.selectpeak; sa.maxprolen = this.maxprolen; sa.maxspec = this.maxspec; sa.ieql = this.ieql; sa.npep = this.npep; sa.maxdelta = this.maxdelta; sa.maxmod = this.maxmod; sa.open_tag_len = this.open_tag_len; sa.rest_tag_iteration = this.rest_tag_iteration; sa.rest_tag_len = this.rest_tag_len; sa.rest_mod_num = this.rest_mod_num; sa.salvo_mod_num = this.salvo_mod_num; sa.salvo_iteration = this.salvo_iteration; }
//添加模板任务之后,reset似乎已经不需要了 //public void reset() //{ //} public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType() != this.GetType()) { return(false); } Search_Advanced sa = obj as Search_Advanced; if ((System.Object)sa == null) { return(false); } if (this.temppepnum != sa.temppepnum) { return(false); } if (this.pepnum != sa.pepnum) { return(false); } if (this.selectpeak != sa.selectpeak) { return(false); } if (this.maxprolen != sa.maxprolen) { return(false); } if (this.maxspec != sa.maxspec) { return(false); } if (this.ieql != sa.ieql) { return(false); } if (this.npep != sa.npep) { return(false); } if (this.maxdelta != sa.maxdelta) { return(false); } if (this.maxmod != sa.maxmod) { return(false); } if (this.open_tag_len != sa.open_tag_len) { return(false); } if (this.rest_tag_iteration != sa.rest_tag_iteration) { return(false); } if (this.rest_tag_len != sa.rest_tag_len) { return(false); } if (this.rest_mod_num != sa.rest_mod_num) { return(false); } if (this.salvo_iteration != sa.salvo_iteration) { return(false); } if (this.salvo_mod_num != sa.salvo_mod_num) { return(false); } return(true); }