Changeset 2027 for branches/Operator Architecture Refactoring/HeuristicLab.Operators/3.2/SubScopesCreater.cs
- Timestamp:
- 06/06/09 02:09:35 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Operator Architecture Refactoring/HeuristicLab.Operators/3.2/SubScopesCreater.cs
r1530 r2027 41 41 public SubScopesCreater() 42 42 : base() { 43 Add VariableInfo(new VariableInfo("SubScopes", "Number of sub-scopes", typeof(IntData), VariableKind.In));43 AddParameter(new Parameter("SubScopes", "Number of sub-scopes", typeof(IntData), ParameterType.In)); 44 44 } 45 45 … … 49 49 /// <param name="scope">The scope where to create the sub scopes.</param> 50 50 /// <returns><c>null</c>.</returns> 51 public override IOperation Apply(I Scope 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); 53 53 54 54 for (int i = 0; i < count.Data; i++)
Note: See TracChangeset
for help on using the changeset viewer.