Package com.powsybl.sld.model.cells
Class InternCell
- java.lang.Object
-
- com.powsybl.sld.model.cells.AbstractCell
-
- com.powsybl.sld.model.cells.AbstractBusCell
-
- com.powsybl.sld.model.cells.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.cells.Cell
Cell.CellType
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.model.cells.AbstractCell
nodes
-
-
Constructor Summary
Constructors Constructor Description InternCell(int cellNumber, Collection<Node> nodes, boolean exceptionIfPatternNotHandled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(CellVisitor cellVisitor)
void
blockSizing()
boolean
checkIsNotShape(InternCell.Shape... shapes)
boolean
checkIsShape(InternCell.Shape... shape)
Block
getBodyBlock()
Map<Side,LegBlock>
getLegs()
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(Direction direction)
void
setFlat()
void
setShape(InternCell.Shape shape)
-
Methods inherited from class com.powsybl.sld.model.cells.AbstractBusCell
blocksSetting, getBusNodes, getDirection, getLegPrimaryBlocks, getOrder, removeOrder, setOrder, toString, writeJsonContent
-
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.Cell
getFullId, getId, getNodes, getNumber, getRootBlock, getType, setRootBlock, setType, writeJson
-
-
-
-
Constructor Detail
-
InternCell
public InternCell(int cellNumber, Collection<Node> nodes, boolean exceptionIfPatternNotHandled)
-
-
Method Detail
-
accept
public void accept(CellVisitor cellVisitor)
-
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(Direction direction)
- Specified by:
setDirection
in interfaceBusCell
- Overrides:
setDirection
in classAbstractBusCell
-
getBodyBlock
public Block getBodyBlock()
-
getShape
public InternCell.Shape getShape()
-
setShape
public void setShape(InternCell.Shape shape)
-
-