public class NOTGate extends Gate
This gate is identical to creating a Gate with a 1000 truth table.
|Constructor and Description|
Constructs a NOT Gate.
public NOTGate(int gateNumber, int inputWireIndex, int outputWireIndices)
gateNumber- The gate's number (in a circuit all gates will be numbered).
inputWireIndex- An array containing the index of the gate's input
Wire. Since NOT is a unary operator, there will only be one input
outputWireIndices- An array containing the indices of the gate's input
Wire(s). There will generally be a single output
Wire. However in instances in which the fan-out of the output
Wireis >1, we left the option for treating this as multiple