Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/10/10 03:39:02 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on parameters and operators
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/3.3/IntCounter.cs

    r2772 r2773  
    3030namespace HeuristicLab.Operators {
    3131  /// <summary>
    32   /// Operator which increments an integer variable.
     32  /// An operator which increments an integer variable.
    3333  /// </summary>
    34   [Item("Counter", "An operator which increments an integer variable.")]
     34  [Item("IntCounter", "An operator which increments an integer variable.")]
    3535  [EmptyStorableClass]
    3636  [Creatable("Test")]
    37   public sealed class Counter : SingleSuccessorOperator {
     37  public sealed class IntCounter : SingleSuccessorOperator {
    3838    public LookupParameter<IntData> ValueParameter {
    3939      get { return (LookupParameter<IntData>)Parameters["Value"]; }
     
    4747    }
    4848
    49     public Counter()
     49    public IntCounter()
    5050      : base() {
    5151      Parameters.Add(new LookupParameter<IntData>("Value", "The value which should be incremented."));
     
    5353    }
    5454
    55     public override IExecutionContext Apply() {
     55    public override IExecutionSequence Apply() {
    5656      if (ValueParameter.ActualValue == null) ValueParameter.ActualValue = new IntData();
    5757      ValueParameter.ActualValue.Value += IncrementParameter.ActualValue.Value;
Note: See TracChangeset for help on using the changeset viewer.