Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/Symbols/IfFoodAhead.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
     
    2728  [Item("IfFoodAhead", "Represents the if-food-ahead symbol in a artificial ant expression.")]
    2829  public sealed class IfFoodAhead : Symbol {
     30    [StorableConstructor]
     31    private IfFoodAhead(bool deserializing) : base(deserializing) { }
     32    private IfFoodAhead(IfFoodAhead original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new IfFoodAhead(this, cloner);
     35    }
     36
    2937    public IfFoodAhead() : base("IfFoodAhead", "Represents the if-food-ahead symbol in a artificial ant expression.") { }
    3038  }
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/Symbols/Left.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
     
    2728  [Item("Left", "Represents the turn-left symbol in a artificial ant expression.")]
    2829  public sealed class Left : Symbol {
     30    [StorableConstructor]
     31    private Left(bool deserializing) : base(deserializing) { }
     32    private Left(Left original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new Left(this, cloner);
     35    }
    2936    public Left() : base("Left", "Represents the turn-left symbol in a artificial ant expression.") { }
    3037  }
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/Symbols/Move.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
     
    2728  [Item("Move", "Represents the move-forward symbol in a artificial ant expression.")]
    2829  public sealed class Move : Symbol {
     30    [StorableConstructor]
     31    private Move(bool deserializing) : base(deserializing) { }
     32    private Move(Move original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new Move(this, cloner);
     35    }
    2936    public Move() : base("Move", "Represents the move-forward symbol in a artificial ant expression.") { }
    3037  }
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/Symbols/Prog2.cs

    r4477 r4722  
    2121
    2222
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
     
    2829  [Item("Prog2", "Represents the sequence symbol with 2 sub-trees in a artificial ant expression.")]
    2930  public sealed class Prog2 : Symbol {
     31    [StorableConstructor]
     32    private Prog2(bool deserializing) : base(deserializing) { }
     33    private Prog2(Prog2 original, Cloner cloner) : base(original, cloner) { }
     34    public override IDeepCloneable Clone(Cloner cloner) {
     35      return new Prog2(this, cloner);
     36    }
    3037    public Prog2() : base("Prog2", "Represents the sequence symbol with 2 sub-trees in a artificial ant expression.") { }
    3138  }
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/Symbols/Prog3.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
     
    2728  [Item("Prog3", "Represents the sequence symbol with 3 sub-trees in a artificial ant expression.")]
    2829  public sealed class Prog3 : Symbol {
     30    [StorableConstructor]
     31    private Prog3(bool deserializing) : base(deserializing) { }
     32    private Prog3(Prog3 original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new Prog3(this, cloner);
     35    }
    2936    public Prog3() : base("Prog3", "Represents the sequence symbol with 3 sub-trees in a artificial ant expression.") { }
    3037  }
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/Symbols/Right.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
     
    2728  [Item("Right", "Represents the turn-right symbol in a artificial ant expression.")]
    2829  public sealed class Right : Symbol {
     30    [StorableConstructor]
     31    private Right(bool deserializing) : base(deserializing) { }
     32    private Right(Right original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new Right(this, cloner);
     35    }
    2936    public Right() : base("Right", "Represents the turn-right symbol in a artificial ant expression.") { }
    3037  }
Note: See TracChangeset for help on using the changeset viewer.