- cp1.moveTo(5, 50);
- cp2.moveTo(35, 17.5);
-
- new GUIWire(submodelModifiable, D, nand1.getInputPins().get(0));
- new GUIWire(submodelModifiable, E, cp1);
- new GUIWire(submodelModifiable, cp1, nand1.getInputPins().get(1), new Point(5, 22.5));
- new GUIWire(submodelModifiable, cp1, nand2.getInputPins().get(1));
- new GUIWire(submodelModifiable, nand1.getOutputPin(), cp2);
- new GUIWire(submodelModifiable, cp2, nand2.getInputPins().get(0), new Point(35, 30), new Point(10, 30), new Point(10, 40));
- new GUIWire(submodelModifiable, cp2, _rsLatch.getPin_S(), new Point(35, 12.5));
- new GUIWire(submodelModifiable, nand2.getOutputPin(), _rsLatch.getPin_R(), new Point(40, 45), new Point(40, 27.5));
- new GUIWire(submodelModifiable, _rsLatch.getPinQ(), Q);
- new GUIWire(submodelModifiable, _rsLatch.getPin_Q(), _Q, new Point(82.5, 27.5), new Point(82.5, 50));
- }
-
- public Pin getPinD()
- {
- return pinD;
- }
-
- public Pin getPinE()
- {
- return pinE;
- }
-
- public Pin getPinQ()
- {
- return pinQ;
- }
-
- public Pin getPin_Q()
- {
- return pin_Q;
+ cp1.moveCenterTo(5, 37.5);
+ cp2.moveCenterTo(35, 12.5);
+
+ new GUIWire(submodelModifiable, D, nand1.getPin("A"));
+ new GUIWire(submodelModifiable, E, cp1, new Point[0]);
+ new GUIWire(submodelModifiable, cp1, nand1.getPin("B"), new Point(5, 17.5));
+ new GUIWire(submodelModifiable, cp1, nand2.getPin("B"), new Point(5, 42.5));
+ new GUIWire(submodelModifiable, nand1.getPin("Y"), cp2, new Point[0]);
+ new GUIWire(submodelModifiable, cp2, nand2.getPin("A"), new Point(35, 25), new Point(10, 25), new Point(10, 32.5));
+ new GUIWire(submodelModifiable, cp2, _rsLatch.getPin("_S"), new Point[0]);
+ new GUIWire(submodelModifiable, nand2.getPin("Y"), _rsLatch.getPin("_R"), new Point(40, 37.5), new Point(40, 22.5));
+ new GUIWire(submodelModifiable, _rsLatch.getPin("Q"), Q, new Point[0]);
+ new GUIWire(submodelModifiable, _rsLatch.getPin("_Q"), _Q);