From: Jérôme Benoit Date: Thu, 12 Nov 2020 10:21:48 +0000 (+0100) Subject: Last configuration tunable rename. X-Git-Tag: v1.0.1-0~203 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=524d9cb333fd690edb702c88517f79b3f3d6813e;p=e-mobility-charging-stations-simulator.git Last configuration tunable rename. Signed-off-by: Jérôme Benoit --- diff --git a/docker/config.json b/docker/config.json index 277f68f1..f5b36a17 100644 --- a/docker/config.json +++ b/docker/config.json @@ -5,7 +5,7 @@ "statisticsDisplayInterval": 60, "autoReconnectTimeout": 10, "autoReconnectMaxRetries": 10, - "distributeStationToTenantEqually": true, + "distributeStationsToTenantsEqually": true, "useWorkerPool": false, "workerPoolSize": 16, "stationTemplateURLs": [ diff --git a/src/assets/config-template.json b/src/assets/config-template.json index b3085a7c..7359a304 100644 --- a/src/assets/config-template.json +++ b/src/assets/config-template.json @@ -5,7 +5,7 @@ "autoReconnectTimeout": 10, "autoReconnectMaxRetries": 10, "statisticsDisplayInterval": 60, - "distributeStationToTenantEqually": true, + "distributeStationsToTenantsEqually": true, "useWorkerPool": false, "workerPoolSize": 16, "stationTemplateURLs": [ diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 56738bb6..d783b281 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -309,7 +309,7 @@ export default class ChargingStation { const supervisionUrls = Utils.cloneObject(this._stationInfo.supervisionURL ? this._stationInfo.supervisionURL : Configuration.getSupervisionURLs()) as string | string[]; let indexUrl = 0; if (!Utils.isEmptyArray(supervisionUrls)) { - if (Configuration.getDistributeStationToTenantEqually()) { + if (Configuration.getDistributeStationsToTenantsEqually()) { indexUrl = this._index % supervisionUrls.length; } else { // Get a random url diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 3f51cb85..0570531d 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -9,7 +9,7 @@ export default interface ConfigurationData { statisticsDisplayInterval?: number; autoReconnectTimeout?: number; autoReconnectMaxRetries?: number; - distributeStationToTenantEqually?: boolean; + distributeStationsToTenantsEqually?: boolean; useWorkerPool?: boolean; workerPoolSize?: number; logFormat?: string; diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index ab48cf31..9492bb9b 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -67,7 +67,7 @@ export default class Configuration { return Configuration.getConfig().supervisionURLs; } - static getDistributeStationToTenantEqually(): boolean { - return Utils.objectHasOwnProperty(Configuration.getConfig(), 'distributeStationToTenantEqually') ? Configuration.getConfig().distributeStationToTenantEqually : true; + static getDistributeStationsToTenantsEqually(): boolean { + return Utils.objectHasOwnProperty(Configuration.getConfig(), 'distributeStationsToTenantsEqually') ? Configuration.getConfig().distributeStationsToTenantsEqually : true; } }