X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=5b91d0d2dafcfe30de829e30bb950cfa33dc6cd4;hb=16b0d4e77d20b5f7004469f2206a0af1ee8984a5;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..5b91d0d2 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -1,16 +1,25 @@ import ChargingStationConfiguration from './ChargingStationConfiguration'; import Connectors from './Connectors'; +import { OCPPProtocol } from './ocpp/OCPPProtocol'; +import { OCPPVersion } from './ocpp/OCPPVersion'; -export enum PowerOutType { +export enum CurrentType { AC = 'AC', DC = 'DC', } -export enum PowerUnit { +export enum PowerUnits { WATT = 'W', KILO_WATT = 'kW', } +export enum Voltage { + VOLTAGE_110 = 110, + VOLTAGE_230 = 230, + VOLTAGE_400 = 400, + VOLTAGE_800 = 800 +} + export interface AutomaticTransactionGenerator { enable: boolean; minDuration: number; @@ -19,33 +28,46 @@ export interface AutomaticTransactionGenerator { maxDelayBetweenTwoTransactions: number; probabilityOfStart: number; stopAfterHours: number; - stopOnConnectionFailure: boolean + stopOnConnectionFailure: boolean; + requireAuthorize?: boolean } export default interface ChargingStationTemplate { supervisionURL?: string; + supervisionUser?: string; + supervisionPassword?: 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?: CurrentType; + voltageOut?: Voltage; numberOfPhases?: number; numberOfConnectors?: number | number[]; useConnectorId0?: boolean; randomConnectors?: boolean; resetTime?: number; - connectionTimeout?: number; + autoRegister: boolean; autoReconnectMaxRetries?: number; - registrationMaxRetries?: number; reconnectExponentialDelay?: boolean; + registrationMaxRetries?: number; enableStatistics?: boolean; - voltageOut?: number; + mayAuthorizeAtRemoteStart: boolean; + beginEndMeterValues?: boolean; + outOfOrderEndMeterValues?: boolean; + meteringPerTransaction?: boolean; + transactionDataMeterValues?: boolean; + mainVoltageMeterValues?: boolean; + phaseLineToLineVoltageMeterValues?: boolean; Configuration?: ChargingStationConfiguration; AutomaticTransactionGenerator: AutomaticTransactionGenerator; Connectors: Connectors;