feat(Circuit): rework complet de Circuit

This commit is contained in:
2025-10-29 17:34:11 +01:00
parent 9ab1d6b960
commit c9affba9f5

25
src/Circuit.java Normal file
View File

@@ -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; }
}