Refactored Wire and finally renamed length to width
[Mograsim.git] / net.mograsim.logic.core / src / net / mograsim / logic / core / components / Connector.java
index 7315e13..528852e 100644 (file)
@@ -17,8 +17,8 @@ public class Connector extends Component implements LogicObserver
        public Connector(Timeline timeline, ReadWriteEnd a, ReadWriteEnd b)
        {
                super(timeline);
-               if (a.length() != b.length())
-                       throw new IllegalArgumentException(String.format("WireArray width does not match: %d, %d", a.length(), b.length()));
+               if (a.width() != b.width())
+                       throw new IllegalArgumentException(String.format("WireArray width does not match: %d, %d", a.width(), b.width()));
                this.a = a;
                this.b = b;
                a.registerObserver(this);