Browse Source

Merge branch 'updateInProgress' into Greedy

TomTroppmann 3 years ago
parent
commit
e3ac947a3d
1 changed files with 2 additions and 1 deletions
  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);
 	}