潘志宝
2 天以前 b40c34b909865d3c78090b5e9085f302708b4531
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/MdkApiImpl.java
@@ -377,11 +377,13 @@
                        }
                        break;
                    case D1:
                        ArrayList<Double> doubleList = (ArrayList<Double>) resultValue;
                        /*ArrayList<Double> doubleList = (ArrayList<Double>) resultValue;
                        double[] array1 = new double[doubleList.size()];
                        for (int i = 0; i < doubleList.size(); i++) {
                            array1[i] = doubleList.get(i);
                        }
                        }*/
                        double[] array1 = (double[]) resultValue;
                        if (stScheduleModelOutDTO.getResultPort() < array1.length) {
                            value = array1[stScheduleModelOutDTO.getResultPort()];
                        } else {
@@ -389,15 +391,17 @@
                        }
                        break;
                    case D2:
                        ArrayList<ArrayList<Double>> doubleListList = (ArrayList<ArrayList<Double>>) resultValue;
                        double[][] array2 = new double[doubleListList.size()][];
                        for (int i = 0; i < doubleListList.size(); i++) {
                        // ArrayList<ArrayList<Double>> doubleListList = (ArrayList<ArrayList<Double>>) resultValue;
                        // double[][] array2 = new double[doubleListList.size()][];
                        // double[][] array2 = (double[][]) resultValue;
                        /*for (int i = 0; i < doubleListList.size(); i++) {
                            ArrayList<Double> doubleList2 = doubleListList.get(i);
                            array2[i] = new double[doubleList2.size()];
                            for (int j = 0; j < doubleList2.size(); j++) {
                                array2[i][j] = doubleList2.get(j);
                            }
                        }
                        }*/
                        double[][] array2 = (double[][]) resultValue;
                        if (stScheduleModelOutDTO.getResultPort() < array2.length && stScheduleModelOutDTO.getResultIndex() < array2[stScheduleModelOutDTO.getResultPort()].length) {
                            value = array2[stScheduleModelOutDTO.getResultPort()][stScheduleModelOutDTO.getResultIndex()];
                        } else {