| | |
| | | } |
| | | 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 { |
| | |
| | | } |
| | | 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 { |