Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
this._connectors[index] = connectorsConfig[randConnectorID];
}
}
+ // Avoid duplication of connectors related information
+ delete this._stationInfo.Connectors;
// Initialize transaction attributes on connectors
for (const connector in this._connectors) {
if (!this._connectors[connector].transactionStarted) {
return powerDivider;
}
- _getConnectorFromTemplate(number) {
- return this._stationInfo.Connectors[number];
- }
-
_getConnector(number) {
return this._connectors[number];
}
}
if (numStationsTotal === 0) {
console.log('No charging station template enabled in configuration, exiting');
+ } else {
+ console.log('Charging station simulator started with ' + numStationsTotal + ' charging stations');
}
} catch (error) {
// eslint-disable-next-line no-console