Package hw4
Class NotGate
- java.lang.Object
-
- hw4.AbstractComponent
-
- hw4.NotGate
-
- All Implemented Interfaces:
IComponent
public class NotGate extends AbstractComponent
Implementation of a not-gate with one input.- Author:
- smkautz
-
-
Constructor Summary
Constructors Constructor Description NotGate()
Constructs a NotGate with one input.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
propagate()
Propagates inputs to outputs.-
Methods inherited from class hw4.AbstractComponent
inputs, inputsValid, invalidateInputs, invalidateOutputs, outputs, outputsValid
-
-
-
-
Method Detail
-
propagate
public void propagate()
Description copied from interface:IComponent
Propagates inputs to outputs. Does nothing if not all inputs are valid.
-
-