Changeset 9942
- Timestamp:
- 09/10/13 15:21:36 (11 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9838,9934
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Operators/3.3/CheckedMultiOperator.cs
r9456 r9942 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 } -
stable/HeuristicLab.Operators/3.3/MultiOperator.cs
r9456 r9942 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 22 24 using HeuristicLab.Collections; 23 25 using HeuristicLab.Common; … … 25 27 using HeuristicLab.Parameters; 26 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System;28 using System.Collections.Generic;29 29 30 30 namespace HeuristicLab.Operators { … … 36 36 public abstract class MultiOperator<T> : SingleSuccessorOperator, IMultiOperator<T> where T : class, IOperator { 37 37 private List<IValueParameter<T>> operatorParameters; 38 protected IEnumerable<IValueParameter<T>> OperatorParameters { get { return operatorParameters; } } 38 39 39 40 [Storable]
Note: See TracChangeset
for help on using the changeset viewer.