Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/09 02:09:35 (15 years ago)
Author:
swagner
Message:

Refactoring of the operator architecture (#95)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Operator Architecture Refactoring/HeuristicLab.Operators/3.2/SubScopesCreater.cs

    r1530 r2027  
    4141    public SubScopesCreater()
    4242      : base() {
    43       AddVariableInfo(new VariableInfo("SubScopes", "Number of sub-scopes", typeof(IntData), VariableKind.In));
     43      AddParameter(new Parameter("SubScopes", "Number of sub-scopes", typeof(IntData), ParameterType.In));
    4444    }
    4545
     
    4949    /// <param name="scope">The scope where to create the sub scopes.</param>
    5050    /// <returns><c>null</c>.</returns>
    51     public override IOperation Apply(IScope scope) {
    52       IntData count = GetVariableValue<IntData>("SubScopes", scope, true);
     51    public override IOperation Apply(IEnvironment env, IScope scope) {
     52      IntData count = scope.GetVariableValue<IntData>(env.TranslateName("SubScopes"), true);
    5353
    5454      for (int i = 0; i < count.Data; i++)
Note: See TracChangeset for help on using the changeset viewer.