Performance statistics: add JSON file storage support.
[e-mobility-charging-stations-simulator.git] / src / utils / performance-storage / Storage.ts
1 import Statistics from '../../types/Statistics';
2 import { URL } from 'url';
3
4 export abstract class Storage {
5 protected storageURI: URL;
6 protected logPrefix: string;
7
8 constructor(storageURI: string, logPrefix: string) {
9 this.storageURI = new URL(storageURI);
10 this.logPrefix = logPrefix;
11 }
12
13 public abstract storePerformanceStatistics(performanceStatistics: Statistics): void;
14 }