import net.mograsim.logic.ui.model.wires.Pin;
import net.mograsim.logic.ui.model.wires.WireCrossPoint;
-/**
- * @formatter:off
- * Inputs:
- * 0: select
- * 1: I0_0
- * 2: I0_1
- * 3: I0_2
- * 4: I0_3
- * 5: I1_0
- * 6: I1_1
- * 7: I1_2
- * 8: I1_3
- * Outputs:
- * 0: Y0
- * 1: Y1
- * 2: Y2
- * 3: Y3
- * @formatter:on
- */
public class GUImux1_4 extends SimpleRectangularSubmodelComponent
{
public GUImux1_4(ViewModelModifiable model)
{
super(model, 1, "GUImux1_4");
setSubmodelScale(.4);
- setInputCount(9);
- setOutputCount(4);
+ setInputPins("S0", "I0_1", "I0_2", "I0_3", "I0_4", "I1_1", "I1_2", "I1_3", "I1_4");
+ setOutputPins("Y1", "Y2", "Y3", "Y4");
initSubmodelComponents();
}
mux2.moveTo(30, 42.5);
mux3.moveTo(30, 77.5);
mux4.moveTo(30, 112.5);
- cp1.moveTo(25, 12.5);
- cp2.moveTo(25, 47.5);
- cp3.moveTo(25, 82.5);
+ cp1.moveCenterTo(25, 12.5);
+ cp2.moveCenterTo(25, 47.5);
+ cp3.moveCenterTo(25, 82.5);
new GUIWire(submodelModifiable, S0, cp1, new Point[0]);
new GUIWire(submodelModifiable, cp1, mux1.getInputPins().get(0), new Point[0]);