X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fcomponents%2FGUIMux.java;h=5f6dde77764abd0a96fa7cfe4b32163bdd12e727;hb=6d944b4deae46eef98beabdea0dab90c455e14a8;hp=c16aa31630462ee45f0874c91cd136a8fdc19fbd;hpb=27e4465d9b23acd5d97dbb4789a70f30c86a9302;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/components/GUIMux.java b/LogicUI/src/era/mi/gui/components/GUIMux.java index c16aa316..5f6dde77 100644 --- a/LogicUI/src/era/mi/gui/components/GUIMux.java +++ b/LogicUI/src/era/mi/gui/components/GUIMux.java @@ -6,7 +6,8 @@ import java.util.Collections; import java.util.List; import era.mi.logic.components.Mux; -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.Point; import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; @@ -14,10 +15,10 @@ import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; public class GUIMux extends Mux implements BasicGUIComponent { private final double height; - private final List connectedWireEnds; + private final List connectedWireEnds; private final List WireEndConnectionPoints; - public GUIMux(int processTime, WireEnd out, WireEnd select, WireEnd... inputs) + public GUIMux(int processTime, ReadWriteEnd out, ReadEnd select, ReadEnd... inputs) { super(processTime, out, select, inputs); @@ -26,7 +27,7 @@ public class GUIMux extends Mux implements BasicGUIComponent height = 10; this.height = height; - List connectedWireEndsModifiable = new ArrayList<>(); + List connectedWireEndsModifiable = new ArrayList<>(); List WireEndConnectionPointsModifiable = new ArrayList<>(); connectedWireEndsModifiable.add(out); @@ -66,7 +67,7 @@ public class GUIMux extends Mux implements BasicGUIComponent } @Override - public WireEnd getConnectedWireEnd(int connectionIndex) + public ReadEnd getConnectedWireEnd(int connectionIndex) { return connectedWireEnds.get(connectionIndex); }