| | |
| | | dict_Name = new Dictionary<string, variable>(); |
| | | dict_ID=new Dictionary<int, variable>(); |
| | | dict_Tag=new Dictionary<string, variable>(); |
| | | //dict_OutPut = new Dictionary<string, Ivariable[]>(); |
| | | |
| | | |
| | | 变量全集.ForEach(vv => { if (!string.IsNullOrEmpty(vv.Name) && !dict_Name.ContainsKey(vv.Name)) dict_Name.Add(vv.Name, vv); }); |
| | | 变量全集.ForEach(vv => { if (!dict_ID.ContainsKey(vv.ID)) dict_ID.Add(vv.ID, vv); }); |
| | | 变量全集.ForEach(vv => { if (!string.IsNullOrEmpty(vv.Tag) && !dict_Tag.ContainsKey(vv.Tag)) dict_Tag.Add(vv.Tag, vv); }); |
| | | |
| | | //输出变量.ForEach(vv => |
| | | //{ |
| | | // if (!string.IsNullOrEmpty(vv.Tag) && !dict_OutPut.ContainsKey(vv.Tag)) |
| | | // dict_OutPut.Add(vv.Tag, new Ivariable[] { vv }); |
| | | // if (!string.IsNullOrEmpty(vv.expressString) &&!dict_OutPut.ContainsKey(vv.expressString)) |
| | | // dict_OutPut.Add(vv.expressString,new Ivariable[] { vv }); |
| | | //}); |
| | | |
| | | 预处理插件.ForEach(vv => |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | public void buildOutputDict() |
| | | { |
| | | dict_OutPut = new Dictionary<string, Ivariable[]>(); |
| | | //dict_OutPut = new Dictionary<string, Ivariable[]>(); |
| | | 输出变量.ForEach(vv => |
| | | { |
| | | if (!string.IsNullOrEmpty(vv.Tag) && !dict_OutPut.ContainsKey(vv.Tag)) |
| | | dict_OutPut.Add(vv.Tag, new Ivariable[] { vv }); |
| | | if (!string.IsNullOrEmpty(vv.expressString) && !dict_OutPut.ContainsKey(vv.expressString)) |
| | | dict_OutPut.Add(vv.expressString, new Ivariable[] { vv }); |
| | | }); |
| | | } |
| | | |
| | | [NonSerialized] |
| | | [JsonIgnore] |
| | | public Dictionary<string, childSolutionParam> ChildParam = new Dictionary<string, childSolutionParam>(); |