X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fcomponents%2FGUINotGate.java;h=fa4730a1121204e9a9d796e170ea9a62da71b525;hb=6c67a9ff8361cd9fc082f40e2676f2c8b5911fe4;hp=24416adaca4bf5efdf09c8aa9865b7ce90d12f9f;hpb=4be7eddcfc45e5e5794bd0dc1e2c2423fa43ec51;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/components/GUINotGate.java b/LogicUI/src/era/mi/gui/components/GUINotGate.java index 24416ada..fa4730a1 100644 --- a/LogicUI/src/era/mi/gui/components/GUINotGate.java +++ b/LogicUI/src/era/mi/gui/components/GUINotGate.java @@ -5,7 +5,9 @@ import java.util.Collections; import java.util.List; import era.mi.logic.components.gates.NotGate; -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; @@ -15,14 +17,14 @@ public class GUINotGate extends NotGate implements BasicGUIComponent { private static final String LABEL = "\u22651";// >=1 - private final List connectedWireEnds; + private final List connectedWireEnds; private final List WireEndConnectionPoints; - public GUINotGate(int processTime, WireEnd in, WireEnd out) + public GUINotGate(Timeline timeline, int processTime, ReadEnd in, ReadWriteEnd out) { - super(processTime, in, out); + super(timeline, processTime, in, out); - List connectedWireEndsModifiable = new ArrayList<>(); + List connectedWireEndsModifiable = new ArrayList<>(); List WireEndConnectionPointsModifiable = new ArrayList<>(); connectedWireEndsModifiable.add(in); @@ -61,7 +63,7 @@ public class GUINotGate extends NotGate implements BasicGUIComponent } @Override - public WireEnd getConnectedWireEnd(int connectionIndex) + public ReadEnd getConnectedWireEnd(int connectionIndex) { return connectedWireEnds.get(connectionIndex); }