repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Web UI: add one UT
[e-mobility-charging-stations-simulator.git]
/
src
/
utils
/
ElectricUtils.ts
diff --git
a/src/utils/ElectricUtils.ts
b/src/utils/ElectricUtils.ts
index 5adf4bc783cdbfe09cde884336704b082e4b0ae8..9f0c680ac890ed02e2b277776c63e66c3c7f9ea8 100644
(file)
--- a/
src/utils/ElectricUtils.ts
+++ b/
src/utils/ElectricUtils.ts
@@
-1,3
+1,5
@@
+// Copyright Jerome Benoit. 2021. All Rights Reserved.
+
/**
* Rationale: https://wiki.piment-noir.org/doku.php/en:cs:modelling_multi-phased_electrical_system_interconnexion
*/
/**
* 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 {
* Targeted to AC related values calculation.
*/
export class ACElectricUtils {
+ private constructor() {
+ // This is intentional
+ }
+
static amperageTotal(nbOfPhases: number, Iph: number): number {
return nbOfPhases * Iph;
}
static amperageTotal(nbOfPhases: number, Iph: number): number {
return nbOfPhases * Iph;
}