Package com.powsybl.sld.model
Class LegPrimaryBlock
- java.lang.Object
-
- com.powsybl.sld.model.AbstractBlock
-
- com.powsybl.sld.model.AbstractPrimaryBlock
-
- com.powsybl.sld.model.LegPrimaryBlock
-
- All Implemented Interfaces:
Block
,LegBlock
,PrimaryBlock
public class LegPrimaryBlock extends AbstractPrimaryBlock 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.AbstractPrimaryBlock
nodes
-
Fields inherited from class com.powsybl.sld.model.AbstractBlock
type
-
-
Constructor Summary
Constructors Constructor Description LegPrimaryBlock(List<Node> nodes, Cell cell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStackableBlock(LegPrimaryBlock block)
double
calculateHeight(Set<Node> encounteredNodes, LayoutParameters layoutParameters)
void
coordHorizontalCase(LayoutParameters layoutParam)
void
coordVerticalCase(LayoutParameters layoutParam)
BusNode
getBusNode()
List<BusNode>
getBusNodes()
List<LegPrimaryBlock>
getStackableBlocks()
void
reverseBlock()
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.AbstractPrimaryBlock
createPrimaryBlock, findBlockEmbeddingNode, getExtremityNode, getGraph, getNodes, isEmbeddingNodeType, 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, setOrientation, setOrientation, 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, calculateRootCoord, calculateRootHeight, findBlockEmbeddingNode, getCardinality, getCardinality, getCell, getCoord, getEndingNode, getExtremity, getExtremityNode, getGraph, getOrder, getOrientation, getPosition, getStartingNode, getType, isEmbeddingNodeType, setCardinality, setCell, setOrientation, setOrientation, setParentBlock, writeJson
-
Methods inherited from interface com.powsybl.sld.model.LegBlock
getLegNode
-
-
-
-
Method Detail
-
getBusNode
public BusNode getBusNode()
-
getBusNodes
public List<BusNode> getBusNodes()
- Specified by:
getBusNodes
in interfaceLegBlock
-
addStackableBlock
public void addStackableBlock(LegPrimaryBlock block)
-
getStackableBlocks
public List<LegPrimaryBlock> getStackableBlocks()
-
reverseBlock
public void reverseBlock()
- Specified by:
reverseBlock
in interfaceBlock
- Overrides:
reverseBlock
in classAbstractPrimaryBlock
-
sizing
public void sizing()
Description copied from interface:Block
Calculate maximal pxWidth that layout.block can use in a cell without modifying root pxWidth
-
calculateHeight
public double calculateHeight(Set<Node> encounteredNodes, LayoutParameters layoutParameters)
- Specified by:
calculateHeight
in interfaceBlock
-
coordHorizontalCase
public void coordHorizontalCase(LayoutParameters layoutParam)
- Specified by:
coordHorizontalCase
in interfaceBlock
-
coordVerticalCase
public void coordVerticalCase(LayoutParameters layoutParam)
- Specified by:
coordVerticalCase
in interfaceBlock
-
-