LogicGates/eu.heili/NotGate.java
lukas-heiligenbrunner 8682ec5007 reformat code
2020-04-14 11:07:35 +02:00

15 lines
260 B
Java

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