Package com.powsybl.sld.model.cells
Class AbstractCell
- java.lang.Object
-
- com.powsybl.sld.model.cells.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.cells.Cell
Cell.CellType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFullId()
String
getId()
List<Node>
getNodes()
int
getNumber()
Block
getRootBlock()
Cell.CellType
getType()
void
setRootBlock(Block rootBlock)
void
setType(Cell.CellType type)
String
toString()
void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates)
protected void
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates)
-
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.cells.Cell
accept, blockSizing, getDirection
-
-
-
-
Method Detail
-
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, boolean includeCoordinates) throws IOException
- Throws:
IOException
-
writeJson
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates) throws IOException
- Specified by:
writeJson
in interfaceCell
- Throws:
IOException
-
-