1 package net.mograsim.logic.model.examples;
3 import net.mograsim.logic.model.SimpleLogicUIStandalone;
4 import net.mograsim.logic.model.model.ViewModelModifiable;
5 import net.mograsim.logic.model.model.components.atomic.GUIBitDisplay;
6 import net.mograsim.logic.model.model.components.atomic.GUIManualSwitch;
7 import net.mograsim.logic.model.model.components.submodels.SimpleRectangularSubmodelComponent;
8 import net.mograsim.logic.model.model.wires.GUIWire;
10 public class ClickableSubmodelComponentsTest
12 public static void main(String[] args)
14 SimpleLogicUIStandalone.executeVisualisation(ClickableSubmodelComponentsTest::createExample);
17 public static void createExample(ViewModelModifiable model)
19 @SuppressWarnings("unused") // GUIWire
20 SimpleRectangularSubmodelComponent comp = new SimpleRectangularSubmodelComponent(model, 1, "")
26 GUIManualSwitch sw = new GUIManualSwitch(submodelModifiable, 1);
27 GUIBitDisplay bd = new GUIBitDisplay(submodelModifiable, 1);
32 new GUIWire(submodelModifiable, sw.getOutputPin(), bd.getInputPin());