diff --git a/src/Circuit.java b/src/Circuit.java new file mode 100644 index 0000000..1006dcb --- /dev/null +++ b/src/Circuit.java @@ -0,0 +1,25 @@ +public class Circuit { + private final CircuitCell type; + private int value; + + public Circuit(CircuitCell type) + { + this.type = type; + this.value = type.ordinal(); + } + + public Circuit(CircuitCell type, int value) + { + this.type = type; + this.value = value; + } + + public Circuit setValue(int value) + { + this.value = value; + return this; + } + + public CircuitCell getType() { return type; } + public int getValue() { return value; } +}