- cp2.moveTo(15, 52.5);
- cp3.moveTo(15, 77.5);
- cp4.moveTo(15, 102.5);
-
- new GUIWire(submodelModifiable, C, cp4, new Point(15, 125));
- new GUIWire(submodelModifiable, cp4, dlatch4.getPinE());
- new GUIWire(submodelModifiable, cp4, cp3);
- new GUIWire(submodelModifiable, cp3, dlatch3.getPinE());
- new GUIWire(submodelModifiable, cp3, cp2);
- new GUIWire(submodelModifiable, cp2, dlatch2.getPinE());
- new GUIWire(submodelModifiable, cp2, dlatch1.getPinE(), new Point(15, 27.5));
- new GUIWire(submodelModifiable, D1, dlatch1.getPinD());
- new GUIWire(submodelModifiable, D2, dlatch2.getPinD());
- new GUIWire(submodelModifiable, D3, dlatch3.getPinD());
- new GUIWire(submodelModifiable, D4, dlatch4.getPinD());
- new GUIWire(submodelModifiable, dlatch1.getPinQ(), Q1);
- new GUIWire(submodelModifiable, dlatch2.getPinQ(), Q2);
- new GUIWire(submodelModifiable, dlatch3.getPinQ(), Q3);
- new GUIWire(submodelModifiable, dlatch4.getPinQ(), Q4);
- }
-
- public Pin getPinC()
- {
- return pinC;
- }
-
- public Pin getPinD1()
- {
- return pinD1;
- }
-
- public Pin getPinD2()
- {
- return pinD2;
- }
-
- public Pin getPinD3()
- {
- return pinD3;
- }
-
- public Pin getPinD4()
- {
- return pinD4;
- }
-
- public Pin getPinQ1()
- {
- return pinQ1;
- }
-
- public Pin getPinQ2()
- {
- return pinQ2;
- }
-
- public Pin getPinQ3()
- {
- return pinQ3;
- }
-
- public Pin getPinQ4()
- {
- return pinQ4;
+ cp2.moveTo(15, 47.5);
+ cp3.moveTo(15, 72.5);
+ cp4.moveTo(15, 97.5);
+
+ new GUIWire(submodelModifiable, C, cp4, new Point(15, 112.5));
+ new GUIWire(submodelModifiable, cp4, dlatch4.getInputPins().get(1), new Point[0]);
+ new GUIWire(submodelModifiable, cp4, cp3, new Point[0]);
+ new GUIWire(submodelModifiable, cp3, dlatch3.getInputPins().get(1), new Point[0]);
+ new GUIWire(submodelModifiable, cp3, cp2, new Point[0]);
+ new GUIWire(submodelModifiable, cp2, dlatch2.getInputPins().get(1), new Point[0]);
+ new GUIWire(submodelModifiable, cp2, dlatch1.getInputPins().get(1), new Point(15, 22.5));
+ new GUIWire(submodelModifiable, D1, dlatch1.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, D2, dlatch2.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, D3, dlatch3.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, D4, dlatch4.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, dlatch1.getOutputPins().get(0), Q1, new Point[0]);
+ new GUIWire(submodelModifiable, dlatch2.getOutputPins().get(0), Q2, new Point[0]);
+ new GUIWire(submodelModifiable, dlatch3.getOutputPins().get(0), Q3, new Point[0]);
+ new GUIWire(submodelModifiable, dlatch4.getOutputPins().get(0), Q4, new Point[0]);