fix: untangle worker set message from application message
[e-mobility-charging-stations-simulator.git] / src / performance / storage / None.ts
1 // Copyright Jerome Benoit. 2021-2024. All Rights Reserved.
2
3 import type { Statistics } from '../../types/index.js'
4 import { Storage } from './Storage.js'
5
6 export class None extends Storage {
7 constructor () {
8 super('none://none', 'none')
9 }
10
11 public storePerformanceStatistics (performanceStatistics: Statistics): void {
12 this.setPerformanceStatistics(performanceStatistics)
13 }
14
15 public open (): void {
16 /** Intentionally empty */
17 }
18
19 public close (): void {
20 this.clearPerformanceStatistics()
21 }
22 }