public void codeTrigrers(){
        if(codes == null){
            Application.mediator.writeInfo("Automaton isn`t coded");
            return;
        }
        
        J = new ArrayList<>();
        K = new ArrayList<>();
        
        for (int i = 0; i < connections.size(); i++) {
            int from = connections.get(i).from;
            int to = connections.get(i).to;
            TrigerState []jtriger = new TrigerState[codes.get(0).length];
            TrigerState []ktriger = new TrigerState[codes.get(0).length];
            for (int j = 0; j < codes.get(from).length; j++) {
                if(codes.get(from)[j] == false){
                    jtriger[j] = (codes.get(to)[j]) ? TrigerState.ONE : TrigerState.ZERO;
                    ktriger[j] = TrigerState.DOES_NOT_MATTER;
                }else{
                    ktriger[j] = (!codes.get(to)[j]) ? TrigerState.ONE : TrigerState.ZERO;
                    jtriger[j] = TrigerState.DOES_NOT_MATTER;
                }
            }
            J.add(jtriger);
            K.add(ktriger);
        }
    }