X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConstants.ts;h=433f95e032c80b43f7599404017f4d980529af63;hb=6cd85def67fcc51dfa978127ec4a7a776427b135;hp=da41eaaf9188d951c235e1e299ace0ff5d3874e3;hpb=3fa0f0edb5e3bb9fff2b343fb4ad7fc6c7c8df34;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index da41eaaf..433f95e0 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -90,11 +90,22 @@ export default class Constants { static readonly CHARGING_STATION_DEFAULT_RESET_TIME = 60000; // Ms static readonly CHARGING_STATION_ATG_INITIALIZATION_TIME = 1000; // Ms static readonly CHARGING_STATION_ATG_DEFAULT_STOP_AFTER_HOURS = 0.25; // Hours + static readonly CHARGING_STATION_CONFIGURATION_SECTIONS = Object.freeze([ + 'stationInfo', + 'configurationKey', + 'configurationHash', + ]); + + static readonly DEFAULT_CIRCULAR_BUFFER_CAPACITY = Number.MAX_SAFE_INTEGER; + + static readonly DEFAULT_HASH_ALGORITHM = 'sha384'; static readonly DEFAULT_IDTAG = '00000000'; static readonly DEFAULT_CONNECTION_TIMEOUT = 30; + static readonly DEFAULT_LOG_STATISTICS_INTERVAL = 60; // Seconds + static readonly DEFAULT_HEARTBEAT_INTERVAL = 60000; // Ms static readonly SUPPORTED_MEASURANDS = Object.freeze([ @@ -107,9 +118,8 @@ export default class Constants { static readonly DEFAULT_FLUCTUATION_PERCENT = 5; - static readonly PERFORMANCE_RECORDS_FILETYPE = 'Performance records'; static readonly DEFAULT_PERFORMANCE_RECORDS_FILENAME = 'performanceRecords.json'; - static readonly DEFAULT_PERFORMANCE_RECORDS_DB_NAME = 'charging-stations-simulator'; + static readonly DEFAULT_PERFORMANCE_RECORDS_DB_NAME = 'e-mobility-charging-stations-simulator'; static readonly PERFORMANCE_RECORDS_TABLE = 'performance_records'; static readonly DEFAULT_UI_WEBSOCKET_SERVER_HOST = 'localhost';