diff options
Diffstat (limited to 'src/jcgp/backend/modules/problem/DigitalCircuit.java')
-rw-r--r-- | src/jcgp/backend/modules/problem/DigitalCircuit.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/jcgp/backend/modules/problem/DigitalCircuit.java b/src/jcgp/backend/modules/problem/DigitalCircuit.java new file mode 100644 index 0000000..d94197d --- /dev/null +++ b/src/jcgp/backend/modules/problem/DigitalCircuit.java @@ -0,0 +1,25 @@ +package jcgp.backend.modules.problem; + +import java.util.ArrayList; + +import jcgp.backend.function.BitwiseLogic; +import jcgp.backend.resources.Resources; + +public class DigitalCircuit extends TestCaseProblem<Integer> { + + public DigitalCircuit(Resources resources) { + super(resources); + functionSet = new BitwiseLogic(); + + ArrayList<TestCase<Integer>> tc = new ArrayList<TestCase<Integer>>(); + tc.add(new TestCase<Integer>(new Integer[]{1, 2, 3}, new Integer[]{-4, 5, 6})); + + setTestCases(tc); + } + + @Override + public String toString() { + return "Digital circuit"; + } + +} |