Last change
on this file since 16911 was
14167,
checked in by gkronber, 8 years ago
|
#2641:
- fixed persistence bug
- added unit test to create BPP sample
- added BPP sample to start page
- renaming of properties
|
File size:
959 bytes
|
Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
4 | using HeuristicLab.Problems.BinPacking;
|
---|
5 |
|
---|
6 | namespace HeuristicLab.Problems.BinPacking3D {
|
---|
7 | [Item("Bin Packing Solution (3d)", "Represents a solution for a 3D bin packing problem.")]
|
---|
8 | [StorableClass]
|
---|
9 | public class Solution : PackingPlan<PackingPosition, PackingShape, PackingItem> {
|
---|
10 | public Solution(PackingShape binShape) : this(binShape, false, false) { }
|
---|
11 | public Solution(PackingShape binShape, bool useExtremePoints, bool stackingConstraints) : base(binShape, useExtremePoints, stackingConstraints) { }
|
---|
12 | [StorableConstructor]
|
---|
13 | protected Solution(bool deserializing) : base(deserializing) { }
|
---|
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.