X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerAbstract.ts;h=fa28597c55784d585fcec7231f0aea69e298bee1;hb=2f79b4478e28ed922581029adf341210da6149b4;hp=715778161af13b59bed90aa2805b0120451c64b8;hpb=101196c654ddcd686e4992f58864f591ceea6c00;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerAbstract.ts b/src/worker/WorkerAbstract.ts index 71577816..fa28597c 100644 --- a/src/worker/WorkerAbstract.ts +++ b/src/worker/WorkerAbstract.ts @@ -4,14 +4,14 @@ import { WorkerData } from '../types/Worker'; export default abstract class WorkerAbstract { protected readonly workerScript: string; protected readonly workerStartDelay: number; - public abstract size: number; - public abstract maxElementsPerWorker: number | null; + public abstract readonly size: number; + public abstract readonly maxElementsPerWorker: number | null; /** * `WorkerAbstract` constructor. * - * @param {string} workerScript - * @param {number} workerStartDelay + * @param workerScript + * @param workerStartDelay */ constructor(workerScript: string, workerStartDelay: number = Constants.WORKER_START_DELAY) { this.workerScript = workerScript;