Package com.powsybl.sld.model
Class LegParralelBlock
- java.lang.Object
-
- com.powsybl.sld.model.AbstractBlock
-
- com.powsybl.sld.model.AbstractComposedBlock
-
- com.powsybl.sld.model.LegParralelBlock
-
- All Implemented Interfaces:
Block
,ComposedBlock
,LegBlock
public class LegParralelBlock extends AbstractComposedBlock implements LegBlock
- Author:
- Benoit Jeanson
, Nicolas Duchene, Geoffroy Jamgotchian
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.sld.model.Block
Block.Extremity, Block.Type
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.model.AbstractBlock
type
-
-
Constructor Summary
Constructors Constructor Description LegParralelBlock(List<Block> subBlocks, Cell cell, boolean allowMerge)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculateHeight(Set<Node> encounteredNodes, LayoutParameters layoutParameters)
void
coordHorizontalCase(LayoutParameters layoutParam)
void
coordVerticalCase(LayoutParameters layoutParam)
List<BusNode>
getBusNodes()
void
sizing()
Calculate maximal pxWidth that layout.block can use in a cell without modifying root pxWidth-
Methods inherited from class com.powsybl.sld.model.AbstractComposedBlock
findBlockEmbeddingNode, getExtremityNode, getGraph, getSegments, getSubBlocks, isEmbeddingNodeType, reverseBlock, setOrientation, setOrientation, toString, writeJsonContent
-
Methods inherited from class com.powsybl.sld.model.AbstractBlock
calculateCoord, calculateRootCoord, calculateRootHeight, getCardinality, getCardinality, getCell, getCoord, getEndingNode, getExtremity, getOrientation, getParentBlock, getPosition, getStartingNode, getType, setCardinality, setCell, setParentBlock, writeJson
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.powsybl.sld.model.Block
calculateCoord, calculateHeight, calculateRootCoord, calculateRootHeight, coordVerticalCase, findBlockEmbeddingNode, getCardinality, getCardinality, getCell, getCoord, getEndingNode, getExtremity, getExtremityNode, getGraph, getOrder, getOrientation, getPosition, getStartingNode, getType, isEmbeddingNodeType, reverseBlock, setCardinality, setCell, setOrientation, setOrientation, setParentBlock, writeJson
-
Methods inherited from interface com.powsybl.sld.model.LegBlock
getLegNode
-
-
-
-
Method Detail
-
getBusNodes
public List<BusNode> getBusNodes()
- Specified by:
getBusNodes
in interfaceLegBlock
-
sizing
public void sizing()
Description copied from interface:Block
Calculate maximal pxWidth that layout.block can use in a cell without modifying root pxWidth
-
coordHorizontalCase
public void coordHorizontalCase(LayoutParameters layoutParam)
- Specified by:
coordHorizontalCase
in interfaceBlock
-
coordVerticalCase
public void coordVerticalCase(LayoutParameters layoutParam)
-
calculateHeight
public double calculateHeight(Set<Node> encounteredNodes, LayoutParameters layoutParameters)
-
-