Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/08 02:48:48 (16 years ago)
Author:
swagner
Message:

Worked on ticket #48

  • adapted CombinedOperator to offer a possibility for defining variable infos
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/CombinedOperator.cs

    r48 r52  
    7171          scope.AddVariable(new Variable(SubOperators[i].Name, SubOperators[i]));
    7272        }
     73
     74        foreach (IVariableInfo variableInfo in VariableInfos) {
     75          IItem value = GetVariableValue(variableInfo.FormalName, scope, true, true);
     76          if (scope.GetVariable(variableInfo.FormalName) != null)
     77            scope.RemoveVariable(variableInfo.FormalName);
     78          scope.AddVariable(new Variable(variableInfo.FormalName, value));
     79        }
     80
    7381        return new AtomicOperation(OperatorGraph.InitialOperator, scope);
    7482      } else {
Note: See TracChangeset for help on using the changeset viewer.