X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcharging-station%2FChargingStationUtils.ts;h=efa8921c645707a293ecbd7a2b60dcb3de1d84c4;hb=910c3f0cae3d7e9a9fb82608c3a26df37ff19b29;hp=92ed040696f2e60f0d3e7e13a4ee624ee3bf4047;hpb=268a74bb051fcbbad532fd833f0d8fd2b33b6c64;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStationUtils.ts b/src/charging-station/ChargingStationUtils.ts index 92ed0406..efa8921c 100644 --- a/src/charging-station/ChargingStationUtils.ts +++ b/src/charging-station/ChargingStationUtils.ts @@ -4,7 +4,7 @@ import { fileURLToPath } from 'node:url'; import moment from 'moment'; -import type { ChargingStation } from './ChargingStation'; +import type { ChargingStation } from './internal'; import { BaseError } from '../exception'; import { AmpereUnits, @@ -23,11 +23,14 @@ import { RecurrencyKindType, Voltage, } from '../types'; -import { Configuration } from '../utils/Configuration'; -import { Constants } from '../utils/Constants'; -import { ACElectricUtils, DCElectricUtils } from '../utils/ElectricUtils'; -import { logger } from '../utils/Logger'; -import { Utils } from '../utils/Utils'; +import { + ACElectricUtils, + Configuration, + Constants, + DCElectricUtils, + Utils, + logger, +} from '../utils'; import { WorkerProcessType } from '../worker'; const moduleName = 'ChargingStationUtils'; @@ -191,13 +194,13 @@ export class ChargingStationUtils { } public static workerPoolInUse(): boolean { - return [WorkerProcessType.DYNAMIC_POOL, WorkerProcessType.STATIC_POOL].includes( + return [WorkerProcessType.dynamicPool, WorkerProcessType.staticPool].includes( Configuration.getWorker().processType ); } public static workerDynamicPoolInUse(): boolean { - return Configuration.getWorker().processType === WorkerProcessType.DYNAMIC_POOL; + return Configuration.getWorker().processType === WorkerProcessType.dynamicPool; } public static warnDeprecatedTemplateKey(