X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=13d8e75b07a6d1755e67584201ede4dcfd279633;hb=4a1857a25fbcc203def0c0b1a6c5ebcb19602fe6;hp=9af61810866a8bc556fa4ef54946a290533b6757;hpb=32a1eb7ab66964e5beb8b79082782761329e0705;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 9af61810..13d8e75b 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -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,27 @@ 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; + voltageOut?: number; numberOfPhases?: number; numberOfConnectors?: number | number[]; useConnectorId0?: boolean; @@ -42,10 +55,12 @@ export default interface ChargingStationTemplate { resetTime?: number; connectionTimeout?: number; autoReconnectMaxRetries?: number; - registrationMaxRetries?: number; reconnectExponentialDelay?: boolean; + registrationMaxRetries?: number; enableStatistics?: boolean; - voltageOut?: number; + beginEndMeterValues?: boolean; + outOfOrderEndMeterValues?: boolean; + meteringPerTransaction?: boolean; Configuration?: ChargingStationConfiguration; AutomaticTransactionGenerator: AutomaticTransactionGenerator; Connectors: Connectors;