aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/TruthTable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/TruthTable.java')
-rw-r--r--src/jcgp/TruthTable.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/jcgp/TruthTable.java b/src/jcgp/TruthTable.java
new file mode 100644
index 0000000..72712fc
--- /dev/null
+++ b/src/jcgp/TruthTable.java
@@ -0,0 +1,21 @@
+package jcgp;
+
+import jcgp.fitness.TestCase;
+
+public class TruthTable {
+
+ private static TestCase[] testCases;
+
+ public static void setTestCases(TestCase ... testCases) {
+ TruthTable.testCases = testCases;
+ }
+
+ public static TestCase getTestCase(int index) {
+ return testCases[index];
+ }
+
+ public static int getTestCaseCount() {
+ return testCases.length;
+ }
+
+}