d749a4bdb5decdce92c2b4c5629ce736260bd666
[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.ReadEnd;\r
6 import era.mi.logic.wires.Wire.ReadWriteEnd;\r
7 \r
8 public interface Component\r
9 {\r
10 \r
11         /**\r
12          * Returns immutable list of all inputs to the {@link Component} (including e.g. the select bits to a MUX). Intended for visualization\r
13          * in the UI.\r
14          */\r
15         public List<ReadEnd> getAllInputs();\r
16 \r
17         /**\r
18          * Returns immutable list of all outputs to the {@link Component}. Intended for visualization in the UI.\r
19          */\r
20         public List<ReadWriteEnd> getAllOutputs();\r
21 }\r