- nandY1.moveTo(70, 2.5);
- nandY2.moveTo(70, 27.5);
- nandY3.moveTo(70, 52.5);
- nandY4.moveTo(70, 77.5);
- cpA1.moveTo(7.5, 12.5);
- cpA2.moveTo(7.5, 37.5);
- cpA3.moveTo(7.5, 62.5);
- cpA4.moveTo(7.5, 87.5);
- cpB1.moveTo(7.5, 112.5);
- cpB2.moveTo(7.5, 137.5);
- cpB3.moveTo(7.5, 162.5);
- cpB4.moveTo(7.5, 187.5);
-
- new GUIWire(submodelModifiable, A1, cpA1.getPin());
- new GUIWire(submodelModifiable, A2, cpA2.getPin());
- new GUIWire(submodelModifiable, A3, cpA3.getPin());
- new GUIWire(submodelModifiable, A4, cpA4.getPin());
- new GUIWire(submodelModifiable, B1, cpB1.getPin());
- new GUIWire(submodelModifiable, B2, cpB2.getPin());
- new GUIWire(submodelModifiable, B3, cpB3.getPin());
- new GUIWire(submodelModifiable, B4, cpB4.getPin());
- new GUIWire(submodelModifiable, cpA1.getPin(), notA1.getInputPins().get(0), new Point(7.5, 7.5));
- new GUIWire(submodelModifiable, cpA1.getPin(), notA1.getInputPins().get(1), new Point(7.5, 17.5));
- new GUIWire(submodelModifiable, cpA2.getPin(), notA2.getInputPins().get(0), new Point(7.5, 32.5));
- new GUIWire(submodelModifiable, cpA2.getPin(), notA2.getInputPins().get(1), new Point(7.5, 42.5));
- new GUIWire(submodelModifiable, cpA3.getPin(), notA3.getInputPins().get(0), new Point(7.5, 57.5));
- new GUIWire(submodelModifiable, cpA3.getPin(), notA3.getInputPins().get(1), new Point(7.5, 67.5));
- new GUIWire(submodelModifiable, cpA4.getPin(), notA4.getInputPins().get(0), new Point(7.5, 82.5));
- new GUIWire(submodelModifiable, cpA4.getPin(), notA4.getInputPins().get(1), new Point(7.5, 92.5));
- new GUIWire(submodelModifiable, cpB1.getPin(), notB1.getInputPins().get(0), new Point(7.5, 107.5));
- new GUIWire(submodelModifiable, cpB1.getPin(), notB1.getInputPins().get(1), new Point(7.5, 117.5));
- new GUIWire(submodelModifiable, cpB2.getPin(), notB2.getInputPins().get(0), new Point(7.5, 132.5));
- new GUIWire(submodelModifiable, cpB2.getPin(), notB2.getInputPins().get(1), new Point(7.5, 142.5));
- new GUIWire(submodelModifiable, cpB3.getPin(), notB3.getInputPins().get(0), new Point(7.5, 157.5));
- new GUIWire(submodelModifiable, cpB3.getPin(), notB3.getInputPins().get(1), new Point(7.5, 167.5));
- new GUIWire(submodelModifiable, cpB4.getPin(), notB4.getInputPins().get(0), new Point(7.5, 182.5));
- new GUIWire(submodelModifiable, cpB4.getPin(), notB4.getInputPins().get(1), new Point(7.5, 192.5));
- new GUIWire(submodelModifiable, notA1.getOutputPin(), nandY1.getInputPins().get(0), new Point(40, 12.5), new Point(40, 7.5));
- new GUIWire(submodelModifiable, notB1.getOutputPin(), nandY1.getInputPins().get(1), new Point(50, 112.5), new Point(50, 17.5));
- new GUIWire(submodelModifiable, notA2.getOutputPin(), nandY2.getInputPins().get(0), new Point(40, 37.5), new Point(40, 32.5));
- new GUIWire(submodelModifiable, notB2.getOutputPin(), nandY2.getInputPins().get(1), new Point(55, 137.5), new Point(55, 42.5));
- new GUIWire(submodelModifiable, notA3.getOutputPin(), nandY3.getInputPins().get(0), new Point(40, 62.5), new Point(40, 57.5));
- new GUIWire(submodelModifiable, notB3.getOutputPin(), nandY3.getInputPins().get(1), new Point(60, 162.5), new Point(60, 67.5));
- new GUIWire(submodelModifiable, notA4.getOutputPin(), nandY4.getInputPins().get(0), new Point(40, 87.5), new Point(40, 82.5));
- new GUIWire(submodelModifiable, notB4.getOutputPin(), nandY4.getInputPins().get(1), new Point(65, 187.5), new Point(65, 92.5));
- new GUIWire(submodelModifiable, nandY1.getOutputPin(), Y1);
- new GUIWire(submodelModifiable, nandY2.getOutputPin(), Y2);
- new GUIWire(submodelModifiable, nandY3.getOutputPin(), Y3);
- new GUIWire(submodelModifiable, nandY4.getOutputPin(), Y4);
- }
-
- public Pin getPinA1()
- {
- return pinA1;
- }
-
- public Pin getPinA2()
- {
- return pinA2;
- }
-
- public Pin getPinA3()
- {
- return pinA3;
- }
-
- public Pin getPinA4()
- {
- return pinA4;
- }
-
- public Pin getPinB1()
- {
- return pinB1;
- }
-
- public Pin getPinB2()
- {
- return pinB2;
- }
-
- public Pin getPinB3()
- {
- return pinB3;
- }
-
- public Pin getPinB4()
- {
- return pinB4;
- }
-
- public Pin getPinY1()
- {
- return pinY1;
- }
-
- public Pin getPinY2()
- {
- return pinY2;
- }
-
- public Pin getPinY3()
- {
- return pinY3;
- }
-
- public Pin getPinY4()
- {
- return pinY4;
+ nandY1.moveTo(65, 2.5);
+ nandY2.moveTo(65, 27.5);
+ nandY3.moveTo(65, 52.5);
+ nandY4.moveTo(65, 77.5);
+ cpA1.moveCenterTo(7.5, 12.5);
+ cpA2.moveCenterTo(7.5, 37.5);
+ cpA3.moveCenterTo(7.5, 62.5);
+ cpA4.moveCenterTo(7.5, 87.5);
+ cpB1.moveCenterTo(7.5, 112.5);
+ cpB2.moveCenterTo(7.5, 137.5);
+ cpB3.moveCenterTo(7.5, 162.5);
+ cpB4.moveCenterTo(7.5, 187.5);
+
+ new GUIWire(submodelModifiable, A1, cpA1, new Point[0]);
+ new GUIWire(submodelModifiable, A2, cpA2, new Point[0]);
+ new GUIWire(submodelModifiable, A3, cpA3, new Point[0]);
+ new GUIWire(submodelModifiable, A4, cpA4, new Point[0]);
+ new GUIWire(submodelModifiable, B1, cpB1, new Point[0]);
+ new GUIWire(submodelModifiable, B2, cpB2, new Point[0]);
+ new GUIWire(submodelModifiable, B3, cpB3, new Point[0]);
+ new GUIWire(submodelModifiable, B4, cpB4, new Point[0]);
+ new GUIWire(submodelModifiable, cpA1, notA1.getPin("A"), new Point(7.5, 7.5));
+ new GUIWire(submodelModifiable, cpA1, notA1.getPin("B"), new Point(7.5, 17.5));
+ new GUIWire(submodelModifiable, cpA2, notA2.getPin("A"), new Point(7.5, 32.5));
+ new GUIWire(submodelModifiable, cpA2, notA2.getPin("B"), new Point(7.5, 42.5));
+ new GUIWire(submodelModifiable, cpA3, notA3.getPin("A"), new Point(7.5, 57.5));
+ new GUIWire(submodelModifiable, cpA3, notA3.getPin("B"), new Point(7.5, 67.5));
+ new GUIWire(submodelModifiable, cpA4, notA4.getPin("A"), new Point(7.5, 82.5));
+ new GUIWire(submodelModifiable, cpA4, notA4.getPin("B"), new Point(7.5, 92.5));
+ new GUIWire(submodelModifiable, cpB1, notB1.getPin("A"), new Point(7.5, 107.5));
+ new GUIWire(submodelModifiable, cpB1, notB1.getPin("B"), new Point(7.5, 117.5));
+ new GUIWire(submodelModifiable, cpB2, notB2.getPin("A"), new Point(7.5, 132.5));
+ new GUIWire(submodelModifiable, cpB2, notB2.getPin("B"), new Point(7.5, 142.5));
+ new GUIWire(submodelModifiable, cpB3, notB3.getPin("A"), new Point(7.5, 157.5));
+ new GUIWire(submodelModifiable, cpB3, notB3.getPin("B"), new Point(7.5, 167.5));
+ new GUIWire(submodelModifiable, cpB4, notB4.getPin("A"), new Point(7.5, 182.5));
+ new GUIWire(submodelModifiable, cpB4, notB4.getPin("B"), new Point(7.5, 192.5));
+ new GUIWire(submodelModifiable, notA1.getPin("Y"), nandY1.getPin("A"), new Point(40, 12.5), new Point(40, 7.5));
+ new GUIWire(submodelModifiable, notB1.getPin("Y"), nandY1.getPin("B"), new Point(45, 112.5), new Point(45, 17.5));
+ new GUIWire(submodelModifiable, notA2.getPin("Y"), nandY2.getPin("A"), new Point(40, 37.5), new Point(40, 32.5));
+ new GUIWire(submodelModifiable, notB2.getPin("Y"), nandY2.getPin("B"), new Point(50, 137.5), new Point(50, 42.5));
+ new GUIWire(submodelModifiable, notA3.getPin("Y"), nandY3.getPin("A"), new Point(40, 62.5), new Point(40, 57.5));
+ new GUIWire(submodelModifiable, notB3.getPin("Y"), nandY3.getPin("B"), new Point(55, 162.5), new Point(55, 67.5));
+ new GUIWire(submodelModifiable, notA4.getPin("Y"), nandY4.getPin("A"), new Point(40, 87.5), new Point(40, 82.5));
+ new GUIWire(submodelModifiable, notB4.getPin("Y"), nandY4.getPin("B"), new Point(60, 187.5), new Point(60, 92.5));
+ new GUIWire(submodelModifiable, nandY1.getPin("Y"), Y1, new Point[0]);
+ new GUIWire(submodelModifiable, nandY2.getPin("Y"), Y2, new Point[0]);
+ new GUIWire(submodelModifiable, nandY3.getPin("Y"), Y3, new Point[0]);
+ new GUIWire(submodelModifiable, nandY4.getPin("Y"), Y4, new Point[0]);