|
@@ -1126,14 +1126,15 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
PointInfo turbineZt = calcTurbineDizt2(wtUcPis.get(wtId), latest, start, end, 60);
|
|
|
PointInfo turbineAizt = calcTurbineAizt2(aiztMap.get(wtId), collectAi, start, end, 60);
|
|
|
Map<Double, Double> fit = new TreeMap<>();
|
|
|
+ double capacity = 2000;
|
|
|
if (turbineZt != null) {
|
|
|
- double capacity = map.get(turbineZt.getSpare()).getPowerProduction();
|
|
|
+ capacity = map.get(turbineZt.getSpare()).getPowerProduction();
|
|
|
fit = dataProcessAndFit(ef, glInfo, turbineZt, CalcCache.bzgl.get(turbineZt.getSpare()), capacity);
|
|
|
|
|
|
turbineZt.setPointDatas(null);
|
|
|
}
|
|
|
if (turbineAizt != null) {
|
|
|
- double capacity = map.get(turbineAizt.getSpare()).getPowerProduction();
|
|
|
+ capacity = map.get(turbineAizt.getSpare()).getPowerProduction();
|
|
|
fit = dataProcessAndFit(ef, glInfo, turbineAizt, CalcCache.bzgl.get(turbineAizt.getSpare()), capacity);
|
|
|
|
|
|
turbineAizt.setPointDatas(null);
|
|
@@ -1144,6 +1145,30 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ List<Double> listDouble = new ArrayList<>();
|
|
|
+
|
|
|
+ if (!fit.isEmpty()) {
|
|
|
+ for (double key : fit.keySet()) {
|
|
|
+ Double v = fit.get(key);
|
|
|
+
|
|
|
+ if ((Math.abs(v - capacity) <= 10) && Math.abs(v - capacity) >= -10) {
|
|
|
+ listDouble.add(key);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ double agValue = 0;
|
|
|
+ if (!listDouble.isEmpty()) {
|
|
|
+ for (Double aDouble : listDouble) {
|
|
|
+ agValue += aDouble;
|
|
|
+ }
|
|
|
+ agValue = agValue / listDouble.size();
|
|
|
+ }
|
|
|
+
|
|
|
+ System.out.println("wtId:" + wtId + "agValue平均额定风速:"+agValue );
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|