public abstract class AbstractSubstationLayout extends Object implements SubstationLayout
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSubstationLayout.InfosNbSnakeLines |
Modifier and Type | Field and Description |
---|---|
protected SubstationGraph |
graph |
protected VoltageLevelLayoutFactory |
vLayoutFactory |
Constructor and Description |
---|
AbstractSubstationLayout(SubstationGraph graph,
VoltageLevelLayoutFactory vLayoutFactory) |
Modifier and Type | Method and Description |
---|---|
protected abstract Coord |
calculateCoordVoltageLevel(LayoutParameters layoutParameters,
Graph vlGraph) |
protected abstract List<Double> |
calculatePolylineSnakeLine(LayoutParameters layoutParameters,
Node node1,
Node node2,
AbstractSubstationLayout.InfosNbSnakeLines infosNbSnakeLines,
boolean increment) |
protected abstract double |
getHorizontalSubstationPadding(LayoutParameters layoutParameters) |
protected BusCell.Direction |
getNodeDirection(Node node,
int nb) |
protected abstract double |
getVerticalSubstationPadding(LayoutParameters layoutParameters) |
protected void |
manageSnakeLines(LayoutParameters layoutParameters) |
void |
run(LayoutParameters layoutParameters)
Calculate real coordinates of nodes in the substation graph
|
protected List<Double> |
splitPolyline2(List<Double> pol,
int numPart,
Coord coord) |
protected List<Double> |
splitPolyline3(List<Double> pol1,
List<Double> pol2,
int numPart,
Coord coord) |
protected SubstationGraph graph
protected VoltageLevelLayoutFactory vLayoutFactory
public AbstractSubstationLayout(SubstationGraph graph, VoltageLevelLayoutFactory vLayoutFactory)
public void run(LayoutParameters layoutParameters)
SubstationLayout
run
in interface SubstationLayout
protected abstract Coord calculateCoordVoltageLevel(LayoutParameters layoutParameters, Graph vlGraph)
protected abstract double getHorizontalSubstationPadding(LayoutParameters layoutParameters)
protected abstract double getVerticalSubstationPadding(LayoutParameters layoutParameters)
protected abstract List<Double> calculatePolylineSnakeLine(LayoutParameters layoutParameters, Node node1, Node node2, AbstractSubstationLayout.InfosNbSnakeLines infosNbSnakeLines, boolean increment)
protected BusCell.Direction getNodeDirection(Node node, int nb)
protected void manageSnakeLines(LayoutParameters layoutParameters)
Copyright © 2020. All rights reserved.