- andAB.moveTo(40, 15);
- nandABC.moveTo(70, 27.5);
- cpNandAB.moveTo(35, 25);
-
- new GUIWire(submodelModifiable, A, nandAB.getInputPins().get(0), new Point(5, 12.5), new Point(5, 20));
- new GUIWire(submodelModifiable, B, nandAB.getInputPins().get(1), new Point(5, 37.5), new Point(5, 30));
- new GUIWire(submodelModifiable, nandAB.getOutputPin(), cpNandAB);
- new GUIWire(submodelModifiable, cpNandAB, andAB.getInputPins().get(0), new Point(35, 20));
- new GUIWire(submodelModifiable, cpNandAB, andAB.getInputPins().get(1), new Point(35, 30));
- new GUIWire(submodelModifiable, andAB.getOutputPin(), nandABC.getInputPins().get(0), new Point(65, 25), new Point(65, 32.5));
- new GUIWire(submodelModifiable, C, nandABC.getInputPins().get(1), new Point(65, 62.5), new Point(65, 42.5));
- new GUIWire(submodelModifiable, nandABC.getOutputPin(), Y);
- }
-
- public Pin getPinA()
- {
- return pinA;
- }
-
- public Pin getPinB()
- {
- return pinB;
- }
-
- public Pin getPinC()
- {
- return pinC;
- }
-
- public Pin getPinY()
- {
- return pinY;
+ andAB.moveTo(35, 15);
+ nandABC.moveTo(62.5, 2.5);
+ cpNandAB.moveTo(32.5, 25);
+
+ new GUIWire(submodelModifiable, A, nandAB.getInputPins().get(0));
+ new GUIWire(submodelModifiable, B, nandAB.getInputPins().get(1));
+ new GUIWire(submodelModifiable, nandAB.getOutputPin(), cpNandAB, new Point[0]);
+ new GUIWire(submodelModifiable, cpNandAB, andAB.getInputPins().get(0), new Point(32.5, 20));
+ new GUIWire(submodelModifiable, cpNandAB, andAB.getInputPins().get(1), new Point(32.5, 30));
+ new GUIWire(submodelModifiable, andAB.getOutputPin(), nandABC.getInputPins().get(0), new Point(57.5, 25), new Point(57.5, 7.5));
+ new GUIWire(submodelModifiable, C, nandABC.getInputPins().get(1), new Point(60, 62.5), new Point(60, 17.5));
+ new GUIWire(submodelModifiable, nandABC.getOutputPin(), Y, new Point[0]);