1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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; } }