Package com.powsybl.sld.model.graphs
Class ZoneGraph
- java.lang.Object
-
- com.powsybl.sld.model.graphs.AbstractGraph
-
- com.powsybl.sld.model.graphs.ZoneGraph
-
- All Implemented Interfaces:
Graph
public class ZoneGraph extends AbstractGraph
- Author:
- Massimo Ferraro
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchEdge
addLineEdge(String lineId, Node node1, Node node2)
void
addSubstation(SubstationGraph sGraph)
static ZoneGraph
create(List<String> zone)
Stream<Node>
getAllNodesStream()
String
getId()
BranchEdge
getLineEdge(String lineId)
SubstationGraph
getSubstationGraph(String id)
List<SubstationGraph>
getSubstations()
VoltageLevelGraph
getVoltageLevel(String voltageLevelId)
List<VoltageLevelGraph>
getVoltageLevels()
Stream<VoltageLevelGraph>
getVoltageLevelStream()
List<String>
getZone()
void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates)
-
Methods inherited from class com.powsybl.sld.model.graphs.AbstractGraph
addNode, getCell, getDirection, getHeight, getLineEdges, getNodeToVlGraph, getShiftedPoint, getVoltageLevelGraph, getVoltageLevelInfos, getWidth, removeNode, setCoordinatesSerialized, setSize, writeJson, writeJson
-
-
-
-
Method Detail
-
getId
public String getId()
-
addSubstation
public void addSubstation(SubstationGraph sGraph)
-
addLineEdge
public BranchEdge addLineEdge(String lineId, Node node1, Node node2)
- Specified by:
addLineEdge
in interfaceGraph
- Overrides:
addLineEdge
in classAbstractGraph
-
getSubstations
public List<SubstationGraph> getSubstations()
-
getVoltageLevel
public VoltageLevelGraph getVoltageLevel(String voltageLevelId)
-
getVoltageLevelStream
public Stream<VoltageLevelGraph> getVoltageLevelStream()
-
getVoltageLevels
public List<VoltageLevelGraph> getVoltageLevels()
-
getSubstationGraph
public SubstationGraph getSubstationGraph(String id)
-
getLineEdge
public BranchEdge getLineEdge(String lineId)
-
writeJson
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates) throws IOException
- Specified by:
writeJson
in classAbstractGraph
- Throws:
IOException
-
-