Changeset 3034


Ignore:
Timestamp:
03/15/10 14:16:23 (12 years ago)
Author:
swagner
Message:

Set name changing capabilities of operators (#893)

Location:
trunk/sources
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.Permutation/3.3/Creators/RandomPermutationCreator.cs

    r3017 r3034  
    3535  [Creatable("Test")]
    3636  public sealed class RandomPermutationCreator : SingleSuccessorOperator, IPermutationCreator, IStochasticOperator {
     37    public override bool CanChangeName {
     38      get { return false; }
     39    }
     40
    3741    public ILookupParameter<IRandom> RandomParameter {
    3842      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
  • trunk/sources/HeuristicLab.Encodings.Permutation/3.3/PermutationCrossover.cs

    r3017 r3034  
    3333  [StorableClass]
    3434  public abstract class PermutationCrossover : SingleSuccessorOperator, IPermutationCrossover, IStochasticOperator {
     35    public override bool CanChangeName {
     36      get { return false; }
     37    }
     38
    3539    public ILookupParameter<IRandom> RandomParameter {
    3640      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
  • trunk/sources/HeuristicLab.Encodings.Permutation/3.3/PermutationManipulator.cs

    r3017 r3034  
    3333  [StorableClass]
    3434  public abstract class PermutationManipulator : SingleSuccessorOperator, IPermutationManipulator, IStochasticOperator {
     35    public override bool CanChangeName {
     36      get { return false; }
     37    }
     38
    3539    public ILookupParameter<IRandom> RandomParameter {
    3640      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
  • trunk/sources/HeuristicLab.Encodings.RealVector/3.3/RealVectorCreator.cs

    r3017 r3034  
    3434  [StorableClass]
    3535  public abstract class RealVectorCreator : SingleSuccessorOperator, IRealVectorCreator, IStochasticOperator {
     36    public override bool CanChangeName {
     37      get { return false; }
     38    }
     39
    3640    public ILookupParameter<IRandom> RandomParameter {
    3741      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
  • trunk/sources/HeuristicLab.Encodings.RealVector/3.3/RealVectorCrossover.cs

    r3017 r3034  
    3434  [StorableClass]
    3535  public abstract class RealVectorCrossover : SingleSuccessorOperator, IRealVectorCrossover, IStochasticOperator {
     36    public override bool CanChangeName {
     37      get { return false; }
     38    }
     39
    3640    public ILookupParameter<IRandom> RandomParameter {
    3741      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
  • trunk/sources/HeuristicLab.Encodings.RealVector/3.3/RealVectorManipulator.cs

    r3017 r3034  
    3434  [StorableClass]
    3535  public abstract class RealVectorManipulator : SingleSuccessorOperator, IRealVectorManipulator, IStochasticOperator {
     36    public override bool CanChangeName {
     37      get { return false; }
     38    }
     39
    3640    public ILookupParameter<IRandom> RandomParameter {
    3741      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
  • trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperator.cs

    r3024 r3034  
    106106    }
    107107
    108     public override bool CanChangeName {
    109       get { return true; }
    110     }
    111108    public override bool CanChangeDescription {
    112109      get { return true; }
  • trunk/sources/HeuristicLab.Operators/3.3/CombinedOperator.cs

    r3024 r3034  
    3232  [StorableClass]
    3333  public sealed class CombinedOperator : AlgorithmOperator, IParameterizedItem {
    34     public override bool CanChangeName {
    35       get { return true; }
    36     }
    3734    public override bool CanChangeDescription {
    3835      get { return true; }
  • trunk/sources/HeuristicLab.Operators/3.3/Operator.cs

    r3024 r3034  
    3434    public override Image ItemImage {
    3535      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Method; }
    36     }
    37     public override bool CanChangeName {
    38       get { return false; }
    3936    }
    4037    public override bool CanChangeDescription {
  • trunk/sources/HeuristicLab.Operators/3.3/Placeholder.cs

    r3024 r3034  
    3232  [StorableClass]
    3333  public sealed class Placeholder : SingleSuccessorOperator {
    34     public override bool CanChangeName {
    35       get { return true; }
    36     }
    3734    public LookupParameter<IOperator> OperatorParameter {
    3835      get { return (LookupParameter<IOperator>)Parameters["Operator"]; }
  • trunk/sources/HeuristicLab.Selection/3.3/Selector.cs

    r3017 r3034  
    3535  [StorableClass]
    3636  public abstract class Selector : SingleSuccessorOperator, ISelector {
     37    public override bool CanChangeName {
     38      get { return false; }
     39    }
     40
    3741    protected ValueParameter<BoolData> CopySelectedParameter {
    3842      get { return (ValueParameter<BoolData>)Parameters["CopySelected"]; }
Note: See TracChangeset for help on using the changeset viewer.