Changeset 9838
- Timestamp:
- 08/01/13 15:26:40 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/CheckedMultiOperator.cs
r9456 r9838 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 25 using HeuristicLab.Data; 24 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 27 … … 51 53 Operators = new CheckedItemList<T>(); 52 54 } 55 56 public override void CollectParameterValues(IDictionary<string, IItem> values) { 57 base.CollectParameterValues(values); 58 foreach (var opParam in OperatorParameters) { 59 var op = opParam.Value; 60 var @checked = Operators.ItemChecked(op); 61 values.Add(opParam.Name + ".Checked", new BoolValue(@checked)); 62 } 63 } 53 64 } 54 65 } -
trunk/sources/HeuristicLab.Operators/3.3/MultiOperator.cs
r9456 r9838 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.