Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/02/15 13:06:34 (9 years ago)
Author:
pfleck
Message:

#2027 Added some custom values when collecting parameter values of Terminators.

Location:
branches/TerminationCriteria/HeuristicLab.Termination/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/TerminationCriteria/HeuristicLab.Termination/3.3/ComparisonTerminator.cs

    r12411 r12413  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
     
    8283    }
    8384
     85    public override void CollectParameterValues(IDictionary<string, IItem> values) {
     86      base.CollectParameterValues(values);
     87      values.Add(ComparisonValueParameter.Name, new StringValue(ComparisonValueParameter.ActualName));
     88    }
     89
    8490    private void Comparison_ValueChanged(object sender, EventArgs e) {
    8591      OnComparisonChanged();
  • branches/TerminationCriteria/HeuristicLab.Termination/3.3/Terminator.cs

    r12407 r12413  
    2020#endregion
    2121
     22using System.Collections.Generic;
    2223using System.Drawing;
    2324using HeuristicLab.Common;
     
    5859
    5960    protected abstract bool CheckContinueCriterion();
     61
     62    public override void CollectParameterValues(IDictionary<string, IItem> values) {
     63      base.CollectParameterValues(values);
     64      values["Description"] = new StringValue(ToString());
     65      values["Type"] = new StringValue(GetType().GetPrettyName(false));
     66    }
    6067  }
    6168}
Note: See TracChangeset for help on using the changeset viewer.