X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=b3b05b669099b40167f8a4bfbe0a0a7d8eafdee5;hb=59cd654d2ef66d3473bab456410299eb0106e275;hp=255fb8d0563fe83be9f1366af79745b73d4e01d2;hpb=9ac86a7ea04eb1155c2a720b36f6bf33ba336767;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 255fb8d0..b3b05b66 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -1,5 +1,7 @@ import ChargingStationConfiguration from './ChargingStationConfiguration'; import Connectors from './Connectors'; +import { OCPPProtocol } from './ocpp/OCPPProtocol'; +import { OCPPVersion } from './ocpp/OCPPVersion'; export enum PowerOutType { AC = 'AC', @@ -11,6 +13,12 @@ export enum PowerUnit { KILO_WATT = 'kW', } +export enum VoltageOut { + VOLTAGE_110 = 110, + VOLTAGE_230 = 230, + VOLTAGE_400 = 400 +} + export interface AutomaticTransactionGenerator { enable: boolean; minDuration: number; @@ -19,13 +27,17 @@ 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; + nameSuffix?: string; fixedName?: string; chargePointModel: string; chargePointVendor: string; @@ -40,6 +52,10 @@ export default interface ChargingStationTemplate { useConnectorId0?: boolean; randomConnectors?: boolean; resetTime?: number; + connectionTimeout?: number; + autoReconnectMaxRetries?: number; + reconnectExponentialDelay?: boolean; + registrationMaxRetries?: number; enableStatistics?: boolean; voltageOut?: number; Configuration?: ChargingStationConfiguration;