Added methods to get a TriStateBuffer's pins comfortably
authorChristian Femers <femers@in.tum.de>
Mon, 2 Sep 2019 04:51:34 +0000 (06:51 +0200)
committerChristian Femers <femers@in.tum.de>
Mon, 2 Sep 2019 04:51:34 +0000 (06:51 +0200)
net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/GUITriStateBuffer.java

index c9036d2..83b89f5 100644 (file)
@@ -61,6 +61,21 @@ public class GUITriStateBuffer extends GUIComponent
                addPin(enable);
        }
 
+       public final Pin getInputPin()
+       {
+               return input;
+       }
+
+       public final Pin getOutputPin()
+       {
+               return output;
+       }
+
+       public final Pin getEnablePin()
+       {
+               return enable;
+       }
+
        @Override
        public void render(GeneralGC gc, Rectangle visibleRegion)
        {