Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/01/15 14:21:02 (10 years ago)
Author:
pfleck
Message:

#2027

  • Added IThresholdTerminator interface for more flexibility. The ThresholdTerminatorView now uses the interface instead of a concrete terminator.
  • Added MaximumIterationsTerminator and SingleObjectiveQualityTerminator as common used Terminators.
Location:
branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views/ThresholdTerminatorView.Designer.cs

    r12408 r12410  
    2525
    2626namespace HeuristicLab.Termination.Views {
    27   partial class ThresholdTerminatorView<T> where T : class, IItem, IComparable, IStringConvertibleValue, new() {
     27  partial class ThresholdTerminatorView {
    2828    /// <summary>
    2929    /// Required designer variable.
  • branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views/ThresholdTerminatorView.cs

    r12408 r12410  
    2020#endregion
    2121
    22 using System;
    23 using HeuristicLab.Core;
    2422using HeuristicLab.Core.Views;
    25 using HeuristicLab.Data;
    2623using HeuristicLab.MainForm;
    2724
     
    2926
    3027  [View("ThresholdTerminator View")]
    31   [Content(typeof(ThresholdTerminator<>), true)]
    32   public partial class ThresholdTerminatorView<T> : ItemView where T : class, IItem, IComparable, IStringConvertibleValue, new() {
     28  [Content(typeof(IThresholdTerminator), true)]
     29  public partial class ThresholdTerminatorView : ItemView {
    3330
    34     public new ThresholdTerminator<T> Content {
    35       get { return (ThresholdTerminator<T>)base.Content; }
     31    public new IThresholdTerminator Content {
     32      get { return (IThresholdTerminator)base.Content; }
    3633      set { base.Content = value; }
    3734    }
     
    4542      viewHost.Content = null;
    4643      if (Content != null) {
    47         if (Content.ThresholdParameter.Value != null)
    48           viewHost.Content = Content.ThresholdParameter.Value;
     44        if (Content.ThresholdParameter.ActualValue != null)
     45          viewHost.Content = Content.ThresholdParameter.ActualValue;
    4946        else
    5047          viewHost.Content = Content.ThresholdParameter;
Note: See TracChangeset for help on using the changeset viewer.