Changeset 2773 for trunk/sources/HeuristicLab.Operators/3.3/IntCounter.cs
- Timestamp:
- 02/10/10 03:39:02 (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/IntCounter.cs
r2772 r2773 30 30 namespace HeuristicLab.Operators { 31 31 /// <summary> 32 /// Operator which increments an integer variable.32 /// An operator which increments an integer variable. 33 33 /// </summary> 34 [Item(" Counter", "An operator which increments an integer variable.")]34 [Item("IntCounter", "An operator which increments an integer variable.")] 35 35 [EmptyStorableClass] 36 36 [Creatable("Test")] 37 public sealed class Counter : SingleSuccessorOperator {37 public sealed class IntCounter : SingleSuccessorOperator { 38 38 public LookupParameter<IntData> ValueParameter { 39 39 get { return (LookupParameter<IntData>)Parameters["Value"]; } … … 47 47 } 48 48 49 public Counter()49 public IntCounter() 50 50 : base() { 51 51 Parameters.Add(new LookupParameter<IntData>("Value", "The value which should be incremented.")); … … 53 53 } 54 54 55 public override IExecution ContextApply() {55 public override IExecutionSequence Apply() { 56 56 if (ValueParameter.ActualValue == null) ValueParameter.ActualValue = new IntData(); 57 57 ValueParameter.ActualValue.Value += IncrementParameter.ActualValue.Value;
Note: See TracChangeset
for help on using the changeset viewer.