X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=era.mi%2Fsrc%2Fera%2Fmi%2Flogic%2Fcomponents%2FComponent.java;fp=era.mi%2Fsrc%2Fera%2Fmi%2Flogic%2Fcomponents%2FComponent.java;h=2d40cc24089eef646f917d7a7d26cca15b14bcfe;hb=bcf8d773c7a836c2ee17e17a49c296ebf31d2777;hp=0000000000000000000000000000000000000000;hpb=7f37c7b2431309e49a0ee116d1ee6c173272e926;p=Mograsim.git diff --git a/era.mi/src/era/mi/logic/components/Component.java b/era.mi/src/era/mi/logic/components/Component.java new file mode 100644 index 00000000..2d40cc24 --- /dev/null +++ b/era.mi/src/era/mi/logic/components/Component.java @@ -0,0 +1,21 @@ +package era.mi.logic.components; + +import java.util.List; + +import era.mi.logic.wires.WireArray; + +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 getAllInputs(); + + /** + * Returns immutable list of all outputs to the {@link Component}. + * Intended for visualization in the UI. + */ + public List getAllOutputs(); +}