X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fcomponents%2FGUIOrGate.java;h=549cb40289b3dbb1fadce9a51e74617813371dd2;hb=6c67a9ff8361cd9fc082f40e2676f2c8b5911fe4;hp=9d2b71d2c14de9f4cfe8de97fc6a1860d41b15fb;hpb=4be7eddcfc45e5e5794bd0dc1e2c2423fa43ec51;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/components/GUIOrGate.java b/LogicUI/src/era/mi/gui/components/GUIOrGate.java index 9d2b71d2..549cb402 100644 --- a/LogicUI/src/era/mi/gui/components/GUIOrGate.java +++ b/LogicUI/src/era/mi/gui/components/GUIOrGate.java @@ -6,7 +6,9 @@ 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.timeline.Timeline; +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 +20,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(Timeline timeline, int processTime, ReadWriteEnd out, ReadEnd... in) { - super(processTime, out, in); + super(timeline, processTime, out, in); - List connectedWireEndsModifiable = new ArrayList<>(); + List connectedWireEndsModifiable = new ArrayList<>(); List WireEndConnectionPointsModifiable = new ArrayList<>(); this.inputCount = in.length; @@ -70,7 +72,7 @@ public class GUIOrGate extends OrGate implements BasicGUIComponent } @Override - public WireEnd getConnectedWireEnd(int connectionIndex) + public ReadEnd getConnectedWireEnd(int connectionIndex) { return connectedWireEnds.get(connectionIndex); }