repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify DC current output type handling.
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
AutomaticTransactionGenerator.js
diff --git
a/src/charging-station/AutomaticTransactionGenerator.js
b/src/charging-station/AutomaticTransactionGenerator.js
index 23b247d353b1a37a1c1f2bb041069464921a5864..1551a7140348993a0c1cd927a128c97efa6e5839 100644
(file)
--- a/
src/charging-station/AutomaticTransactionGenerator.js
+++ b/
src/charging-station/AutomaticTransactionGenerator.js
@@
-1,9
+1,10
@@
-const logger = require('../utils/Logger');
-const Constants = require('../utils/Constants');
-const Utils = require('../utils/Utils');
-const {performance, PerformanceObserver} = require('perf_hooks');
+import {PerformanceObserver, performance} from 'perf_hooks';
-class AutomaticTransactionGenerator {
+import Constants from '../utils/Constants.js';
+import Utils from '../utils/Utils.js';
+import logger from '../utils/Logger.js';
+
+export default class AutomaticTransactionGenerator {
constructor(chargingStation) {
this._chargingStation = chargingStation;
this._timeToStop = true;
constructor(chargingStation) {
this._chargingStation = chargingStation;
this._timeToStop = true;
@@
-121,5
+122,3
@@
class AutomaticTransactionGenerator {
await self._chargingStation.sendStopTransaction(self._chargingStation.getConnector(connectorId).transactionId);
}
}
await self._chargingStation.sendStopTransaction(self._chargingStation.getConnector(connectorId).transactionId);
}
}
-
-module.exports = AutomaticTransactionGenerator;