X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FElectricUtils.ts;h=7b91344296009c4e10c093774a8cdb905eb33f2c;hb=a82d03296ad3232474c9f769e02c840bb87d0178;hp=5adf4bc783cdbfe09cde884336704b082e4b0ae8;hpb=cb31c873ed2fd050266247f70bc31178610dffcb;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/ElectricUtils.ts b/src/utils/ElectricUtils.ts index 5adf4bc7..7b913442 100644 --- a/src/utils/ElectricUtils.ts +++ b/src/utils/ElectricUtils.ts @@ -1,3 +1,5 @@ +// Copyright Jerome Benoit. 2021-2023. All Rights Reserved. + /** * Rationale: https://wiki.piment-noir.org/doku.php/en:cs:modelling_multi-phased_electrical_system_interconnexion */ @@ -6,6 +8,10 @@ * Targeted to AC related values calculation. */ export class ACElectricUtils { + private constructor() { + // This is intentional + } + static amperageTotal(nbOfPhases: number, Iph: number): number { return nbOfPhases * Iph; } @@ -44,6 +50,10 @@ export class ACElectricUtils { * Targeted to DC related values calculation. */ export class DCElectricUtils { + private constructor() { + // This is intentional + } + static power(V: number, I: number): number { return V * I; }