Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/18 16:45:01 (7 years ago)
Author:
rhanghof
Message:

#2817:

  • Added a graph to the BinPacking3D for calculating the weight distribution.
  • Added some materials.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/ResidualSpaceCalculation/ResidualSpaceCalculator.cs

    r15617 r15770  
    2020#endregion
    2121
     22using HeuristicLab.Core;
    2223using HeuristicLab.Problems.BinPacking3D.Geometry;
    2324using System;
     
    2627using System.Text;
    2728using System.Threading.Tasks;
     29using HeuristicLab.Common;
     30using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2831
    2932namespace HeuristicLab.Problems.BinPacking3D.ResidualSpaceCalculation {
    30   internal class ResidualSpaceCalculator : IResidualSpaceCalculator {
     33  internal class ResidualSpaceCalculator : Item, IResidualSpaceCalculator {
    3134
    3235    internal ResidualSpaceCalculator() {}
    33    
     36
     37    [StorableConstructor]
     38    protected ResidualSpaceCalculator(bool deserializing) : base(deserializing) { }
     39
     40    protected ResidualSpaceCalculator(ResidualSpaceCalculator original, Cloner cloner)
     41      : base(original, cloner) {
     42    }
     43
     44    public override IDeepCloneable Clone(Cloner cloner) {
     45      return new ResidualSpaceCalculator(this, cloner);
     46    }
     47
    3448    public IEnumerable<ResidualSpace> CalculateResidualSpaces(BinPacking3D binPacking, Vector3D point) {
    3549      IList<ResidualSpace> residualSpaces = new List<ResidualSpace>();
Note: See TracChangeset for help on using the changeset viewer.