Changeset 3206


Ignore:
Timestamp:
03/23/10 21:22:43 (12 years ago)
Author:
abeham
Message:

fixed storable constructor in 2-opt tabu move attribute #889

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/TwoOpt/TwoOptTabuMoveAttribute.cs

    r3074 r3206  
    3737
    3838    [StorableConstructor]
    39     private TwoOptTabuMoveAttribute()
     39    private TwoOptTabuMoveAttribute(bool deserializing)
    4040      : base() {
    4141    }
     42
     43    public TwoOptTabuMoveAttribute()
     44      : this(-1, -1, -1, -1) { }
    4245
    4346    public TwoOptTabuMoveAttribute(int edge1Source, int edge1Target, int edge2Source, int edge2Target)
     
    4851      Edge2Target = edge2Target;
    4952    }
     53
     54    public override IDeepCloneable Clone(Cloner cloner) {
     55      TwoOptTabuMoveAttribute clone = (TwoOptTabuMoveAttribute)base.Clone(cloner);
     56      clone.Edge1Source = Edge1Source;
     57      clone.Edge1Target = Edge1Target;
     58      clone.Edge2Source = Edge2Source;
     59      clone.Edge2Target = Edge2Target;
     60      return clone;
     61    }
    5062  }
    5163}
Note: See TracChangeset for help on using the changeset viewer.