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=0262c8f31d553c877116fbe13bb653288d01f1a3;hpb=93b398d6271a538a2a4c9f4de07a3b4a8a2a7fd4;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 0262c8f3..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 @@ -1,28 +1,28 @@ package net.mograsim.logic.model.model.components.atomic; import net.mograsim.logic.core.components.gates.CoreNotGate; -import net.mograsim.logic.model.model.ViewModelModifiable; -import net.mograsim.logic.model.modeladapter.ViewLogicModelAdapter; +import net.mograsim.logic.model.model.LogicModelModifiable; +import net.mograsim.logic.model.modeladapter.LogicCoreAdapter; import net.mograsim.logic.model.modeladapter.componentadapters.SimpleGateAdapter; import net.mograsim.logic.model.serializing.IndirectModelComponentCreator; public class ModelNotGate extends SimpleRectangularModelGate { - public ModelNotGate(ViewModelModifiable model, int logicWidth) + public ModelNotGate(LogicModelModifiable model, int logicWidth) { this(model, logicWidth, null); } - public ModelNotGate(ViewModelModifiable model, int logicWidth, String name) + 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 { - ViewLogicModelAdapter - .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)); }