From c9affba9f54be97c0e93692543b8ba6bd6151f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Wed, 29 Oct 2025 17:34:11 +0100 Subject: [PATCH] feat(Circuit): rework complet de Circuit --- src/Circuit.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Circuit.java 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; } +}