Package com.powsybl.sld.model.graphs
Class SubstationGraph
- java.lang.Object
-
- com.powsybl.sld.model.graphs.AbstractGraph
-
- com.powsybl.sld.model.graphs.AbstractBaseGraph
-
- com.powsybl.sld.model.graphs.SubstationGraph
-
public class SubstationGraph extends AbstractBaseGraph
This class builds the connectivity among the voltageLevels of a substation buildSubstationGraph establishes the List of nodes, edges- Author:
- Franck Lecuyer
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.model.graphs.AbstractBaseGraph
multiTermNodes, twtEdges
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SubstationGraph(String id, Graph parentGraph)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVoltageLevel(VoltageLevelGraph node)
static SubstationGraph
create(String id)
static SubstationGraph
create(String id, Graph parentGraph)
Stream<Node>
getAllNodesStream()
List<BranchEdge>
getEdges()
String
getId()
String
getSubstationId()
VoltageLevelGraph
getVoltageLevel(String voltageLevelId)
List<VoltageLevelGraph>
getVoltageLevels()
Stream<VoltageLevelGraph>
getVoltageLevelStream()
boolean
graphAdjacents(VoltageLevelGraph g1, VoltageLevelGraph g2)
org.jgrapht.Graph<VoltageLevelGraph,Object>
toJgrapht()
void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates)
-
Methods inherited from class com.powsybl.sld.model.graphs.AbstractBaseGraph
addMultiTermNode, addTwtEdge, getMultiTermNodes, getTwtEdges, writeBranchFields
-
Methods inherited from class com.powsybl.sld.model.graphs.AbstractGraph
addLineEdge, addNode, getCell, getDirection, getHeight, getLineEdges, getNodeToVlGraph, getShiftedPoint, getVoltageLevelGraph, getVoltageLevelInfos, getWidth, removeNode, setCoordinatesSerialized, setSize, writeJson, writeJson
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.sld.model.graphs.Graph
addLineEdge, addNode, getCell, getDirection, getHeight, getLineEdges, getNodeToVlGraph, getShiftedPoint, getVoltageLevelGraph, getVoltageLevelInfos, getWidth, removeNode, setCoordinatesSerialized, writeJson, writeJson
-
-
-
-
Method Detail
-
create
public static SubstationGraph create(String id, Graph parentGraph)
-
create
public static SubstationGraph create(String id)
-
addVoltageLevel
public void addVoltageLevel(VoltageLevelGraph node)
-
getVoltageLevel
public VoltageLevelGraph getVoltageLevel(String voltageLevelId)
-
getVoltageLevels
public List<VoltageLevelGraph> getVoltageLevels()
-
getVoltageLevelStream
public Stream<VoltageLevelGraph> getVoltageLevelStream()
-
getEdges
public List<BranchEdge> getEdges()
-
graphAdjacents
public boolean graphAdjacents(VoltageLevelGraph g1, VoltageLevelGraph g2)
-
getSubstationId
public String getSubstationId()
-
toJgrapht
public org.jgrapht.Graph<VoltageLevelGraph,Object> toJgrapht()
-
getId
public String getId()
-
writeJson
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator, boolean includeCoordinates) throws IOException
- Specified by:
writeJson
in classAbstractGraph
- Throws:
IOException
-
-