Changeset 15770 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/PackingShape.cs
- Timestamp:
- 02/13/18 16:45:01 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/PackingShape.cs
r15617 r15770 27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Problems.BinPacking; 29 using HeuristicLab.Problems.BinPacking3D.Material; 29 30 30 31 namespace HeuristicLab.Problems.BinPacking3D { … … 57 58 } 58 59 60 public IFixedValueParameter<EnumValue<MaterialType>> MaterialBottomParameter { 61 get { return (IFixedValueParameter<EnumValue<MaterialType>>)Parameters["MaterialBottom"]; } 62 } 63 public MaterialType MaterialBottom { 64 get { return MaterialBottomParameter.Value.Value; } 65 set { MaterialBottomParameter.Value.Value = value; } 66 } 67 59 68 [StorableConstructor] 60 69 protected PackingShape(bool deserializing) : base(deserializing) { } … … 68 77 Parameters.Add(new FixedValueParameter<IntValue>("Height")); 69 78 Parameters.Add(new FixedValueParameter<IntValue>("Depth")); 79 Parameters.Add(new FixedValueParameter<EnumValue<MaterialType>>("MaterialBottom")); 80 81 MaterialBottom = MaterialType.ScreenPrintingPlate; 70 82 71 83 RegisterEvents();
Note: See TracChangeset
for help on using the changeset viewer.