Changeset 3687 for trunk/sources/HeuristicLab.Operators
- Timestamp:
- 05/06/10 23:34:36 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/SubScopesSorter.cs
r3659 r3687 58 58 public override IOperation Apply() { 59 59 descending = DescendingParameter.ActualValue.Value; 60 actualName = LookupParameter<ItemArray<DoubleValue>>.TranslateName(ValueParameter.Name, ExecutionContext);60 actualName = ValueParameter.TranslatedName; 61 61 CurrentScope.SubScopes.Sort(SortScopes); 62 62 return base.Apply(); -
trunk/sources/HeuristicLab.Operators/3.3/VariableCreator.cs
r3503 r3687 47 47 IVariable var; 48 48 foreach (IParameter param in CollectedValues) { 49 CurrentScope.Variables.TryGetValue(param.Name, out var); 49 ILookupParameter lookupParam = param as ILookupParameter; 50 string name = lookupParam != null ? lookupParam.TranslatedName : param.Name; 51 52 CurrentScope.Variables.TryGetValue(name, out var); 50 53 IItem value = param.ActualValue; 51 54 if (var != null) 52 55 var.Value = value == null ? null : (IItem)value.Clone(); 53 56 else 54 CurrentScope.Variables.Add(new Variable( param.Name, param.Description, value == null ? null : (IItem)value.Clone()));57 CurrentScope.Variables.Add(new Variable(name, param.Description, value == null ? null : (IItem)value.Clone())); 55 58 } 56 59 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.