Made LogicUIStandalone implement Runnable because why not.
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / wires / WireCrossPoint.java
index c412c56..07bddc6 100644 (file)
@@ -21,7 +21,7 @@ import net.mograsim.logic.ui.model.components.SimpleRectangularGUIGate;
  * 
  * @author Daniel Kirschten
  */
-public class WireCrossPoint extends GUIComponent
+public class WireCrossPoint extends GUIComponent implements ConnectionPoint
 {
        private static final int CIRCLE_RADIUS = 1;
        private static final int CIRCLE_DIAM = CIRCLE_RADIUS * 2;
@@ -53,6 +53,7 @@ public class WireCrossPoint extends GUIComponent
 
        // pins
 
+       @Override
        public Pin getPin()
        {
                return pin;
@@ -95,6 +96,14 @@ public class WireCrossPoint extends GUIComponent
                        end.registerObserver(logicObs);
        }
 
+       /**
+        * Returns whether this {@link WireCrossPoint} has a logic model binding or not.
+        */
+       public boolean hasLogicModelBinding()
+       {
+               return end != null;
+       }
+
        // serializing
 
        @Override