package net.mograsim.logic.model.model.components.atomic;
import net.mograsim.logic.core.components.gates.CoreNotGate;
package net.mograsim.logic.model.model.components.atomic;
import net.mograsim.logic.core.components.gates.CoreNotGate;
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
{
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
{
- super(model, "NotGate", "1", true, logicWidth, name);
+ super(model, "NotGate", "1", true, logicWidth, name, false);
- 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));
}
IndirectModelComponentCreator.setComponentSupplier(ModelNotGate.class.getCanonicalName(),
(m, p, n) -> new ModelNotGate(m, p.getAsInt(), n));
}