Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (14 years ago)
Author:
swagner
Message:

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

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

    r3017 r3048  
    3333  [Creatable("Test")]
    3434  public sealed class IntCounter : SingleSuccessorOperator {
    35     public LookupParameter<IntData> ValueParameter {
    36       get { return (LookupParameter<IntData>)Parameters["Value"]; }
     35    public LookupParameter<IntValue> ValueParameter {
     36      get { return (LookupParameter<IntValue>)Parameters["Value"]; }
    3737    }
    38     public ValueLookupParameter<IntData> IncrementParameter {
    39       get { return (ValueLookupParameter<IntData>)Parameters["Increment"]; }
     38    public ValueLookupParameter<IntValue> IncrementParameter {
     39      get { return (ValueLookupParameter<IntValue>)Parameters["Increment"]; }
    4040    }
    41     public IntData Increment {
     41    public IntValue Increment {
    4242      get { return IncrementParameter.Value; }
    4343      set { IncrementParameter.Value = value; }
     
    4646    public IntCounter()
    4747      : base() {
    48       Parameters.Add(new LookupParameter<IntData>("Value", "The value which should be incremented."));
    49       Parameters.Add(new ValueLookupParameter<IntData>("Increment", "The increment which is added to the value.", new IntData(1)));
     48      Parameters.Add(new LookupParameter<IntValue>("Value", "The value which should be incremented."));
     49      Parameters.Add(new ValueLookupParameter<IntValue>("Increment", "The increment which is added to the value.", new IntValue(1)));
    5050    }
    5151
    5252    public override IOperation Apply() {
    53       if (ValueParameter.ActualValue == null) ValueParameter.ActualValue = new IntData();
     53      if (ValueParameter.ActualValue == null) ValueParameter.ActualValue = new IntValue();
    5454      ValueParameter.ActualValue.Value += IncrementParameter.ActualValue.Value;
    5555      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.