Changeset 11202 for branches/HiveStatistics/sources/HeuristicLab.Operators/3.3/CheckedMultiOperator.cs
- Timestamp:
- 07/18/14 12:01:13 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Operators/3.3/CheckedMultiOperator.cs
r9159 r11202 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 22 25 using HeuristicLab.Common; 23 26 using HeuristicLab.Core; … … 51 54 Operators = new CheckedItemList<T>(); 52 55 } 56 57 public override void CollectParameterValues(IDictionary<string, IItem> values) { 58 foreach (var param in Parameters.OfType<IValueParameter>().Except(OperatorParameters)) { 59 var children = GetCollectedValues(param); 60 foreach (var c in children) { 61 if (String.IsNullOrEmpty(c.Key)) 62 values.Add(param.Name, c.Value); 63 else values.Add(param.Name + "." + c.Key, c.Value); 64 } 65 } 66 foreach (var opParam in OperatorParameters) { 67 var op = opParam.Value; 68 var @checked = Operators.ItemChecked(op); 69 if (!@checked) continue; 70 var children = GetCollectedValues(opParam); 71 foreach (var c in children) { 72 if (String.IsNullOrEmpty(c.Key)) 73 values.Add(opParam.Name, c.Value); 74 else values.Add(opParam.Name + "." + c.Key, c.Value); 75 } 76 } 77 } 53 78 } 54 79 }
Note: See TracChangeset
for help on using the changeset viewer.