Package com.powsybl.sld.model
Class InternCell
- java.lang.Object
-
- com.powsybl.sld.model.AbstractCell
-
- com.powsybl.sld.model.AbstractBusCell
-
- com.powsybl.sld.model.InternCell
-
public class InternCell extends AbstractBusCell
- Author:
- Benoit Jeanson
, Nicolas Duchene, Geoffroy Jamgotchian , Franck Lecuyer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InternCell.Shape
-
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 Constructor Description InternCell(VoltageLevelGraph graph, boolean exceptionIfPatternNotHandled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blockSizing()
void
calculateCoord(LayoutParameters layoutParam)
boolean
checkIsNotShape(InternCell.Shape... shapes)
boolean
checkisShape(InternCell.Shape... shape)
Block
getBodyBlock()
InternCell.Shape
getShape()
List<BusNode>
getSideBusNodes(Side side)
int
getSideHPos(Side side)
LegBlock
getSideToLeg(Side side)
void
identifyIfFlat()
int
newHPosition(int hPosition)
int
newHPosition(int hPosition, Side side)
void
organizeBlocks()
void
reverseCell()
void
setDirection(BusCell.Direction direction)
void
setFlat()
void
setShape(InternCell.Shape shape)
-
Methods inherited from class com.powsybl.sld.model.AbstractBusCell
blocksSetting, calculateHeight, getBusNodes, getDirection, getLegPrimaryBlocks, toString, writeJsonContent
-
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.Cell
addNodes, getFullId, getGraph, getId, getNodes, getNumber, getRootBlock, getType, removeAllNodes, setNodes, setRootBlock, setType, writeJson
-
-
-
-
Constructor Detail
-
InternCell
public InternCell(VoltageLevelGraph graph, boolean exceptionIfPatternNotHandled)
-
-
Method Detail
-
organizeBlocks
public void organizeBlocks()
-
setFlat
public void setFlat()
-
identifyIfFlat
public void identifyIfFlat()
-
checkisShape
public boolean checkisShape(InternCell.Shape... shape)
-
checkIsNotShape
public boolean checkIsNotShape(InternCell.Shape... shapes)
-
reverseCell
public void reverseCell()
-
getSideHPos
public int getSideHPos(Side side)
-
blockSizing
public void blockSizing()
-
newHPosition
public int newHPosition(int hPosition)
-
newHPosition
public int newHPosition(int hPosition, Side side)
-
setDirection
public void setDirection(BusCell.Direction direction)
- Specified by:
setDirection
in interfaceBusCell
- Overrides:
setDirection
in classAbstractBusCell
-
calculateCoord
public void calculateCoord(LayoutParameters layoutParam)
- Specified by:
calculateCoord
in interfaceCell
- Overrides:
calculateCoord
in classAbstractBusCell
-
getBodyBlock
public Block getBodyBlock()
-
getShape
public InternCell.Shape getShape()
-
setShape
public void setShape(InternCell.Shape shape)
-
-