Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/14/13 11:03:13 (11 years ago)
Author:
ascheibe
Message:

#2069 fixed cloning constructors and formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode/HeuristicLab.Problems.Robocode/Symbols/CodeNode.cs

    r9565 r9630  
    11using HeuristicLab.Common;
    2 using HeuristicLab.Core;
    32using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    43using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    54
    6 namespace HeuristicLab.Problems.Robocode
    7 {
    8     [StorableClass]
    9     public abstract class CodeNode : Symbol
    10     {
    11         public abstract string Prefix { get; set; }
    12         public abstract string Suffix { get; set; }
     5namespace HeuristicLab.Problems.Robocode {
     6  [StorableClass]
     7  public abstract class CodeNode : Symbol {
     8    public abstract string Prefix { get; set; }
     9    public abstract string Suffix { get; set; }
    1310
    14         [StorableConstructor]
    15         protected CodeNode(bool deserializing) : base(deserializing) { }
    16         protected CodeNode(CodeNode original, Cloner cloner)
    17             : base(original, cloner) { }
    18         protected CodeNode(string name, string description)
    19             : base(name, description)
    20         {
    21         }
     11    [StorableConstructor]
     12    protected CodeNode(bool deserializing) : base(deserializing) { }
     13    protected CodeNode(CodeNode original, Cloner cloner)
     14      : base(original, cloner) {
     15      this.Prefix = original.Prefix;
     16      this.Suffix = original.Suffix;
     17    }
     18    protected CodeNode(string name, string description)
     19      : base(name, description) {
     20    }
    2221
    23         public override IDeepCloneable Clone(Cloner cloner)
    24         {
    25             throw new System.NotImplementedException();
    26         }
     22    public override IDeepCloneable Clone(Cloner cloner) {
     23      throw new System.NotImplementedException();
     24    }
    2725
    28         public override int MaximumArity
    29         {
    30             get { throw new System.NotImplementedException(); }
    31         }
     26    public override int MaximumArity {
     27      get { throw new System.NotImplementedException(); }
     28    }
    3229
    33         public override int MinimumArity
    34         {
    35             get { throw new System.NotImplementedException(); }
    36         }
     30    public override int MinimumArity {
     31      get { throw new System.NotImplementedException(); }
     32    }
    3733
    38         public abstract string Interpret(ISymbolicExpressionTreeNode node, System.Collections.Generic.IEnumerable<ISymbolicExpressionTreeNode> children);
    39     }
     34    public abstract string Interpret(ISymbolicExpressionTreeNode node, System.Collections.Generic.IEnumerable<ISymbolicExpressionTreeNode> children);
     35  }
    4036}
Note: See TracChangeset for help on using the changeset viewer.