public class NotGate extends LogicGate { public NotGate() { super(1); } public NotGate(DigitalInput inputval) { super(inputval); } @Override public boolean getOutput() { return !getInput(0).getValue(); } }