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