X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FStationWorker.ts;h=84cb023b7334297d751f3bf51f7515223eac2575;hb=aa8cbc5c65e51e1d7c955186847b7105a292d42f;hp=20fb27ca04ae47a533f7109525f07a8e7bba1768;hpb=3340259a3cd75024ae3510433f4bf4232c8de7fb;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/StationWorker.ts b/src/charging-station/StationWorker.ts index 20fb27ca..84cb023b 100644 --- a/src/charging-station/StationWorker.ts +++ b/src/charging-station/StationWorker.ts @@ -19,7 +19,7 @@ if (Utils.workerPoolInUse()) { } /** - * + * Listen messages send by the main thread */ function addMessageListener(): void { parentPort.on('message', (message) => { @@ -30,7 +30,9 @@ function addMessageListener(): void { } /** - * @param data + * Create and start a charging station instance + * + * @param {StationWorkerData} data workerData */ function startChargingStation(data: StationWorkerData): void { const station = new ChargingStation(data.index, data.templateFile);