X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fmodel%2Fcomponents%2FGUIManualSwitch.java;h=b215cff86972c3843e6f1ea359288b704a2e7e4c;hb=60ad0ce18eb366fa22e34cdd7dff87055e43c789;hp=6008329c0aa2cf41fedb1d0e780845ed03b8380a;hpb=40606c1f83db756164f03b0285900d9c31d7fa0c;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/model/components/GUIManualSwitch.java b/LogicUI/src/era/mi/gui/model/components/GUIManualSwitch.java index 6008329c..b215cff8 100644 --- a/LogicUI/src/era/mi/gui/model/components/GUIManualSwitch.java +++ b/LogicUI/src/era/mi/gui/model/components/GUIManualSwitch.java @@ -16,6 +16,8 @@ public class GUIManualSwitch extends GUIComponent private static final double height = 15; private static final double fontHeight = 5; + private final Pin outputPin; + private ManualSwitch logicSwitch; private ReadEnd end; @@ -23,7 +25,7 @@ public class GUIManualSwitch extends GUIComponent { super(model); setSize(width, height); - addPin(new Pin(this, 1, width, height / 2)); + addPin(this.outputPin = new Pin(this, 1, width, height / 2)); } @Override @@ -53,4 +55,9 @@ public class GUIManualSwitch extends GUIComponent logicSwitch.toggle(); return true; } + + public Pin getOutputPin() + { + return outputPin; + } } \ No newline at end of file