Changeset 14114
- Timestamp:
- 07/19/16 16:46:55 (8 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13566,14103
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Operators/3.3/InstrumentedOperator.cs
r12009 r14114 61 61 Parameters.Add(new FixedValueParameter<OperatorList>(AfterExecutionOperatorsParameterName, "Actions that are executed after the execution of the operator", new OperatorList())); 62 62 BeforeExecutionOperatorsParameter.Hidden = true; 63 BeforeExecutionOperatorsParameter.GetsCollected = false; 63 64 AfterExecutionOperatorsParameter.Hidden = true; 65 AfterExecutionOperatorsParameter.GetsCollected = false; 64 66 } 65 67 … … 77 79 } 78 80 #endregion 81 } 82 83 protected override IEnumerable<KeyValuePair<string, IItem>> GetCollectedValues(IValueParameter param) { 84 foreach (var b in base.GetCollectedValues(param)) yield return b; 85 if (param != BeforeExecutionOperatorsParameter && param != AfterExecutionOperatorsParameter) yield break; 86 var operatorList = (OperatorList)param.Value; 87 var counter = 0; 88 foreach (var op in operatorList) { 89 yield return new KeyValuePair<string, IItem>(counter.ToString(), op); 90 var children = new Dictionary<string, IItem>(); 91 op.CollectParameterValues(children); 92 foreach (var c in children) yield return new KeyValuePair<string, IItem>(counter + "." + c.Key, c.Value); 93 counter++; 94 } 79 95 } 80 96
Note: See TracChangeset
for help on using the changeset viewer.