X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=era.mi%2Fsrc%2Fera%2Fmi%2Flogic%2Fcomponents%2FComponent.java;h=e26b6cd33c724b0b1dffba57f71e4a98103cef7e;hb=6c67a9ff8361cd9fc082f40e2676f2c8b5911fe4;hp=f104e5fceafba86f96584a8ead4c4818afdf849a;hpb=b7ce41467a2cbd9f45554982730741810e99feaa;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 index f104e5fc..e26b6cd3 100644 --- a/era.mi/src/era/mi/logic/components/Component.java +++ b/era.mi/src/era/mi/logic/components/Component.java @@ -2,20 +2,27 @@ package era.mi.logic.components; import java.util.List; +import era.mi.logic.timeline.Timeline; import era.mi.logic.wires.Wire.ReadEnd; import era.mi.logic.wires.Wire.ReadWriteEnd; -public interface Component +public abstract class Component { + protected Timeline timeline; + + public Component(Timeline timeline) + { + this.timeline = timeline; + } /** * 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(); + public abstract List getAllInputs(); /** * Returns immutable list of all outputs to the {@link Component}. Intended for visualization in the UI. */ - public List getAllOutputs(); + public abstract List getAllOutputs(); }