README.md: document some more configuration tunable.
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationTemplate.ts
index 59eebc40c805ebfc7ba609c68c92cbae5278f599..f4a175d1a9bf601f401e9824eaebf3ad95d30179 100644 (file)
@@ -1,16 +1,24 @@
 import ChargingStationConfiguration from './ChargingStationConfiguration';
 import Connectors from './Connectors';
+import { OCPPProtocol } from './ocpp/OCPPProtocol';
+import { OCPPVersion } from './ocpp/OCPPVersion';
 
 export enum PowerOutType {
   AC = 'AC',
   DC = 'DC',
 }
 
-export enum PowerUnit {
+export enum PowerUnits {
   WATT = 'W',
   KILO_WATT = 'kW',
 }
 
+export enum VoltageOut {
+  VOLTAGE_110 = 110,
+  VOLTAGE_230 = 230,
+  VOLTAGE_400 = 400
+}
+
 export interface AutomaticTransactionGenerator {
   enable: boolean;
   minDuration: number;
@@ -19,21 +27,25 @@ export interface AutomaticTransactionGenerator {
   maxDelayBetweenTwoTransactions: number;
   probabilityOfStart: number;
   stopAfterHours: number;
-  stopOnConnectionFailure: boolean
+  stopOnConnectionFailure: boolean;
+  requireAuthorize: boolean
 }
 
 export default interface ChargingStationTemplate {
   supervisionURL?: string;
+  ocppVersion?: OCPPVersion;
+  ocppProtocol?: OCPPProtocol;
   authorizationFile?: string;
   baseName: string;
-  fixedName?: string;
+  nameSuffix?: string;
+  fixedName?: boolean;
   chargePointModel: string;
   chargePointVendor: string;
   chargeBoxSerialNumberPrefix?: string;
   firmwareVersion?: string;
   power: number | number[];
   powerSharedByConnectors?: boolean;
-  powerUnit: PowerUnit;
+  powerUnits: PowerUnits;
   powerOutType?: PowerOutType;
   numberOfPhases?: number;
   numberOfConnectors?: number | number[];
@@ -43,6 +55,7 @@ export default interface ChargingStationTemplate {
   connectionTimeout?: number;
   autoReconnectMaxRetries?: number;
   reconnectExponentialDelay?: boolean;
+  registrationMaxRetries?: number;
   enableStatistics?: boolean;
   voltageOut?: number;
   Configuration?: ChargingStationConfiguration;