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 GUIAm2901ALUOneBit extends SimpleRectangularSubmodelComponent
{
public GUIAm2901ALUOneBit(ViewModelModifiable model)
{
- super(model, 1, "GUIAm2901ALUOneBit");
+ this(model, null);
+ }
+
+ public GUIAm2901ALUOneBit(ViewModelModifiable model, String name)
+ {
+ super(model, 1, "GUIAm2901ALUOneBit", name);
setSubmodelScale(.2);
setInputPins("Cin", "CoutE", "CinE", "R", "RN", "S", "SN", "FN", "L");
setOutputPins("Cout", "F");
new GUIWire(submodelModifiable, Coutand.getPin("Y"), Cout, new Point[0]);
new GUIWire(submodelModifiable, Fxor.getPin("Y"), F, new Point[0]);
}
+
+ static
+ {
+ IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUOneBit.class.getCanonicalName(),
+ (m, p, n) -> new GUIAm2901ALUOneBit(m, n));
+ }
}
\ No newline at end of file