public void set(String[] command) {

        int idIn = Integer.parseInt(command[0]);
        int noIn = Integer.parseInt(command[1]);
        int idOut = Integer.parseInt(command[2]);
        int noOut = Integer.parseInt(command[3]);
        CompuertaLogica compIn = null;
        CompuertaLogica compOut = null;
        for (int i = 0; i < compuertas.getLength(); i++) {
            CompuertaLogica compuerta = compuertas.get(i);
            if (compuerta.equals(idIn)) compIn = compuerta;
            else if (compuerta.equals(idOut)) compOut = compuerta;
            if (compIn != null && compOut != null) break;

        }
        if (compIn == null || compOut == null)
            System.out.println("ERROR");
        compIn.setInput(noIn, new Salida(compOut, noOut));
        check();
    }