import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
import net.mograsim.logic.ui.model.ViewModelModifiable;
-import net.mograsim.logic.ui.model.components.SimpleRectangularSubmodelComponent;
import net.mograsim.logic.ui.model.components.mi.nandbased.GUIxor;
+import net.mograsim.logic.ui.model.components.submodels.SimpleRectangularSubmodelComponent;
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 GUIAm2901ALUInclDecode extends SimpleRectangularSubmodelComponent
{
public GUIAm2901ALUInclDecode(ViewModelModifiable model)
{
- super(model, 1, "GUIAm2901ALUInclDecode");
+ this(model, null);
+ }
+
+ public GUIAm2901ALUInclDecode(ViewModelModifiable model, String name)
+ {
+ super(model, 1, "GUIAm2901ALUInclDecode", name);
setSubmodelScale(.25);
setInputPins("I5", "I4", "I3", "Cn", "R1", "R2", "R3", "R4", "S1", "S2", "S3", "S4");
setOutputPins("F1", "F2", "F3", "F4", "Cn+4", "OVR");
new GUIWire(submodelModifiable, cpCnplus4, Cnplus4, new Point(130, 385), new Point(130, 180));
new GUIWire(submodelModifiable, xorOVR.getPin("Y"), OVR);
}
+
+ static
+ {
+ IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUInclDecode.class.getCanonicalName(),
+ (m, p, n) -> new GUIAm2901ALUInclDecode(m, n));
+ }
}
\ No newline at end of file