Package com.powsybl.sld.model.blocks
Class FeederPrimaryBlock
- java.lang.Object
-
- com.powsybl.sld.model.blocks.AbstractBlock
-
- com.powsybl.sld.model.blocks.AbstractPrimaryBlock
-
- com.powsybl.sld.model.blocks.FeederPrimaryBlock
-
- All Implemented Interfaces:
Block
,PrimaryBlock
public class FeederPrimaryBlock extends AbstractPrimaryBlock
- Author:
- Florian Dupuy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.sld.model.blocks.Block
Block.Extremity, Block.Type
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.model.blocks.AbstractPrimaryBlock
nodes
-
Fields inherited from class com.powsybl.sld.model.blocks.AbstractBlock
type
-
-
Constructor Summary
Constructors Constructor Description FeederPrimaryBlock(List<Node> nodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(BlockVisitor blockVisitor)
Node
getConnectedNode()
FeederNode
getFeederNode()
int
getOrder()
Calculates all the blocks dimensions and find the order of the layout.block inside the cellvoid
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.blocks.AbstractPrimaryBlock
createPrimaryBlock, findBlockEmbeddingNode, getExtremityNode, getNodes, isEmbeddingNodeType, setOrientation, setOrientation, toString, writeJsonContent
-
Methods inherited from class com.powsybl.sld.model.blocks.AbstractBlock
getCardinality, getCardinality, getCoord, getEndingNode, getExtremity, getOrientation, getParentBlock, getPosition, getStartingNode, getType, setCardinality, 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.blocks.Block
getCardinality, getCardinality, getCoord, getEndingNode, getExtremity, getOrientation, getPosition, getStartingNode, getType, setCardinality, setParentBlock, writeJson
-
-
-
-
Method Detail
-
getFeederNode
public FeederNode getFeederNode()
-
getConnectedNode
public Node getConnectedNode()
-
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
-
accept
public void accept(BlockVisitor blockVisitor)
-
getOrder
public int getOrder()
Description copied from interface:Block
Calculates all the blocks dimensions and find the order of the layout.block inside the cell
-
-