-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation... and refactoring (#517)
* Major dev documentation update * Refactor: Simplify LegBusSet * Refactor: renaming of LegBusSet/HorizontalBusLane/LBSCluster/VBSClusterSide to VerticalBusSet/HorizontalBusList/BSCluster/BSClusterSide * Refactor: renaming PositionFromExtension into PositionPredefined * Refactor: create new packages layout.position, layout.position.clustering and layout.position.predefined: new packages to separate the PositionFinder implementations from the rest of the layout package * Refactor: Clarify PositionFinder interface by transferring some of particulars methods to AbstractPositionFinder * Refactor: HorizontalBusListManager functional interface is now directly within PositionPredefined and PositionByClustering which should reduce the complexity... * Refactor: Remove cyclic dependency between Links and BSClusterSide.
- Loading branch information
1 parent
1c56723
commit 6b08e09
Showing
55 changed files
with
4,331 additions
and
3,618 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
43 changes: 43 additions & 0 deletions
43
single-line-diagram/single-line-diagram-core/doc/BSCluster.adoc
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,43 @@ | ||
= `BSCluster` | ||
|
||
== Definition | ||
`BSCluster` (`BusNode` Sets Cluster) are used by implementations of `PositionFinder`. | ||
|
||
**** | ||
It is composed of 2 kinds of sets of `BusNode` Sets that present an horizontal and a vertical view of the structure of a `VoltageLevel`: | ||
- `List<VerticalBusSet> verticalBusSets` see link:VerticalBusSet.adoc[VerticalBusSet] | ||
- `List<HorizontalBusList> horizontalBusLists` see link:HorizontalBusList.adoc[HorizontalBusList] | ||
**** | ||
|
||
|
||
[IMPORTANT] | ||
==== | ||
`VerticalBusSet` is a `Set` as it is important to have no duplicate `BusNodes` whereas, it is possible to have duplicate `BusNodes` in the `HorizontalBusList`. | ||
The rules are as follow: | ||
- for `VerticalBusSet`, a `BusNode` may appear: | ||
* in multiple `VerticalBusSets`, | ||
* but only once in a `VerticalBusSet`; | ||
- for `HorizontalBusList`, a `BusNode` may appear: | ||
* multiple times in a `HorizontalBusList`, in that case the occurences shall have contiguous indexes, | ||
* shall appear only in one single `HorizontalBusList`. | ||
==== | ||
|
||
The goal is at the end to be able to merge the `VoltageLevel` into a single `BSCluster` having to this kind of pattern: | ||
|
||
image::images/BSClusterFinal.svg[align="center"] | ||
|
||
== Key methods | ||
|
||
=== Build | ||
A `BSCluster` is initiated with one `VerticalBusSet` that: | ||
|
||
- is put as is as first element `verticalBusSets`, | ||
- inititiates one `HorizontalBusList` for each of its `BusNode` | ||
|
||
Each `PositionFinder` using `BSCluster` implementation provides a strategy to merge them together in order to get a single `BSCluster`. | ||
|
||
=== Merge | ||
The merge of 2 `BSClusters` is done by calling the `merge` method giving it a `HorizontalBusListManager`. Indeed if the merging of the `verticalBusSets` is just a concatenation, the merging of the `horizontalBusLists` differs from one `PositionFinder` to another. |
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
1 change: 1 addition & 0 deletions
1
single-line-diagram/single-line-diagram-core/doc/HorizontalBusList.adoc
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 @@ | ||
= `HorizontalBusList` |
Oops, something went wrong.