X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fcomponents%2FGUIOrGate.java;h=ef5daa1a0d033f69de142fe9ad7caf723a0fc0d7;hb=055d61dd8838c5926e78c9931cd4dcf16f761941;hp=bd29b26117fe3036b2b480a44338eab584b0836f;hpb=ef7a6d3731b1d16480a4b157ab43cd9f7043de1f;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/components/GUIOrGate.java b/LogicUI/src/era/mi/gui/components/GUIOrGate.java index bd29b261..ef5daa1a 100644 --- a/LogicUI/src/era/mi/gui/components/GUIOrGate.java +++ b/LogicUI/src/era/mi/gui/components/GUIOrGate.java @@ -6,7 +6,8 @@ import java.util.Collections; import java.util.List; import era.mi.logic.components.gates.OrGate; -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 GUIOrGate extends OrGate implements BasicGUIComponent private final int inputCount; private final double height; - private final List connectedWireEnds; + private final List connectedWireEnds; private final List WireEndConnectionPoints; - public GUIOrGate(int processTime, WireEnd out, WireEnd... in) + public GUIOrGate(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 GUIOrGate extends OrGate implements BasicGUIComponent } @Override - public WireEnd getConnectedWireEnd(int connectionIndex) + public ReadEnd getConnectedWireEnd(int connectionIndex) { return connectedWireEnds.get(connectionIndex); }