Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/14/11 10:57:27 (13 years ago)
Author:
mkommend
Message:

#1479: Updated grammar editor and changed related classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/GroupSymbol.cs

    r6387 r6409  
    2727
    2828namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
     29  [StorableClass]
    2930  public sealed class GroupSymbol : Symbol {
    3031    private const int minimumArity = 0;
     
    4546    public IEnumerable<ISymbol> Symbols {
    4647      get { return symbols; }
     48      private set { symbols = new ObservableSet<ISymbol>(value); }
    4749    }
    4850
     
    7577    }
    7678
    77     public IEnumerable<ISymbol> Flatten() {
    78       return symbols.Union(symbols.OfType<GroupSymbol>().SelectMany(g => g.Flatten()));
     79    public override IEnumerable<ISymbol> Flatten() {
     80      return base.Flatten().Union(symbols.SelectMany(s => s.Flatten()));
    7981    }
    8082  }
Note: See TracChangeset for help on using the changeset viewer.