X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui.am2900%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fmi%2Fnandbased%2FGUIhalfadder.java;h=abb93cc339c3a04f4cacfd6bc0f84eb5ebf67864;hb=5ece0acf049bf9af2933f513fe0206565681f622;hp=a31eae58b83626596aa032bb231b563b8c72f986;hpb=05f3deb7ee3a0b7162c75e1963be9a739618e3df;p=Mograsim.git diff --git a/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIhalfadder.java b/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIhalfadder.java index a31eae58..abb93cc3 100644 --- a/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIhalfadder.java +++ b/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIhalfadder.java @@ -13,7 +13,12 @@ public class GUIhalfadder extends SimpleRectangularSubmodelComponent { public GUIhalfadder(ViewModelModifiable model) { - super(model, 1, "GUIhalfadder"); + this(model, null); + } + + public GUIhalfadder(ViewModelModifiable model, String name) + { + super(model, 1, "GUIhalfadder", name); setSubmodelScale(.4); setInputPins("A", "B"); setOutputPins("Y", "_Z"); @@ -62,6 +67,6 @@ public class GUIhalfadder extends SimpleRectangularSubmodelComponent static { - IndirectGUIComponentCreator.setComponentSupplier(GUIhalfadder.class.getCanonicalName(), (m, p) -> new GUIhalfadder(m)); + IndirectGUIComponentCreator.setComponentSupplier(GUIhalfadder.class.getCanonicalName(), (m, p, n) -> new GUIhalfadder(m, n)); } } \ No newline at end of file