Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/10 15:22:22 (15 years ago)
Author:
abeham
Message:

forbid changing some operator names #889, #890, #913, #914, #934, #924

Location:
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SingleObjectiveTestFunctionProblemEvaluator.cs

    r3376 r3520  
    3535  [StorableClass]
    3636  public abstract class SingleObjectiveTestFunctionProblemEvaluator : SingleSuccessorOperator, ISingleObjectiveTestFunctionProblemEvaluator {
     37    /// <summary>
     38    /// These operators should not change their name through the GUI
     39    /// </summary>
     40    public override bool CanChangeName {
     41      get { return false; }
     42    }
    3743    /// <summary>
    3844    /// Returns whether the actual function constitutes a maximization or minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/AdditiveMoveEvaluator.cs

    r3376 r3520  
    3434  [StorableClass]
    3535  public abstract class AdditiveMoveEvaluator : SingleSuccessorOperator, ISingleObjectiveTestFunctionAdditiveMoveEvaluator {
     36
    3637    public abstract Type EvaluatorType { get; }
     38    public override bool CanChangeName {
     39      get { return false; }
     40    }
     41
    3742    public ILookupParameter<DoubleValue> QualityParameter {
    3843      get { return (ILookupParameter<DoubleValue>)Parameters["Quality"]; }
Note: See TracChangeset for help on using the changeset viewer.