Uses of Interface
api.IComponent
-
Packages that use IComponent Package Description api hw4 -
-
Uses of IComponent in api
Subinterfaces of IComponent in api Modifier and Type Interface Description interfaceIStatefulComponentSubinterface of IComponent that adds methods for dealing with components that have internal state.Classes in api that implement IComponent Modifier and Type Class Description classExternalValueAn ExternalValue is a component representing a value that might be set by setting switches or reading external data.Methods in api that return IComponent Modifier and Type Method Description IComponentPin. getParent()Returns a reference to the component to which this Pin belongsMethods in api with parameters of type IComponent Modifier and Type Method Description static voidUtil. addListener(IComponent c, IPinListener listener)Adds the given listener to all outputs of the given component.static voidUtil. connect(IComponent src, int startSrc, IComponent dst, int startDst, int howMany)Connects outputs of the source component, starting with the given index 'startSrc', to inputs of the destination component starting with the given index 'startDst'.static voidUtil. connect(IComponent src, IComponent dst)Connects all outputs of the source component to all inputs of the destination component (or as many as possible without going out of bounds).static voidUtil. setInputs(IComponent c, int value)Sets the inputs of the given component using the binary representation of the given value.static voidUtil. setInputs(IComponent c, java.lang.String values)Sets the inputs of the given component from the given string of '0' and '1' characters, where the string is read right to left.static voidUtil. setInputs(IComponent c, java.lang.String values, int start)Sets the inputs of the given component from the given string of '0' and '1' characters, where the string is read right to left.voidIPinListener. update(IComponent c)Invoked by a Pin when its value changes.voidProbe. update(IComponent c)Constructors in api with parameters of type IComponent Constructor Description Pin(IComponent parent)Constructs a Pin with the given parent component. -
Uses of IComponent in hw4
Classes in hw4 that implement IComponent Modifier and Type Class Description classAbstractComponentAbstract supertype with common code for all components.classAbstractStatefulComponentAbstract supertype for stateful components.classAndGateImplementation of an and-gate with two inputs.classCompoundComponentImplementation of IComponent that contains other components.classCounterImplementation of a binary counter with a fixed number of bits.classFullAdderImplementation of a standard full adder circuit.classHalfAdderImplementation of a standard half adder circuit.classMultiComponentImplementation of a specialized CompoundComponent in which all subcomponents are identical and have one output.classMultiplexerImplementation of a single-output multiplexer.classNotGateImplementation of a not-gate with one input.classOrGateImplementation of an or-gate with two inputs.classRegisterImplementation of a register with an internal "state" consisting of a fixed number of bits.Methods in hw4 that return types with arguments of type IComponent Modifier and Type Method Description java.util.ArrayList<IComponent>CompoundComponent. getComponents()Returns a reference to the list of subcomponents.Methods in hw4 with parameters of type IComponent Modifier and Type Method Description voidCompoundComponent. addComponent(IComponent c)Adds the given component to the list of subcomponents.Constructors in hw4 with parameters of type IComponent Constructor Description MultiComponent(IComponent[] components)Constructs a MultiComponent with the given array of subcomponents.
-