Package hw4

Class OrGate

  • All Implemented Interfaces:
    IComponent

    public class OrGate
    extends AbstractComponent
    Implementation of an or-gate with two inputs.
    Author:
    smkautz
    • Constructor Detail

      • OrGate

        public OrGate()
        Constructs an OrGate with two inputs.
    • Method Detail

      • propagate

        public void propagate()
        Description copied from interface: IComponent
        Propagates inputs to outputs. Does nothing if not all inputs are valid.