private List setCurrentConnection(int nodeId) {
        List list = new List();
        for (int i = 0; i < this.connection.length; i++) {
            int upI = i + 1;
            if (robotPlace.existConnection(upI) && this.connection[nodeId - 1][i] == 1) {
                list.add(true, upI);
            } else {
                if (this.connection[nodeId - 1][i] == 1) {
                    list.add(false, upI);
                }
            }
        }
        return list;
    }