public void loadParams(string param) { string stemp = ""; string[] temp = param.Split('}'); stemp = Extention.getParamValueString(temp, "RSRConstant"); switch (stemp) { case "Yes": RSRConstant = StableTermType.Указанный; break; case "No": RSRConstant = StableTermType.Случайный; break; default: RSRConstant = StableTermType.Указанный; break; } stemp = Extention.getParamValueString(temp, "RSRTypeFunc"); switch (stemp) { case "Triangle": RSRTypeFunc = TypeTermFuncEnum.Треугольник; break; case "Gauss": RSRTypeFunc = TypeTermFuncEnum.Гауссоида; break; case "Parabola": RSRTypeFunc = TypeTermFuncEnum.Парабола; break; case "Trapezium": RSRTypeFunc = TypeTermFuncEnum.Трапеция; break; default: RSRTypeFunc = TypeTermFuncEnum.Треугольник; break; } RSRCountRules = Extention.getParamValueInt(temp, "RSRCountRules"); }
public virtual void loadParams(string param) { string stemp = ""; string[] temp = param.Split('}'); stemp = Extention.getParamValueString(temp, "IEWEFuncType"); switch (stemp) { case "Triangle": IEWEFuncType = TypeTermFuncEnum.Треугольник; break; case "Gauss": IEWEFuncType = TypeTermFuncEnum.Гауссоида; break; case "Parabola": IEWEFuncType = TypeTermFuncEnum.Парабола; break; case "Trapezium": IEWEFuncType = TypeTermFuncEnum.Трапеция; break; default: IEWEFuncType = TypeTermFuncEnum.Треугольник; break; } stemp = Extention.getParamValueString(temp, "IEWECountSlice"); string[] temps = stemp.Split(','); count_terms = new int[temps.Count()]; for (int i = 0; i < temps.Count(); i++) { int.TryParse(temps[i], out count_terms[i]); } IEWECountSlice = count_terms; }
public void loadParams(string param) { string stemp = ""; string[] temp = param.Split('}'); stemp = Extention.getParamValueString(temp, "IBSTypeFunc"); switch (stemp) { case "Triangle": IBSTypeFunc = TypeTermFuncEnum.Треугольник; break; case "Gauss": IBSTypeFunc = TypeTermFuncEnum.Гауссоида; break; case "Parabola": IBSTypeFunc = TypeTermFuncEnum.Парабола; break; case "Trapezium": IBSTypeFunc = TypeTermFuncEnum.Трапеция; break; default: IBSTypeFunc = TypeTermFuncEnum.Треугольник; break; } }
public void loadParams(string param) { string[] temp = param.Split('}'); ShrinkFeature = Extention.getParamValueString(temp, "ShrinkFeatures"); }
public void loadParams(string param) { string[] temp = param.Split('}'); ChooseFeatures = Extention.getParamValueString(temp, "ChooseFeatures"); }