README.md: add more documentation for cs template
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationTemplate.ts
CommitLineData
9ac86a7e
JB
1import ChargingStationConfiguration from './ChargingStationConfiguration';
2import Connectors from './Connectors';
c0560973
JB
3import { OCPPProtocol } from './ocpp/OCPPProtocol';
4import { OCPPVersion } from './ocpp/OCPPVersion';
9ac86a7e 5
7decf1b6 6export enum CurrentOutType {
9ac86a7e
JB
7 AC = 'AC',
8 DC = 'DC',
9}
10
a02da55f 11export enum PowerUnits {
9ac86a7e
JB
12 WATT = 'W',
13 KILO_WATT = 'kW',
14}
15
84d4e562
JB
16export enum VoltageOut {
17 VOLTAGE_110 = 110,
18 VOLTAGE_230 = 230,
19 VOLTAGE_400 = 400
20}
21
9ac86a7e
JB
22export interface AutomaticTransactionGenerator {
23 enable: boolean;
24 minDuration: number;
25 maxDuration: number;
26 minDelayBetweenTwoTransactions: number;
27 maxDelayBetweenTwoTransactions: number;
28 probabilityOfStart: number;
29 stopAfterHours: number;
5fdab605
JB
30 stopOnConnectionFailure: boolean;
31 requireAuthorize: boolean
9ac86a7e
JB
32}
33
34export default interface ChargingStationTemplate {
35 supervisionURL?: string;
c0560973
JB
36 ocppVersion?: OCPPVersion;
37 ocppProtocol?: OCPPProtocol;
9ac86a7e
JB
38 authorizationFile?: string;
39 baseName: string;
5fdab605 40 nameSuffix?: string;
a02da55f 41 fixedName?: boolean;
9ac86a7e
JB
42 chargePointModel: string;
43 chargePointVendor: string;
44 chargeBoxSerialNumberPrefix?: string;
45 firmwareVersion?: string;
46 power: number | number[];
47 powerSharedByConnectors?: boolean;
ef16e252 48 powerUnit: PowerUnits;
7decf1b6 49 currentOutType?: CurrentOutType;
9ac86a7e
JB
50 numberOfPhases?: number;
51 numberOfConnectors?: number | number[];
52 useConnectorId0?: boolean;
53 randomConnectors?: boolean;
54 resetTime?: number;
3574dfd3
JB
55 connectionTimeout?: number;
56 autoReconnectMaxRetries?: number;
032d6efc 57 reconnectExponentialDelay?: boolean;
6ad94506 58 registrationMaxRetries?: number;
9ac86a7e
JB
59 enableStatistics?: boolean;
60 voltageOut?: number;
61 Configuration?: ChargingStationConfiguration;
62 AutomaticTransactionGenerator: AutomaticTransactionGenerator;
63 Connectors: Connectors;
64}