-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: LE SAULNIER Kevin <[email protected]>
- Loading branch information
LE SAULNIER Kevin
committed
Feb 13, 2024
1 parent
8aa1ac2
commit 167acac
Showing
6 changed files
with
75 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
281 changes: 0 additions & 281 deletions
281
src/components/network-map-viewer/network/map-equipments-base.js
This file was deleted.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
src/components/network-map-viewer/network/map-equipments.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/** | ||
* Copyright (c) 2022, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
export class MapEquipments { | ||
substations = []; | ||
|
||
substationsById = new Map(); | ||
|
||
lines = []; | ||
|
||
linesById = new Map(); | ||
|
||
hvdcLines = []; | ||
|
||
hvdcLinesById = new Map(); | ||
|
||
voltageLevels = []; | ||
|
||
voltageLevelsById = new Map(); | ||
|
||
nominalVoltages = []; | ||
|
||
intlRef = undefined; | ||
|
||
constructor() { | ||
// dummy constructor, to make children classes constructors happy | ||
} | ||
|
||
getVoltageLevels() { | ||
return this.voltageLevels; | ||
} | ||
|
||
getVoltageLevel(id) { | ||
return this.voltageLevelsById.get(id); | ||
} | ||
|
||
getSubstations() { | ||
return this.substations; | ||
} | ||
|
||
getSubstation(id) { | ||
return this.substationsById.get(id); | ||
} | ||
|
||
getNominalVoltages() { | ||
return this.nominalVoltages; | ||
} | ||
|
||
getLines() { | ||
return this.lines; | ||
} | ||
|
||
getLine(id) { | ||
return this.linesById.get(id); | ||
} | ||
|
||
getHvdcLines() { | ||
return this.hvdcLines; | ||
} | ||
|
||
getHvdcLine(id) { | ||
return this.hvdcLinesById.get(id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.