Merged logicui into master
[Mograsim.git] / era.mi / src / era / mi / logic / components / Component.java
1 package era.mi.logic.components;\r
2 \r
3 import java.util.List;\r
4 \r
5 import era.mi.logic.wires.Wire.WireEnd;\r
6 \r
7 public interface Component\r
8 {\r
9 \r
10         /**\r
11          * Returns immutable list of all inputs to the {@link Component} (including e.g. the select bits to a MUX). Intended for visualization\r
12          * in the UI.\r
13          */\r
14         public List<WireEnd> getAllInputs();\r
15 \r
16         /**\r
17          * Returns immutable list of all outputs to the {@link Component}. Intended for visualization in the UI.\r
18          */\r
19         public List<WireEnd> getAllOutputs();\r
20 }\r