README.md: add more documentation for cs template
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationTemplate.ts
index 744e7414a497cf99d83e275a32fc9fe30a8a9dab..44aea77fcaadd3aa67dc256c0c8c32195dc45fc2 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 {
+export enum CurrentOutType {
   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,22 +27,26 @@ 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;
-  powerOutType?: PowerOutType;
+  powerUnit: PowerUnits;
+  currentOutType?: CurrentOutType;
   numberOfPhases?: number;
   numberOfConnectors?: number | number[];
   useConnectorId0?: boolean;