X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConstants.ts;h=8ab45e63e1293a9e0ccbd662a0f3e23deb0f004c;hb=3fb26594ef01e3f443bcc0bbf81401c6e38fdc01;hp=a5cd81502d230e447a96efb4084b66ab59e2af1c;hpb=86b46b496311fcb6ee26c0d639b6f3c642042c2b;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index a5cd8150..8ab45e63 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -36,6 +36,7 @@ export class Constants { static readonly DEFAULT_FLUCTUATION_PERCENT = 5; + static readonly DEFAULT_PERFORMANCE_DIRECTORY = 'performance'; static readonly DEFAULT_PERFORMANCE_RECORDS_FILENAME = 'performanceRecords.json'; static readonly DEFAULT_PERFORMANCE_RECORDS_DB_NAME = 'e-mobility-charging-stations-simulator'; static readonly PERFORMANCE_RECORDS_TABLE = 'performance_records'; @@ -47,11 +48,15 @@ export class Constants { static readonly MAX_RANDOM_INTEGER = 281474976710654; + static readonly STOP_SIMULATOR_TIMEOUT = 120000; // Ms + static readonly EMPTY_FREEZED_OBJECT = Object.freeze({}); static readonly EMPTY_FUNCTION = Object.freeze(() => { /* This is intentional */ }); + static readonly DEFAULT_RESERVATION_EXPIRATION_OBSERVATION_INTERVAL = 60000; // Ms + private constructor() { // This is intentional }