Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/31/10 11:36:07 (13 years ago)
Author:
abeham
Message:

#922

  • Fixed most of the errors that surfaced in the test cases
  • Removed storable attribute from SymbolicExpressionTreeStringFormatter
  • Modified StorableConstructorTest that the StorableConstructor may also be public (such as in BoolValue)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Potvin/PotvinEncoding.cs

    r4691 r4696  
    3434    public List<int> Unrouted { get; set; }
    3535
    36     public PotvinEncoding()
    37       : base() {
    38       Unrouted = new List<int>();
    39     }
     36    [StorableConstructor]
     37    protected PotvinEncoding(bool deserializing) : base(deserializing) { }
    4038    protected PotvinEncoding(PotvinEncoding original, Cloner cloner)
    4139      : base(original, cloner) {
     
    4341      Unrouted = new List<int>(original.Unrouted);
    4442    }
     43    public PotvinEncoding()
     44      : base() {
     45      Unrouted = new List<int>();
     46    }
     47
    4548    public override IDeepCloneable Clone(Cloner cloner) {
    4649      return new PotvinEncoding(this, cloner);
    47     }
    48     [StorableConstructor]
    49     private PotvinEncoding(bool serializing)
    50       : base() {
    5150    }
    5251
Note: See TracChangeset for help on using the changeset viewer.