X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=44aea77fcaadd3aa67dc256c0c8c32195dc45fc2;hb=f3ce50425a033b21ba4b9195a76364792e139024;hp=744e7414a497cf99d83e275a32fc9fe30a8a9dab;hpb=6ad94506a9cdb3929ca7ca97854a2b20412961cd;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 744e7414..44aea77f 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,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;