maxDelayBetweenTwoTransactions: number
probabilityOfStart: number
stopAfterHours: number
+ stopAbsoluteDuration: boolean
stopOnConnectionFailure: boolean
requireAuthorize?: boolean
idTagDistribution?: 'random' | 'round-robin' | 'connector-affinity'
private setStartConnectorStatus (connectorId: number): void {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.connectorsStatus.get(connectorId)!.startDate = new Date()
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- if (!isValidTime(this.connectorsStatus.get(connectorId)!.stopDate)) {
+ if (
+ this.chargingStation.getAutomaticTransactionGeneratorConfiguration()?.stopAbsoluteDuration ===
+ false ||
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ !isValidTime(this.connectorsStatus.get(connectorId)!.stopDate)
+ ) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.connectorsStatus.get(connectorId)!.stopDate = new Date(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
maxDelayBetweenTwoTransactions: number
probabilityOfStart: number
stopAfterHours: number
+ stopAbsoluteDuration: boolean
stopOnConnectionFailure: boolean
requireAuthorize?: boolean
idTagDistribution?: IdTagDistribution
maxDelayBetweenTwoTransactions: 30,
probabilityOfStart: 1,
stopAfterHours: 0.25,
+ stopAbsoluteDuration: false,
stopOnConnectionFailure: true
})