import net.mograsim.logic.ui.model.wires.GUIWire;
import net.mograsim.logic.ui.model.wires.Pin;
import net.mograsim.logic.ui.model.wires.WireCrossPoint;
+import net.mograsim.logic.ui.serializing.IndirectGUIComponentCreator;
public class GUIxor extends SimpleRectangularSubmodelComponent
{
public GUIxor(ViewModelModifiable model)
{
- super(model, 1, "GUIxor");
+ this(model, null);
+ }
+
+ public GUIxor(ViewModelModifiable model, String name)
+ {
+ super(model, 1, "GUIxor", name);
setSubmodelScale(.4);
setInputPins("A", "B");
setOutputPins("Y");
new GUIWire(submodelModifiable, nandYB.getPin("Y"), nandY.getPin("B"));
new GUIWire(submodelModifiable, nandY.getPin("Y"), Y);
}
+
+ static
+ {
+ IndirectGUIComponentCreator.setComponentSupplier(GUIxor.class.getCanonicalName(), (m, p, n) -> new GUIxor(m, n));
+ }
}
\ No newline at end of file