Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/02/15 16:21:17 (9 years ago)
Author:
pfleck
Message:

#2027 Changed Terminator base class to SingleSuccessorOperator and omit some values while collecting parameter values to reduce the amount of collected values for all terminators.

File:
1 edited

Legend:

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

    r12413 r12414  
    3232  [Item("Terminator", "A base class for all termination criteria.")]
    3333  [StorableClass]
    34   public abstract class Terminator : InstrumentedOperator, ITerminator {
     34  public abstract class Terminator : SingleSuccessorOperator, ITerminator {
    3535    public static new Image StaticItemImage {
    3636      get { return HeuristicLab.Common.Resources.VSImageLibrary.FlagRed; }
     
    5050    }
    5151
    52     public sealed override IOperation InstrumentedApply() {
     52    public sealed override IOperation Apply() {
    5353      if (!TerminateParameter.ActualValue.Value) { // If terminate flag is already set, no need to check further termination criteria.
    5454        bool terminate = !CheckContinueCriterion();
    5555        TerminateParameter.ActualValue = new BoolValue(terminate);
    5656      }
    57       return base.InstrumentedApply();
     57      return base.Apply();
    5858    }
    5959
     
    6262    public override void CollectParameterValues(IDictionary<string, IItem> values) {
    6363      base.CollectParameterValues(values);
    64       values["Description"] = new StringValue(ToString());
    6564      values["Type"] = new StringValue(GetType().GetPrettyName(false));
    6665    }
Note: See TracChangeset for help on using the changeset viewer.