Changeset 15770 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/PackingItem.cs
- Timestamp:
- 02/13/18 16:45:01 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/PackingItem.cs
r15731 r15770 60 60 } 61 61 62 #region Material 63 public IFixedValueParameter<EnumValue<MaterialType>> MaterialBottomParameter { 64 get { return (IFixedValueParameter<EnumValue<MaterialType>>)Parameters["MaterialBottom"]; } 65 } 66 public MaterialType MaterialBottom { 67 get { return MaterialBottomParameter.Value.Value; } 68 set { MaterialBottomParameter.Value.Value = value; } 69 } 62 #region Material 70 63 71 64 public IFixedValueParameter<EnumValue<MaterialType>> MaterialTopParameter { … … 84 77 get { return SupportedWeightParameter.Value.Value; } 85 78 set { SupportedWeightParameter.Value.Value = value; } 79 } 80 81 public double SupportedWeightPerSquareMeter { 82 get { 83 return SupportedWeight / (Width * Depth); 84 } 86 85 } 87 86 … … 297 296 return other.Layer <= this.Layer && SupportedWeight > 0; 298 297 } 298 299 public bool SupportWeight(double weigth) { 300 return SupportedWeight >= weigth; 301 } 299 302 #endregion 300 303 … … 314 317 315 318 Parameters.Add(new FixedValueParameter<EnumValue<MaterialType>>("MaterialTop")); 316 Parameters.Add(new FixedValueParameter<EnumValue<MaterialType>>("MaterialBottom"));317 319 318 320 Parameters.Add(new FixedValueParameter<DoubleValue>("SupportedWeight"));
Note: See TracChangeset
for help on using the changeset viewer.