WireEnd functionality split into ReadEnd and ReadWriteEnd
[Mograsim.git] / era.mi / src / era / mi / logic / components / Component.java
index c5186d0..f104e5f 100644 (file)
@@ -2,18 +2,20 @@ package era.mi.logic.components;
 
 import java.util.List;
 
-import era.mi.logic.wires.WireArray;
+import era.mi.logic.wires.Wire.ReadEnd;
+import era.mi.logic.wires.Wire.ReadWriteEnd;
 
-public interface Component {
+public interface Component
+{
 
        /**
         * Returns immutable list of all inputs to the {@link Component} (including e.g. the select bits to a MUX). Intended for visualization
         * in the UI.
         */
-       public List<WireArray> getAllInputs();
+       public List<ReadEnd> getAllInputs();
 
        /**
         * Returns immutable list of all outputs to the {@link Component}. Intended for visualization in the UI.
         */
-       public List<WireArray> getAllOutputs();
+       public List<ReadWriteEnd> getAllOutputs();
 }