Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/15/15 11:08:52 (9 years ago)
Author:
pfleck
Message:

#2027

  • Removed ISingleValueTerminator and used ThresholdTerminator for the View instead.
  • Added missing description in SingleObjectiveQualityTerminator.
  • Added ITerminationBasedOperator which contains the terminate-flag.
File:
1 moved

Legend:

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

    r12441 r12444  
    2020#endregion
    2121
     22using HeuristicLab.Core;
    2223using HeuristicLab.Core.Views;
     24using HeuristicLab.Data;
    2325using HeuristicLab.MainForm;
    2426
     
    2628
    2729  [View("ThresholdTerminator View")]
    28   [Content(typeof(ISingleValueTerminator), true)]
    29   public partial class SingleValueTerminatorView : ItemView {
     30  [Content(typeof(ThresholdTerminator<>), true)]
     31  public partial class ThresholdTerminatorView<T> : ItemView where T : class, IItem, IStringConvertibleValue, new() {
    3032
    31     public new ISingleValueTerminator Content {
    32       get { return (ISingleValueTerminator)base.Content; }
     33    public new ThresholdTerminator<T> Content {
     34      get { return (ThresholdTerminator<T>)base.Content; }
    3335      set { base.Content = value; }
    3436    }
    3537
    36     public SingleValueTerminatorView() {
     38    public ThresholdTerminatorView() {
    3739      InitializeComponent();
    3840    }
     
    4244      viewHost.Content = null;
    4345      if (Content != null) {
    44         viewHost.Content = Content.SingleValueParameter.ActualValue ?? Content.SingleValueParameter;
     46        viewHost.Content = Content.ThresholdParameter.ActualValue ?? Content.ThresholdParameter;
    4547      }
    4648    }
Note: See TracChangeset for help on using the changeset viewer.