diff options
Diffstat (limited to 'src/jcgp/Parameters.java')
-rw-r--r-- | src/jcgp/Parameters.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jcgp/Parameters.java b/src/jcgp/Parameters.java index 0a6abd9..cef1ea4 100644 --- a/src/jcgp/Parameters.java +++ b/src/jcgp/Parameters.java @@ -8,6 +8,8 @@ public class Parameters { currentGeneration = 0, totalRuns = 0, currentRun = 0, maxArity = 0, maxFitness = 0; + private static boolean debug = false; + public static int getRows() { return rows; } @@ -71,6 +73,10 @@ public class Parameters { public static int getMaxFitness() { return maxFitness; } + + public static boolean getDebug() { + return debug; + } public static void setRows(int rows) { Parameters.rows = rows; @@ -137,4 +143,8 @@ public class Parameters { Parameters.maxFitness = maxFitness; } + public static void setDebug(boolean debug) { + Parameters.debug = debug; + } + } |