Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/19/11 13:52:12 (13 years ago)
Author:
mkommend
Message:

#1532:

  • Enabled renaming of symbols
  • Fixed cloning of grammers
  • Added readonly attribute in grammars to lock grammars during the algorithm run
  • Removed useless clone method in cloner
  • Changed CheckedItemCollectionViews to enable scrolling during the locked state
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/Symbol.cs

    r5809 r6233  
    4343    }
    4444    public override bool CanChangeName {
    45       get { return false; }
     45      get { return !(this is IReadOnlySymbol); }
    4646    }
    4747    public override bool CanChangeDescription {
     
    5656      initialFrequency = original.initialFrequency;
    5757    }
    58     protected Symbol()
    59       : base() {
    60       initialFrequency = 1.0;
    61     }
    6258
    6359    protected Symbol(string name, string description)
     
    6561      initialFrequency = 1.0;
    6662    }
    67 
    6863
    6964    public virtual ISymbolicExpressionTreeNode CreateTreeNode() {
Note: See TracChangeset for help on using the changeset viewer.