The final restructured version for automatic build using maven tycho
[Mograsim.git] / plugins / net.mograsim.logic.core / src / net / mograsim / logic / core / components / CoreComponent.java
1 package net.mograsim.logic.core.components;
2
3 import java.util.List;
4
5 import net.mograsim.logic.core.timeline.Timeline;
6 import net.mograsim.logic.core.wires.CoreWire.ReadEnd;
7 import net.mograsim.logic.core.wires.CoreWire.ReadWriteEnd;
8
9 public abstract class CoreComponent
10 {
11         protected Timeline timeline;
12
13         public CoreComponent(Timeline timeline)
14         {
15                 this.timeline = timeline;
16         }
17
18         /**
19          * Returns immutable list of all inputs to the {@link CoreComponent} (including e.g. the select bits to a MUX). Intended for
20          * visualization in the UI.
21          */
22         public abstract List<ReadEnd> getAllInputs();
23
24         /**
25          * Returns immutable list of all outputs to the {@link CoreComponent}. Intended for visualization in the UI.
26          */
27         public abstract List<ReadWriteEnd> getAllOutputs();
28 }