Package com.powsybl.sld.model
Interface Block
-
- All Known Subinterfaces:
ComposedBlock
,LegBlock
,PrimaryBlock
- All Known Implementing Classes:
AbstractBlock
,AbstractComposedBlock
,AbstractPrimaryBlock
,BodyParallelBlock
,BodyPrimaryBlock
,FeederPrimaryBlock
,LegParralelBlock
,LegPrimaryBlock
,SerialBlock
,UndefinedBlock
public interface Block
- Author:
- Benoit Jeanson
, Nicolas Duchene, Geoffroy Jamgotchian , Franck Lecuyer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Block.Extremity
static class
Block.Type
-
Method Summary
-
-
-
Method Detail
-
getGraph
VoltageLevelGraph getGraph()
-
getExtremityNode
Node getExtremityNode(Block.Extremity extremity)
-
getExtremity
Optional<Block.Extremity> getExtremity(Node node)
-
getStartingNode
Node getStartingNode()
-
getEndingNode
Node getEndingNode()
-
reverseBlock
void reverseBlock()
-
isEmbeddingNodeType
boolean isEmbeddingNodeType(Node.NodeType type)
-
setParentBlock
void setParentBlock(Block parentBlock)
-
getPosition
Position getPosition()
-
getCoord
Coord getCoord()
-
sizing
void sizing()
Calculate maximal pxWidth that layout.block can use in a cell without modifying root pxWidth
-
calculateCoord
void calculateCoord(LayoutParameters layoutParam)
Calculates all the blocks dimensions and find the order of the layout.block inside the cell
-
calculateRootCoord
void calculateRootCoord(LayoutParameters layoutParam)
-
calculateHeight
double calculateHeight(Set<Node> encounteredNodes, LayoutParameters layoutParam)
-
calculateRootHeight
double calculateRootHeight(LayoutParameters layoutParam)
-
getOrder
default int getOrder()
-
coordVerticalCase
void coordVerticalCase(LayoutParameters layoutParam)
-
coordHorizontalCase
void coordHorizontalCase(LayoutParameters layoutParam)
-
setCardinality
void setCardinality(Block.Extremity extremity, int i)
-
getCardinality
int getCardinality(Block.Extremity extremity)
-
getCardinality
int getCardinality(Node commonNode)
-
setCell
void setCell(Cell cell)
-
getCell
Cell getCell()
-
setOrientation
void setOrientation(Orientation orientation)
-
setOrientation
void setOrientation(Orientation orientation, boolean recursively)
-
getOrientation
Orientation getOrientation()
-
getType
Block.Type getType()
-
writeJson
void writeJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Throws:
IOException
-
-