Package hw4

Class MultiComponent

  • All Implemented Interfaces:
    IComponent

    public class MultiComponent
    extends CompoundComponent
    Implementation of a specialized CompoundComponent in which all subcomponents are identical and have one output. For each i less than n, inputs i * m up to (i + 1) * m are connected to the i-th subcomponent and the output of that subcomponent is connected to output i.
    Author:
    smkautz
    • Constructor Detail

      • MultiComponent

        public MultiComponent​(IComponent[] components)
        Constructs a MultiComponent with the given array of subcomponents. All elements of the array must be identical and must have one output.
        Parameters:
        components - subcomponents for this multicomponent