Package com.powsybl.sld.layout
Class TopologyCalculation
- java.lang.Object
-
- com.powsybl.sld.layout.TopologyCalculation
-
public final class TopologyCalculation extends Object
Visit the graph to identifies the connected sets of nodes- Author:
- Benoit Jeanson
-
-
Constructor Summary
Constructors Constructor Description TopologyCalculation()
TopologyCalculation(Predicate<Node> extremityCriteria)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TopologicallyConnectedNodesSet>
findConnectedNodeSets(VoltageLevelGraph graph)
Analyses the graph to partition it into TopologicallyConnectedNodeSets.List<TopologicallyConnectedNodesSet>
findConnectedNodeSets(VoltageLevelGraph graph, Predicate<TopologicallyConnectedNodesSet> filter)
Analyses the graph to find the TopologicallyConnectedNodesSet corresponding to given predicate.
-
-
-
Method Detail
-
findConnectedNodeSets
public List<TopologicallyConnectedNodesSet> findConnectedNodeSets(VoltageLevelGraph graph)
Analyses the graph to partition it into TopologicallyConnectedNodeSets.- Parameters:
graph
- the graph to be analysed- Returns:
- a list of TopologicallyConnectedNodeSets
-
findConnectedNodeSets
public List<TopologicallyConnectedNodesSet> findConnectedNodeSets(VoltageLevelGraph graph, Predicate<TopologicallyConnectedNodesSet> filter)
Analyses the graph to find the TopologicallyConnectedNodesSet corresponding to given predicate.- Parameters:
graph
- the graph to be analysedfilter
- the filter applied to the all TopologicallyConnectedNodesSet of the given graph- Returns:
- a list of TopologicallyConnectedNodeSets
-
-