2020-04-14 09:01:51 +00:00
|
|
|
public class NotGate extends LogicGate{
|
|
|
|
public NotGate() {
|
|
|
|
super(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
public NotGate(DigitalInput inputval) {
|
|
|
|
super(inputval);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean getOutput() {
|
|
|
|
return !getInput(0).getValue();
|
|
|
|
}
|
2020-04-13 09:14:15 +00:00
|
|
|
}
|