Common ConnectionPoint interface to simplify many things
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / wires / Pin.java
index 287a623..b761c0e 100644 (file)
@@ -15,7 +15,7 @@ import net.mograsim.logic.ui.model.components.GUIComponent;
  * 
  * @author Daniel Kirschten
  */
-public class Pin
+public class Pin implements ConnectionPoint
 {
        /**
         * The {@link GUIComponent} this pin belongs to
@@ -136,4 +136,10 @@ public class Pin
        {
                return "Pin [" + name + ", point=" + getPos() + "]";
        }
+
+       @Override
+       public Pin getPin()
+       {
+               return this;
+       }
 }
\ No newline at end of file