public class ANDGate extends Gate
This gate is identical to creating a Gate with a 0001 truth table.
|Constructor and Description|
Constructs an AND Gate.
public ANDGate(int gateNumber, int inputWireIndices, int outputWireIndices)
gateNumber- The gate's integer index (in a circuit all gates will be indexed)
inputWireIndices- An array containing the indices of the gate's 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