Changeset 14128 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/DBL
- Timestamp:
- 07/20/16 14:02:36 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/DBL/DeepestBottomLeftPackingSequenceDecoder.cs
r14049 r14128 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Encodings.PackingEncoding.PackingSequence;27 26 using HeuristicLab.Problems.BinPacking; 28 27 using HeuristicLab.Encodings.PackingEncoding; 28 using HeuristicLab.Encodings.PermutationEncoding; 29 29 30 30 namespace HeuristicLab.Problems.BinPacking3D { … … 32 32 [StorableClass] 33 33 public class DeepestBottomLeftPackingSequenceDecoder : PackingSolutionDecoder<PackingPosition, PackingShape, PackingItem>, I3DPSDecoder { 34 public DeepestBottomLeftPackingSequenceDecoder() : base() {}34 public DeepestBottomLeftPackingSequenceDecoder() : base() { } 35 35 [StorableConstructor] 36 36 protected DeepestBottomLeftPackingSequenceDecoder(bool deserializing) : base(deserializing) { } … … 43 43 44 44 public override PackingPlan<PackingPosition, PackingShape, PackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, PackingShape binMeasures, ItemList<PackingItem> itemMeasures) { 45 var solution = encodedSolution as P ackingSequenceEncoding;46 if (solution == null) throw new InvalidOperationException("Encoding is not of type P ackingSequence");45 var solution = encodedSolution as Permutation; 46 if (solution == null) throw new InvalidOperationException("Encoding is not of type Permutation"); 47 47 Solution result = new Solution(binMeasures); 48 48 result.Pack(solution, itemMeasures);
Note: See TracChangeset
for help on using the changeset viewer.