Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / model / components / atomic / ModelNotGate.java
index 995aea9..8f3849f 100644 (file)
@@ -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));
        }