Reformatted everything. Eclipse built-in Linewrapping/Comments 140 chars
[Mograsim.git] / era.mi / src / era / mi / logic / tests / Connector.java
index 99b0068..c25fd6d 100644 (file)
@@ -6,15 +6,13 @@ import era.mi.logic.wires.WireArray;
 import era.mi.logic.wires.WireArray.WireArrayInput;\r
 import era.mi.logic.wires.WireArrayObserver;\r
 \r
-public class Connector implements WireArrayObserver\r
-{\r
+public class Connector implements WireArrayObserver {\r
        private final WireArray a;\r
 //     private final WireArray b;\r
        private final WireArrayInput aI;\r
        private final WireArrayInput bI;\r
 \r
-       public Connector(WireArray a, WireArray b)\r
-       {\r
+       public Connector(WireArray a, WireArray b) {\r
                if (a.length != b.length)\r
                        throw new IllegalArgumentException(String.format("WireArray width does not match: %d, %d", a.length, b.length));\r
                this.a = a;\r
@@ -26,10 +24,8 @@ public class Connector implements WireArrayObserver
        }\r
 \r
        @Override\r
-       public void update(WireArray initiator, Bit[] oldValues)\r
-       {\r
-               Simulation.TIMELINE.addEvent((e) ->\r
-               {\r
+       public void update(WireArray initiator, Bit[] oldValues) {\r
+               Simulation.TIMELINE.addEvent((e) -> {\r
                        if (initiator == a)\r
                                bI.feedSignals(aI.wireValuesExcludingMe());\r
                        else\r