Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/3D/Solution.cs @ 15866

Last change on this file since 15866 was 15018, checked in by gkronber, 8 years ago

#2520 introduced StorableConstructorFlag type for StorableConstructors

File size: 979 bytes
RevLine 
[14162]1using HeuristicLab.Common;
2using HeuristicLab.Core;
[14927]3using HeuristicLab.Persistence;
[14162]4using HeuristicLab.Problems.BinPacking;
5
6namespace HeuristicLab.Problems.BinPacking3D {
7  [Item("Bin Packing Solution (3d)", "Represents a solution for a 3D bin packing problem.")]
[14927]8  [StorableType("5bafe500-cd74-44e9-91ff-aafbb9c5d0b2")]
[14162]9  public class Solution : PackingPlan<PackingPosition, PackingShape, PackingItem> {
[14167]10    public Solution(PackingShape binShape) : this(binShape, false, false) { }
11    public Solution(PackingShape binShape, bool useExtremePoints, bool stackingConstraints) : base(binShape, useExtremePoints, stackingConstraints) { }
[14162]12    [StorableConstructor]
[15018]13    protected Solution(StorableConstructorFlag deserializing) : base(deserializing) { }
[14162]14    protected Solution(Solution original, Cloner cloner)
15      : base(original, cloner) {
16    }
17    public override IDeepCloneable Clone(Cloner cloner) {
18      return new Solution(this, cloner);
19    }
20  }
21}
Note: See TracBrowser for help on using the repository browser.