Changeset 7579 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 03/07/12 14:00:45 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r7467 r7579 240 240 } 241 241 242 protected override IEnumerable<KeyValuePair<string, IItem>> GetCollectedValues(IItem value) { 243 var children = base.GetCollectedValues(value); 244 foreach (var child in children) { 245 if (child.Value is IOperator) 246 yield return new KeyValuePair<string, IItem>(child.Key, new StringValue(((IOperator)child.Value).Name)); 247 else yield return child; 248 } 249 } 250 242 251 #region Events 243 252 public event EventHandler ExecutionStateChanged; -
trunk/sources/HeuristicLab.Optimization/3.3/Problems/Problem.cs
r7431 r7579 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Data; 28 29 using HeuristicLab.Parameters; 29 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 97 98 #endregion 98 99 100 protected override IEnumerable<KeyValuePair<string, IItem>> GetCollectedValues(IItem value) { 101 var children = base.GetCollectedValues(value); 102 foreach (var child in children) { 103 if (child.Value is IOperator) 104 yield return new KeyValuePair<string, IItem>(child.Key, new StringValue(((IOperator)child.Value).Name)); 105 else yield return child; 106 } 107 } 108 99 109 #region events 100 110 private void Operators_Changed(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.