Package com.powsybl.sld.model
Class BusNode
- java.lang.Object
-
- com.powsybl.sld.model.Node
-
- com.powsybl.sld.model.BusNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.powsybl.sld.model.Node
Node.NodeType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BusNode(String id, String name, boolean fictitious, VoltageLevelGraph graph)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
calculateCoord(LayoutParameters layoutParameters)
static BusNode
create(VoltageLevelGraph graph, String id, String name)
static BusNode
createFictitious(VoltageLevelGraph graph, String id)
int
getBusbarIndex()
Position
getPosition()
double
getPxWidth()
int
getSectionIndex()
void
setBusbarIndex(int busbarIndex)
void
setBusBarIndexSectionIndex(int busbarIndex, int sectionIndex)
void
setCell(Cell cell)
void
setPosition(Position position)
void
setPxWidth(double widthBus)
void
setSectionIndex(int sectionIndex)
protected void
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator)
-
Methods inherited from class com.powsybl.sld.model.Node
addAdjacentEdge, checkNodeSimilarity, getAdjacentEdges, getAdjacentNodes, getCell, getComponentType, getCoordinates, getDiagramCoordinates, getDiagramX, getDiagramY, getEquipmentId, getGraph, getId, getLabel, getListNodeAdjInCell, getName, getRotationAngle, getType, getVoltageLevelInfos, getX, getY, isFictitious, isOpen, isRotated, resetCoords, setCoordinates, setCoordinates, setLabel, setOpen, setRotationAngle, setType, setX, setY, shiftY, similarToAFeederNode, toString, writeJson
-
-
-
-
Constructor Detail
-
BusNode
protected BusNode(String id, String name, boolean fictitious, VoltageLevelGraph graph)
-
-
Method Detail
-
create
public static BusNode create(VoltageLevelGraph graph, String id, String name)
-
createFictitious
public static BusNode createFictitious(VoltageLevelGraph graph, String id)
-
calculateCoord
public void calculateCoord(LayoutParameters layoutParameters)
-
getPxWidth
public double getPxWidth()
-
setPxWidth
public void setPxWidth(double widthBus)
-
getPosition
public Position getPosition()
-
setPosition
public void setPosition(Position position)
-
setBusBarIndexSectionIndex
public void setBusBarIndexSectionIndex(int busbarIndex, int sectionIndex)
-
getBusbarIndex
public int getBusbarIndex()
-
setBusbarIndex
public void setBusbarIndex(int busbarIndex)
-
getSectionIndex
public int getSectionIndex()
-
setSectionIndex
public void setSectionIndex(int sectionIndex)
-
writeJsonContent
protected void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Overrides:
writeJsonContent
in classNode
- Throws:
IOException
-
-