Consistent naming for CS template enums
[e-mobility-charging-stations-simulator.git] / src / utils / Constants.ts
index 706ef41cc3291189c7e2ffa148a14523167c832c..350170aacd1e3ca94f8425f31aecc35b14dee9c1 100644 (file)
@@ -1,4 +1,6 @@
-import { AvailabilityStatus, ChargingProfileStatus, ClearChargingProfileStatus, ConfigurationStatus, DefaultStatus, UnlockStatus } from '../types/ocpp/1.6/Responses';
+import { AvailabilityStatus, ChargingProfileStatus, ClearChargingProfileStatus, ConfigurationStatus, DefaultStatus, UnlockStatus } from '../types/ocpp/Responses';
+
+import { MeterValueMeasurand } from '../types/ocpp/MeterValues';
 
 export default class Constants {
   static readonly ENTITY_CHARGING_STATION = 'ChargingStation';
@@ -36,4 +38,11 @@ export default class Constants {
   static readonly DEFAULT_WORKER_POOL_MIN_SIZE = 4;
   static readonly DEFAULT_WORKER_POOL_MAX_SIZE = 16;
   static readonly DEFAULT_CHARGING_STATIONS_PER_WORKER = 1;
+
+  static readonly DEFAULT_CONNECTION_TIMEOUT = 30;
+
+  static readonly SUPPORTED_MEASURANDS = Object.freeze([MeterValueMeasurand.STATE_OF_CHARGE, MeterValueMeasurand.VOLTAGE,
+    MeterValueMeasurand.POWER_ACTIVE_IMPORT, MeterValueMeasurand.CURRENT_IMPORT, MeterValueMeasurand.ENERGY_ACTIVE_IMPORT_REGISTER]);
+
+  static readonly DEFAULT_FLUCTUATION_PERCENT = 5;
 }