X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fcomponents%2FGUIAndGate.java;h=aa3b3c6690807884896d5d0cfaba3ffa1a45bab3;hb=6d944b4deae46eef98beabdea0dab90c455e14a8;hp=abc80ff9e4dac5c4ed7c03df2bd3db547ba2b47f;hpb=27e4465d9b23acd5d97dbb4789a70f30c86a9302;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/components/GUIAndGate.java b/LogicUI/src/era/mi/gui/components/GUIAndGate.java index abc80ff9..aa3b3c66 100644 --- a/LogicUI/src/era/mi/gui/components/GUIAndGate.java +++ b/LogicUI/src/era/mi/gui/components/GUIAndGate.java @@ -6,7 +6,8 @@ import java.util.Collections; import java.util.List; import era.mi.logic.components.gates.AndGate; -import era.mi.logic.wires.Wire.WireEnd; +import era.mi.logic.wires.Wire.ReadEnd; +import era.mi.logic.wires.Wire.ReadWriteEnd; import net.haspamelodica.swt.helper.gcs.GeneralGC; import net.haspamelodica.swt.helper.swtobjectwrappers.Font; import net.haspamelodica.swt.helper.swtobjectwrappers.Point; @@ -18,14 +19,14 @@ public class GUIAndGate extends AndGate implements BasicGUIComponent private final int inputCount; private final double height; - private final List connectedWireEnds; + private final List connectedWireEnds; private final List wireEndConnectionPoints; - public GUIAndGate(int processTime, WireEnd out, WireEnd... in) + public GUIAndGate(int processTime, ReadWriteEnd out, ReadEnd... in) { super(processTime, out, in); - List connectedWireEndsModifiable = new ArrayList<>(); + List connectedWireEndsModifiable = new ArrayList<>(); List wireEndConnectionPointsModifiable = new ArrayList<>(); this.inputCount = in.length; @@ -70,7 +71,7 @@ public class GUIAndGate extends AndGate implements BasicGUIComponent } @Override - public WireEnd getConnectedWireEnd(int connectionIndex) + public ReadEnd getConnectedWireEnd(int connectionIndex) { return connectedWireEnds.get(connectionIndex); }