if (output.length() != 1)
throw new IllegalArgumentException("Switch output can be only a single wire");
this.output = output;
if (output.length() != 1)
throw new IllegalArgumentException("Switch output can be only a single wire");
this.output = output;