Пример #1
0
 public void copyTo(pParse_Advanced pa)
 {
     pa.isolation_width        = this.isolation_width;
     pa.ipv_file               = string.Copy(this.ipv_file);
     pa.trainingset            = string.Copy(this.trainingset);
     pa.output_mars_y          = this.output_mars_y;
     pa.output_msn             = this.output_msn;
     pa.output_mgf             = this.output_mgf;
     pa.output_pf              = this.output_pf;
     pa.debug_mode             = this.debug_mode;
     pa.check_activationcenter = this.check_activationcenter;
     pa.output_all_mars_y      = this.output_all_mars_y;
     pa.rewrite_files          = this.rewrite_files;
     pa.export_unchecked_mono  = this.export_unchecked_mono;
     pa.cut_similiar_mono      = this.cut_similiar_mono;
     pa.output_trainingdata    = this.output_trainingdata;
 }
Пример #2
0
        //public void Reset()   //reset
        //{

        //}

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            pParse_Advanced pa = obj as pParse_Advanced;

            if ((System.Object)pa == null)
            {
                return(false);
            }
            if (isolation_width != pa.isolation_width)
            {
                return(false);
            }
            if (!ipv_file.Equals(pa.ipv_file))
            {
                return(false);
            }
            if (!trainingset.Equals(pa.trainingset))
            {
                return(false);
            }
            if (this.output_mars_y != pa.output_mars_y)
            {
                return(false);
            }
            if (this.output_msn != pa.output_msn)
            {
                return(false);
            }
            if (this.output_mgf != pa.output_mgf)
            {
                return(false);
            }
            if (this.output_pf != pa.output_pf)
            {
                return(false);
            }
            if (this.debug_mode != pa.debug_mode)
            {
                return(false);
            }
            if (this.check_activationcenter != pa.check_activationcenter)
            {
                return(false);
            }
            if (this.output_all_mars_y != pa.output_all_mars_y)
            {
                return(false);
            }
            if (this.rewrite_files != pa.rewrite_files)
            {
                return(false);
            }
            if (this.export_unchecked_mono != pa.export_unchecked_mono)
            {
                return(false);
            }
            if (this.cut_similiar_mono != pa.cut_similiar_mono)
            {
                return(false);
            }
            if (this.output_trainingdata != pa.output_trainingdata)
            {
                return(false);
            }
            return(true);
        }