addinput method
This commit is contained in:
parent
ed29c393e0
commit
e27d44a388
@ -1,5 +1,4 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
public abstract class LogicGate {
|
||||
private final ArrayList<DigitalInput> inputs = new ArrayList<>();
|
||||
@ -31,4 +30,8 @@ public abstract class LogicGate {
|
||||
public int getInputNumber() {
|
||||
return inputs.size();
|
||||
}
|
||||
|
||||
public void addInput(DigitalInput in){
|
||||
inputs.add(in);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user