1 package mograsim.logic.core.components;
\r
3 import java.util.List;
\r
5 import mograsim.logic.core.timeline.Timeline;
\r
6 import mograsim.logic.core.wires.Wire.ReadEnd;
\r
7 import mograsim.logic.core.wires.Wire.ReadWriteEnd;
\r
9 public abstract class Component
\r
11 protected Timeline timeline;
\r
13 public Component(Timeline timeline)
\r
15 this.timeline = timeline;
\r
19 * Returns immutable list of all inputs to the {@link Component} (including e.g. the select bits to a MUX). Intended for visualization
\r
22 public abstract List<ReadEnd> getAllInputs();
\r
25 * Returns immutable list of all outputs to the {@link Component}. Intended for visualization in the UI.
\r
27 public abstract List<ReadWriteEnd> getAllOutputs();
\r