Package com.powsybl.sld.model
Class SubstationGraph
- java.lang.Object
-
- com.powsybl.sld.model.AbstractGraph
-
- com.powsybl.sld.model.AbstractLineGraph
-
- com.powsybl.sld.model.AbstractBaseGraph
-
- com.powsybl.sld.model.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.AbstractBaseGraph
multiTermNodes, twtEdges
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SubstationGraph(String id)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNode(VoltageLevelGraph node)
static SubstationGraph
create(String id)
List<BranchEdge>
getEdges()
String
getId()
VoltageLevelGraph
getNode(String id)
List<VoltageLevelGraph>
getNodes()
Stream<VoltageLevelGraph>
getNodeStream()
String
getSubstationId()
VoltageLevelGraph
getVLGraph(String voltageLevelId)
boolean
graphAdjacents(VoltageLevelGraph g1, VoltageLevelGraph g2)
org.jgrapht.Graph<VoltageLevelGraph,Object>
toJgrapht()
void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator)
-
Methods inherited from class com.powsybl.sld.model.AbstractBaseGraph
addMultiTermNode, addTwtEdge, getMultiTermNodes, getTwtEdges, handleMultiTermsNodeRotation, writeBranchFields
-
Methods inherited from class com.powsybl.sld.model.AbstractLineGraph
addLineEdge, getLineEdges
-
Methods inherited from class com.powsybl.sld.model.AbstractGraph
getHeight, getWidth, isGenerateCoordsInJson, setGenerateCoordsInJson, 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.Graph
getHeight, getWidth, isGenerateCoordsInJson, setGenerateCoordsInJson, writeJson, writeJson
-
Methods inherited from interface com.powsybl.sld.model.LineGraph
addLineEdge, getLineEdges
-
-
-
-
Constructor Detail
-
SubstationGraph
protected SubstationGraph(String id)
Constructor
-
-
Method Detail
-
create
public static SubstationGraph create(String id)
-
addNode
public void addNode(VoltageLevelGraph node)
-
getNode
public VoltageLevelGraph getNode(String id)
-
getVLGraph
public VoltageLevelGraph getVLGraph(String voltageLevelId)
-
getNodes
public List<VoltageLevelGraph> getNodes()
-
getNodeStream
public Stream<VoltageLevelGraph> getNodeStream()
-
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) throws IOException
- Specified by:
writeJson
in classAbstractGraph
- Throws:
IOException
-
-