Package com.powsybl.sld.model
Class AbstractBusCell
- java.lang.Object
-
- com.powsybl.sld.model.AbstractCell
-
- com.powsybl.sld.model.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.BusCell
BusCell.Direction
-
Nested classes/interfaces inherited from interface com.powsybl.sld.model.Cell
Cell.CellType
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.model.AbstractCell
nodes
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBusCell(VoltageLevelGraph graph, Cell.CellType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blocksSetting(Block rootBlock, List<LegPrimaryBlock> primaryBlocksConnectedToBus)
void
calculateCoord(LayoutParameters layoutParam)
double
calculateHeight(LayoutParameters layoutParam)
List<BusNode>
getBusNodes()
BusCell.Direction
getDirection()
List<LegPrimaryBlock>
getLegPrimaryBlocks()
Optional<Integer>
getOrder()
void
removeOrder()
void
setDirection(BusCell.Direction direction)
void
setOrder(int order)
String
toString()
protected void
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator)
-
Methods inherited from class com.powsybl.sld.model.AbstractCell
addNodes, getFullId, getGraph, getId, getNodes, getNumber, getRootBlock, getType, removeAllNodes, setNodes, 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.BusCell
newHPosition
-
Methods inherited from interface com.powsybl.sld.model.Cell
addNodes, blockSizing, getFullId, getGraph, getId, getNodes, getNumber, getRootBlock, getType, removeAllNodes, setNodes, setRootBlock, setType, writeJson
-
-
-
-
Constructor Detail
-
AbstractBusCell
protected AbstractBusCell(VoltageLevelGraph graph, Cell.CellType type)
-
-
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 BusCell.Direction getDirection()
- Specified by:
getDirection
in interfaceBusCell
-
setDirection
public void setDirection(BusCell.Direction direction)
- Specified by:
setDirection
in interfaceBusCell
-
calculateCoord
public void calculateCoord(LayoutParameters layoutParam)
- Specified by:
calculateCoord
in interfaceCell
-
calculateHeight
public double calculateHeight(LayoutParameters layoutParam)
- Specified by:
calculateHeight
in interfaceCell
- Overrides:
calculateHeight
in classAbstractCell
-
writeJsonContent
protected void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Overrides:
writeJsonContent
in classAbstractCell
- Throws:
IOException
-
toString
public String toString()
- Overrides:
toString
in classAbstractCell
-
-