- if (!bit.isBinary())
- throw new IllegalArgumentException("Cannot set ManualSwitch to the value of Bit " + bit);
- if (bit == output.getInputValue())
+ if (bits.length() != output.width())
+ throw new IllegalArgumentException("Incorrect bit vector length");
+ if (bits.equals(output.getInputValues()))