renaming (pool size != max pool size)
[e-mobility-charging-stations-simulator.git] / src / utils / Configuration.ts
index ca98427eb87cee39c22c6a720e5998599e2fbabb..eb1992b3dc33a75a4a063897dfcb48da93ec1132 100644 (file)
@@ -41,8 +41,12 @@ export default class Configuration {
     return Configuration.getConfig().useWorkerPool;
   }
 
-  static getWorkerPoolSize(): number {
-    return Configuration.getConfig().workerPoolSize;
+  static getWorkerMaxPoolSize(): number {
+    return Configuration.getConfig().workerMaxPoolSize;
+  }
+
+  static getChargingStationsPerWorker(): number {
+    return Configuration.objectHasOwnProperty(Configuration.getConfig(), 'chargingStationsPerWorker') ? Configuration.getConfig().chargingStationsPerWorker : 1;
   }
 
   static getLogConsole(): boolean {