Changeset 4262


Ignore:
Timestamp:
08/19/10 11:23:19 (12 years ago)
Author:
mkommend
Message:

Made DefaultGrammar abstract and sealed GlobalGrammar (ticket #1028).

Location:
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/DefaultSymbolicExpressionGrammar.cs

    r4249 r4262  
    3737  [StorableClass]
    3838  [Item("DefaultSymbolicExpressionGrammar", "Represents a grammar that defines the syntax of symbolic expression trees.")]
    39   public class DefaultSymbolicExpressionGrammar : Item, ISymbolicExpressionGrammar {
     39  public abstract class DefaultSymbolicExpressionGrammar : Item, ISymbolicExpressionGrammar {
    4040
    4141    #region properties for separation between implementation and persistence
     
    8888    private Symbol startSymbol;
    8989
    90     public DefaultSymbolicExpressionGrammar()
     90    protected DefaultSymbolicExpressionGrammar()
    9191      : base() {
    9292      this.minSubTreeCount = new Dictionary<string, int>();
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/GlobalSymbolicExpressionGrammar.cs

    r4249 r4262  
    3030  [StorableClass]
    3131  [Item("GlobalSymbolicExpressionGrammar", "Represents a grammar that defines the syntax of symbolic expression trees.")]
    32   public class GlobalSymbolicExpressionGrammar : DefaultSymbolicExpressionGrammar {
     32  public sealed class GlobalSymbolicExpressionGrammar : DefaultSymbolicExpressionGrammar {
    3333    [Storable]
    3434    private int minFunctionDefinitions;
     
    103103
    104104    //ctor for cloning
    105     protected GlobalSymbolicExpressionGrammar() : base() { }
     105    private GlobalSymbolicExpressionGrammar() : base() { }
    106106    [StorableConstructor]
    107     protected GlobalSymbolicExpressionGrammar(bool deserializing)
     107    private GlobalSymbolicExpressionGrammar(bool deserializing)
    108108      : base(deserializing) {
    109109    }
Note: See TracChangeset for help on using the changeset viewer.