refactor: throw error at simalator start/stop outside the main thread
[e-mobility-charging-stations-simulator.git] / src / utils / Constants.ts
index df1c879b7376ef41928c1e5921f077ddb0875adc..a5cd81502d230e447a96efb4084b66ab59e2af1c 100644 (file)
@@ -8,7 +8,6 @@ export class Constants {
   static readonly CHARGING_STATION_DEFAULT_RESET_TIME = 60000; // Ms
   static readonly CHARGING_STATION_ATG_INITIALIZATION_TIME = 1000; // Ms
 
-  static readonly DEFAULT_ATG_STOP_AFTER_HOURS = 0.25; // Hours
   static readonly DEFAULT_ATG_CONFIGURATION: AutomaticTransactionGeneratorConfiguration =
     Object.freeze({
       enable: false,
@@ -17,7 +16,7 @@ export class Constants {
       minDelayBetweenTwoTransactions: 15,
       maxDelayBetweenTwoTransactions: 30,
       probabilityOfStart: 1,
-      stopAfterHours: Constants.DEFAULT_ATG_STOP_AFTER_HOURS,
+      stopAfterHours: 0.25,
       stopOnConnectionFailure: true,
     });