Package com.powsybl.sld.model
Class AbstractPrimaryBlock
- java.lang.Object
-
- com.powsybl.sld.model.AbstractBlock
-
- com.powsybl.sld.model.AbstractPrimaryBlock
-
- All Implemented Interfaces:
Block
,PrimaryBlock
- Direct Known Subclasses:
BodyPrimaryBlock
,FeederPrimaryBlock
,LegPrimaryBlock
public abstract class AbstractPrimaryBlock extends AbstractBlock implements PrimaryBlock
- Author:
- Benoit Jeanson
, Nicolas Duchene, Geoffroy Jamgotchian , Franck Lecuyer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.sld.model.Block
Block.Extremity, Block.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Node>
nodes
-
Fields inherited from class com.powsybl.sld.model.AbstractBlock
type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrimaryBlock
createPrimaryBlock(List<Node> primaryPattern, Cell cell)
List<Block>
findBlockEmbeddingNode(Node node)
Node
getExtremityNode(Block.Extremity extremity)
VoltageLevelGraph
getGraph()
List<Node>
getNodes()
boolean
isEmbeddingNodeType(Node.NodeType type)
void
reverseBlock()
String
toString()
protected void
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator)
-
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, calculateHeight, calculateRootCoord, calculateRootHeight, coordHorizontalCase, coordVerticalCase, getCardinality, getCardinality, getCell, getCoord, getEndingNode, getExtremity, getOrder, getOrientation, getPosition, getStartingNode, getType, setCardinality, setCell, setOrientation, setOrientation, setParentBlock, sizing, writeJson
-
-
-
-
Method Detail
-
createPrimaryBlock
public static PrimaryBlock createPrimaryBlock(List<Node> primaryPattern, Cell cell)
-
getGraph
public VoltageLevelGraph getGraph()
-
isEmbeddingNodeType
public boolean isEmbeddingNodeType(Node.NodeType type)
- Specified by:
isEmbeddingNodeType
in interfaceBlock
-
findBlockEmbeddingNode
public List<Block> findBlockEmbeddingNode(Node node)
- Specified by:
findBlockEmbeddingNode
in interfaceBlock
-
getNodes
public List<Node> getNodes()
- Specified by:
getNodes
in interfacePrimaryBlock
-
reverseBlock
public void reverseBlock()
- Specified by:
reverseBlock
in interfaceBlock
-
getExtremityNode
public Node getExtremityNode(Block.Extremity extremity)
- Specified by:
getExtremityNode
in interfaceBlock
-
writeJsonContent
protected void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Specified by:
writeJsonContent
in classAbstractBlock
- Throws:
IOException
-
-