X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConstants.ts;h=93c5bd9f412cf7b1e82b35aa543ce1bcf3144ee0;hb=f5b213eb5dfc57ee371cc828b64a5cb49928a985;hp=30327b6a578bdd0efac7448f0d4645af7d257963;hpb=1832a9868aa1ce376d7a408afa3c01c0f44a5cb3;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 30327b6a..93c5bd9f 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -24,7 +24,7 @@ export class Constants { static readonly SEMVER_PATTERN = '^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$'; - static readonly DEFAULT_CIRCULAR_BUFFER_CAPACITY = 1024; + static readonly DEFAULT_CIRCULAR_BUFFER_CAPACITY = 4096; static readonly DEFAULT_HASH_ALGORITHM = 'sha384'; @@ -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'; @@ -49,12 +50,12 @@ export class Constants { static readonly STOP_SIMULATOR_TIMEOUT = 120000; // Ms - static readonly EMPTY_FREEZED_OBJECT = Object.freeze({}); + static readonly EMPTY_FROZEN_OBJECT = Object.freeze({}); static readonly EMPTY_FUNCTION = Object.freeze(() => { /* This is intentional */ }); - static readonly DEFAULT_RESERVATION_EXPIRATION_OBSERVATION_INTERVAL = 5000; // Ms + static readonly DEFAULT_RESERVATION_EXPIRATION_INTERVAL = 60000; // Ms private constructor() { // This is intentional