X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fmodel%2Fcomponents%2Fatomic%2FModelNotGate.java;h=8f3849f92c92af1508f7dba44feb3bec754e2e9f;hb=92862c4723c5eff22257e8de06166a124efb5d77;hp=995aea9d70ca6e815817da753edf8d42c7dbc261;hpb=1f645882d229fc3d4081e4c5060559d75dc2cc24;p=Mograsim.git diff --git a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelNotGate.java b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelNotGate.java index 995aea9d..8f3849f9 100644 --- a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelNotGate.java +++ b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelNotGate.java @@ -15,14 +15,14 @@ public class ModelNotGate extends SimpleRectangularModelGate public ModelNotGate(LogicModelModifiable model, int logicWidth, String name) { - super(model, "NotGate", "1", true, logicWidth, name); + super(model, "NotGate", "1", true, logicWidth, name, false); setInputCount(1); + init(); } static { - LogicCoreAdapter - .addComponentAdapter(new SimpleGateAdapter<>(ModelNotGate.class, (t, p, o, i) -> new CoreNotGate(t, p, i[0], o))); + LogicCoreAdapter.addComponentAdapter(new SimpleGateAdapter<>(ModelNotGate.class, (t, p, o, i) -> new CoreNotGate(t, p, i[0], o))); IndirectModelComponentCreator.setComponentSupplier(ModelNotGate.class.getCanonicalName(), (m, p, n) -> new ModelNotGate(m, p.getAsInt(), n)); }