Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/PackingPlan3D.cs @ 13806

Last change on this file since 13806 was 13611, checked in by gkronber, 9 years ago

#1966: continue splitting into 2d and 3d implementations

File size: 1.3 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
4using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5using HeuristicLab.Problems.BinPacking.Dimensions;
6using HeuristicLab.Problems.BinPacking.PackingBin;
7using HeuristicLab.Problems.BinPacking.PackingItem;
8
9namespace HeuristicLab.Problems.BinPacking {
10  [Item("PackingPlan3D", "Represents a solution for a 3D bin packing problem.")]
11  [StorableClass]
12  public class PackingPlan3D : PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> {
13    public PackingPlan3D(CuboidPackingBin binMeasures) : this(binMeasures, false, false) { }
14    public PackingPlan3D(CuboidPackingBin binMeasures, bool useExtremePoints, bool stackingConstraints) : base(binMeasures, useExtremePoints, stackingConstraints) { }
15    [StorableConstructor]
16    protected PackingPlan3D(bool deserializing) : base(deserializing) { }
17    protected PackingPlan3D(PackingPlan3D original, Cloner cloner)
18      : base(original, cloner) {
19    }
20    public override IDeepCloneable Clone(Cloner cloner) {
21      return new PackingPlan3D(this, cloner);
22    }
23    public override BinPacking<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> NewBinPacking() {
24      return new BinPacking3D(BinMeasures);
25    }
26  }
27}
Note: See TracBrowser for help on using the repository browser.