From d3ab49a7d23690fed207d5997d84a597e4221ca9 Mon Sep 17 00:00:00 2001 From: AJ Date: Wed, 1 Mar 2023 21:59:24 -0500 Subject: [PATCH] Renamed Engine2 to EnhancedBestFitEngine --- SawCut/Nesting/{Engine2.cs => EnhancedBestFitEngine.cs} | 9 ++++++--- SawCut/Nesting/MultiBinEngine.cs | 2 +- SawCut/SawCut.csproj | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) rename SawCut/Nesting/{Engine2.cs => EnhancedBestFitEngine.cs} (97%) diff --git a/SawCut/Nesting/Engine2.cs b/SawCut/Nesting/EnhancedBestFitEngine.cs similarity index 97% rename from SawCut/Nesting/Engine2.cs rename to SawCut/Nesting/EnhancedBestFitEngine.cs index d1fe402..9a77a68 100644 --- a/SawCut/Nesting/Engine2.cs +++ b/SawCut/Nesting/EnhancedBestFitEngine.cs @@ -1,11 +1,13 @@ -using System; +using SawCut.Nesting; +using SawCut; +using System; using System.Collections.Generic; using System.Data; using System.Linq; namespace SawCut.Nesting { - public class Engine2 : IEngine + public class EnhancedBestFitEngine : IEngine { public double StockLength { get; set; } @@ -155,4 +157,5 @@ namespace SawCut.Nesting return false; } } -} \ No newline at end of file +} + diff --git a/SawCut/Nesting/MultiBinEngine.cs b/SawCut/Nesting/MultiBinEngine.cs index 470f72b..146c7e4 100644 --- a/SawCut/Nesting/MultiBinEngine.cs +++ b/SawCut/Nesting/MultiBinEngine.cs @@ -22,7 +22,7 @@ namespace SawCut.Nesting foreach (var bin in bins) { - var e = new Engine2(); + var e = new BestFitWithImproveAttempt(); e.MaxBinCount = bin.Quantity; e.StockLength = bin.Length; e.Spacing = Spacing; diff --git a/SawCut/SawCut.csproj b/SawCut/SawCut.csproj index 009a0c1..8d7c863 100644 --- a/SawCut/SawCut.csproj +++ b/SawCut/SawCut.csproj @@ -51,7 +51,7 @@ - +