コード例 #1
0
 public TransformMethod(string name, string caption, string version, string status, string fullName, string description, ConfigParamsDef configParamsDef)
 {
     this.Name            = name;
     this.Caption         = caption;
     this.Version         = version;
     this.Status          = status;
     this.FullName        = fullName;
     this.Description     = description;
     this.ConfigParamsDef = configParamsDef;
 }
コード例 #2
0
//    [SoapInclude(typeof(CompositeTransformMethod))]
//    [XmlInclude(typeof(CompositeTransformMethod))]
        public TransformMethods GetTransformMethods()
        {
            TransformMethods result = new TransformMethods();

            TransformMethod m;
            ConfigParamsDef p;

            p = new ConfigParamsDef();
            p.configParamsDef.Add(new ConfigParamDef("level", "Level", 0, 5, "Optimization level."));
            m = new TransformMethod("inline-0.5-beta", "Inline", "0.5", "beta", "SolidOpt.InlineTransformer, SolidOpt, Version=0.5.3700.223, Culture=neutral, PublicKeyToken=null", "Inline methods.", p);
            result.methods.Add(m);

            p = new ConfigParamsDef();
            p.configParamsDef.Add(new ConfigParamDef("level", "Level", 0, 5, "Optimization level."));
            p.configParamsDef.Add(new ConfigParamDef("clone", "Clone", true, true, "Use method clone."));
            m = new TransformMethod("inline-1.0-stable", "Inline", "1.0", "stable", "SolidOpt.InlineTransformer, SolidOpt, Version=1.0.3800.323, Culture=neutral, PublicKeyToken=null", "Inline all possible methods.", p);
            result.methods.Add(m);

            p = new ConfigParamsDef();
            p.configParamsDef.Add(new ConfigParamDef("level", "Level", 0, 5, "Optimization level."));
            p.configParamsDef.Add(new ConfigParamDef("clone", "Clone", true, true, "Use method clone."));
            p.configParamsDef.Add(new ConfigParamDef("cloneSensitivity", "Clone Sensitivity", (decimal)1.5, (decimal)1.0, "Method clone sensitivity."));
            m = new TransformMethod("inline-2.0-devel", "Inline", "2.0", "devel", "SolidOpt.InlineTransformer, SolidOpt, Version=2.0.4700.523, Culture=neutral, PublicKeyToken=null", "Inline all possible methods.", p);
            result.methods.Add(m);

            p = new ConfigParamsDef();
            p.configParamsDef.Add(new ConfigParamDef("propagationLevel", "Propagation Level", 0, 5, "Optimization level."));
            p.configParamsDef.Add(new ConfigParamDef("interMethodPropagation", "Inter-method propagation", true, true, "Make inter-method propagation of constants."));
            m = new TransformMethod("constantPropagation-1.0-devel", "Constant Propagation", "1.0", "devel", "SolidOpt.ConstantPropagationTransformer, SolidOpt, Version=1.0.1100.100, Culture=neutral, PublicKeyToken=null", "Make constant propagations.", p);
            result.methods.Add(m);

            p = new ConfigParamsDef();
            m = new TransformMethod("expressionSimplify-1.0-devel", "Expression simplify", "1.0", "devel", "Make expressions simplifications.", "SolidOpt.SimplifyExpressionTransformer, SolidOpt, Version=1.0.1100.100, Culture=neutral, PublicKeyToken=null", p);
            result.methods.Add(m);

            p = new ConfigParamsDef();
            p.configParamsDef.Add(new ConfigParamDef("methods", "Sub methods", new TransformMethods(), new TransformMethods(), "Composite container."));
            m = new TransformMethod("composite-1.0-stable", "Composite", "1.0", "stable", "SolidOpt.CompositeTransformer, SolidOpt, Version=1.0.2100.200, Culture=neutral, PublicKeyToken=null", "Composite sequence from optimization methods.", p);
            result.methods.Add(m);

            p = new ConfigParamsDef();
            p.configParamsDef.Add(new ConfigParamDef("descending", "Descending order", false, false, "Handle methods descending."));
            p.configParamsDef.Add(new ConfigParamDef("methods", "Sub methods", new TransformMethods(), new TransformMethods(), "Composite container."));
            m = new TransformMethod("compositeII-1.0-stable", "Composite II", "1.0", "stable", "SolidOpt.TwoWayCompositeTransformer, SolidOpt, Version=1.0.2100.200, Culture=neutral, PublicKeyToken=null", "Two way composite sequence from optimization methods.", p);
            result.methods.Add(m);

            return(result);
        }