Package com.powsybl.sld.model
Class AbstractCell
- java.lang.Object
-
- com.powsybl.sld.model.AbstractCell
-
- All Implemented Interfaces:
Cell
- Direct Known Subclasses:
AbstractBusCell
,ShuntCell
public abstract class AbstractCell extends Object implements Cell
- Author:
- Benoit Jeanson
, Nicolas Duchene, Geoffroy Jamgotchian , Franck Lecuyer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.sld.model.Cell
Cell.CellType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNodes(List<Node> nodesToAdd)
double
calculateHeight(LayoutParameters layoutParam)
String
getFullId()
VoltageLevelGraph
getGraph()
String
getId()
List<Node>
getNodes()
int
getNumber()
Block
getRootBlock()
Cell.CellType
getType()
void
removeAllNodes(List<Node> nodeToRemove)
void
setNodes(List<Node> nodes)
void
setRootBlock(Block rootBlock)
void
setType(Cell.CellType type)
String
toString()
void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator)
protected void
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator)
-
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.Cell
blockSizing, calculateCoord
-
-
-
-
Method Detail
-
removeAllNodes
public void removeAllNodes(List<Node> nodeToRemove)
- Specified by:
removeAllNodes
in interfaceCell
-
setType
public void setType(Cell.CellType type)
-
getType
public Cell.CellType getType()
-
getRootBlock
public Block getRootBlock()
- Specified by:
getRootBlock
in interfaceCell
-
setRootBlock
public void setRootBlock(Block rootBlock)
- Specified by:
setRootBlock
in interfaceCell
-
writeJsonContent
protected void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Throws:
IOException
-
writeJson
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Specified by:
writeJson
in interfaceCell
- Throws:
IOException
-
getGraph
public VoltageLevelGraph getGraph()
-
calculateHeight
public double calculateHeight(LayoutParameters layoutParam)
- Specified by:
calculateHeight
in interfaceCell
-
-