Package com.powsybl.sld.model.cells
Class AbstractBusCell
- java.lang.Object
-
- com.powsybl.sld.model.cells.AbstractCell
-
- com.powsybl.sld.model.cells.AbstractBusCell
-
- Direct Known Subclasses:
ExternCell
,InternCell
public abstract class AbstractBusCell extends AbstractCell implements BusCell
- 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
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.model.cells.AbstractCell
nodes
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBusCell(int cellIndex, Cell.CellType type, Collection<Node> nodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blocksSetting(Block rootBlock, List<LegPrimaryBlock> primaryBlocksConnectedToBus)
List<BusNode>
getBusNodes()
Direction
getDirection()
List<LegPrimaryBlock>
getLegPrimaryBlocks()
Optional<Integer>
getOrder()
void
removeOrder()
void
setDirection(Direction direction)
void
setOrder(int order)
String
toString()
protected void
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates)
-
Methods inherited from class com.powsybl.sld.model.cells.AbstractCell
getFullId, getId, getNodes, getNumber, getRootBlock, getType, setRootBlock, setType, 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.cells.BusCell
newHPosition
-
Methods inherited from interface com.powsybl.sld.model.cells.Cell
accept, blockSizing, getFullId, getId, getNodes, getNumber, getRootBlock, getType, setRootBlock, setType, writeJson
-
-
-
-
Constructor Detail
-
AbstractBusCell
protected AbstractBusCell(int cellIndex, Cell.CellType type, Collection<Node> nodes)
-
-
Method Detail
-
blocksSetting
public void blocksSetting(Block rootBlock, List<LegPrimaryBlock> primaryBlocksConnectedToBus)
- Specified by:
blocksSetting
in interfaceBusCell
-
getBusNodes
public List<BusNode> getBusNodes()
- Specified by:
getBusNodes
in interfaceBusCell
-
getLegPrimaryBlocks
public List<LegPrimaryBlock> getLegPrimaryBlocks()
- Specified by:
getLegPrimaryBlocks
in interfaceBusCell
-
removeOrder
public void removeOrder()
- Specified by:
removeOrder
in interfaceBusCell
-
getDirection
public Direction getDirection()
- Specified by:
getDirection
in interfaceCell
-
setDirection
public void setDirection(Direction direction)
- Specified by:
setDirection
in interfaceBusCell
-
writeJsonContent
protected void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates) throws IOException
- Overrides:
writeJsonContent
in classAbstractCell
- Throws:
IOException
-
toString
public String toString()
- Overrides:
toString
in classAbstractCell
-
-