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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
calculateCoord(LayoutParameters layoutParam)
Calculates all the blocks dimensions and find the order of the layout.block inside the celldouble
calculateHeight(Set<Node> encounteredNodes, LayoutParameters layoutParam)
void
calculateRootCoord(VoltageLevelGraph vlGraph, LayoutParameters layoutParam)
double
calculateRootHeight(LayoutParameters layoutParam)
void
coordHorizontalCase(LayoutParameters layoutParam)
void
coordVerticalCase(LayoutParameters layoutParam)
List<Block>
findBlockEmbeddingNode(Node node)
int
getCardinality(Block.Extremity extremity)
int
getCardinality(Node commonNode)
Cell
getCell()
Coord
getCoord()
Node
getEndingNode()
Optional<Block.Extremity>
getExtremity(Node node)
Node
getExtremityNode(Block.Extremity extremity)
default int
getOrder()
Orientation
getOrientation()
Position
getPosition()
Node
getStartingNode()
Block.Type
getType()
VoltageLevelGraph
getVoltageLevelGraph()
boolean
isEmbeddingNodeType(Node.NodeType type)
void
reverseBlock()
void
setCardinality(Block.Extremity extremity, int i)
void
setCell(Cell cell)
void
setOrientation(Orientation orientation)
void
setOrientation(Orientation orientation, boolean recursively)
void
setParentBlock(Block parentBlock)
void
sizing()
Calculate maximal pxWidth that layout.block can use in a cell without modifying root pxWidthvoid
writeJson(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates)
-
-
-
Method Detail
-
getVoltageLevelGraph
VoltageLevelGraph getVoltageLevelGraph()
-
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(VoltageLevelGraph vlGraph, 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, boolean includeCoordinates) throws IOException
- Throws:
IOException
-
-