public void check() {
        try {
            for (int i = 0; i < salidas.getLength(); i++) {
                CompuertaLogica salida = salidas.get(i);
                boolean valor = salida.getInput(0);
                listener.actionPerformed(new ActionEvent(this, SET_INOUT, salida.getReference() + "#" + valor));
            }
        } catch (NullPointerException e) {
            listener.actionPerformed(new ActionEvent(this, CHECKC, ""));
        }
    }