瀏覽代碼

Merge branch 'updateInProgress' into Greedy

TomTroppmann 3 年之前
父節點
當前提交
e3ac947a3d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/ui/model/DecoratedNetwork.java

+ 2 - 1
src/ui/model/DecoratedNetwork.java

@@ -298,7 +298,8 @@ public class DecoratedNetwork {
 		
 		return supplierList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum)+
 				consumerList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum)+
-				consumerSelfSuppliedList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum);
+				consumerSelfSuppliedList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum)+
+				passivNoEnergyList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum);
 	}