- 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/Counter.cs
r1530 r2027 43 43 public Counter() 44 44 : base() { 45 Add VariableInfo(new VariableInfo("Value", "Counter value", typeof(IntData), VariableKind.In | VariableKind.Out));45 AddParameter(new Parameter("Value", "Counter value", typeof(IntData), ParameterType.InOut)); 46 46 } 47 47 … … 51 51 /// <param name="scope">The scope whose variable should be incremented.</param> 52 52 /// <returns><c>null</c>.</returns> 53 public override IOperation Apply(I Scope scope) {54 IntData value = GetVariableValue<IntData>("Value", scope, true);53 public override IOperation Apply(IEnvironment env, IScope scope) { 54 IntData value = scope.GetVariableValue<IntData>(env.TranslateName("Value"), true); 55 55 value.Data++; 56 56 return null;
Note: See TracChangeset
for help on using the changeset viewer.