{
GUINandGate nand1 = new GUINandGate(submodelModifiable, 1);
- nand1.moveTo(80, 20);
GUINandGate nand2 = new GUINandGate(submodelModifiable, 1);
- nand2.moveTo(80, 85);
WireCrossPoint cp1 = new WireCrossPoint(submodelModifiable, 1);
- cp1.moveTo(120, 30);
WireCrossPoint cp2 = new WireCrossPoint(submodelModifiable, 1);
+
+ nand1.moveTo(80, 20);
+ nand2.moveTo(80, 85);
+ cp1.moveTo(120, 30);
cp2.moveTo(120, 95);
new GUIWire(submodelModifiable, _S, nand1.getInputPins().get(0));
private void initSubmodelComponents(Pin A, Pin B, Pin Y)
{
GUINandGate nand = new GUINandGate(submodelModifiable, 1);
- nand.moveTo(20, 21.25);
GUINandGate not = new GUINandGate(submodelModifiable, 1);
- not.moveTo(50, 21.25);
WireCrossPoint cp1 = new WireCrossPoint(submodelModifiable, 1);
+
+ nand.moveTo(20, 21.25);
+ not.moveTo(50, 21.25);
cp1.moveTo(45, 31.25);
new GUIWire(submodelModifiable, A, nand.getInputPins().get(0), new Point(10, 12.5), new Point(10, 26.25));
@SuppressWarnings("unused") // for GUIWires being created
private void initSubmodelComponents(Pin A1, Pin A2, Pin A3, Pin A4, Pin B, Pin Y1, Pin Y2, Pin Y3, Pin Y4)
{
-
GUIand and1 = new GUIand(submodelModifiable);
- and1.moveTo(70, 20);
GUIand and2 = new GUIand(submodelModifiable);
- and2.moveTo(70, 70);
GUIand and3 = new GUIand(submodelModifiable);
- and3.moveTo(70, 120);
GUIand and4 = new GUIand(submodelModifiable);
- and4.moveTo(70, 170);
WireCrossPoint cpB2 = new WireCrossPoint(submodelModifiable, 1);
- cpB2.moveTo(60, 90);
WireCrossPoint cpB3 = new WireCrossPoint(submodelModifiable, 1);
- cpB3.moveTo(60, 140);
WireCrossPoint cpB4 = new WireCrossPoint(submodelModifiable, 1);
+
+ and1.moveTo(70, 20);
+ and2.moveTo(70, 70);
+ and3.moveTo(70, 120);
+ and4.moveTo(70, 170);
+ cpB2.moveTo(60, 90);
+ cpB3.moveTo(60, 140);
cpB4.moveTo(60, 190);
new GUIWire(submodelModifiable, A1, and1.getPinA());