Package com.powsybl.sld.cgmes.layout
Class CgmesVoltageLevelLayoutFactorySmartSelector
- java.lang.Object
-
- com.powsybl.sld.cgmes.layout.CgmesVoltageLevelLayoutFactorySmartSelector
-
- All Implemented Interfaces:
VoltageLevelLayoutFactorySmartSelector
@AutoService(VoltageLevelLayoutFactorySmartSelector.class) public class CgmesVoltageLevelLayoutFactorySmartSelector extends Object implements VoltageLevelLayoutFactorySmartSelector
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description CgmesVoltageLevelLayoutFactorySmartSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoltageLevelLayoutFactory
createFactory(com.powsybl.iidm.network.Network network)
Create aVoltageLevelLayoutFactory
instance.int
getPriority(com.powsybl.iidm.network.VoltageLevel vl)
Get a selection priority number.boolean
isSelectable(com.powsybl.iidm.network.VoltageLevel vl)
Verify that theVoltageLevelLayoutFactory
is selectable for this voltage level.
-
-
-
Method Detail
-
getPriority
public int getPriority(com.powsybl.iidm.network.VoltageLevel vl)
Description copied from interface:VoltageLevelLayoutFactorySmartSelector
Get a selection priority number. A high number means a high priority.- Specified by:
getPriority
in interfaceVoltageLevelLayoutFactorySmartSelector
- Parameters:
vl
- the voltage level- Returns:
- priority number
-
isSelectable
public boolean isSelectable(com.powsybl.iidm.network.VoltageLevel vl)
Description copied from interface:VoltageLevelLayoutFactorySmartSelector
Verify that theVoltageLevelLayoutFactory
is selectable for this voltage level.- Specified by:
isSelectable
in interfaceVoltageLevelLayoutFactorySmartSelector
- Parameters:
vl
- the voltage level- Returns:
- true if the
VoltageLevelLayoutFactory
is selectable for this voltage level, false otherwise.
-
createFactory
public VoltageLevelLayoutFactory createFactory(com.powsybl.iidm.network.Network network)
Description copied from interface:VoltageLevelLayoutFactorySmartSelector
Create aVoltageLevelLayoutFactory
instance.- Specified by:
createFactory
in interfaceVoltageLevelLayoutFactorySmartSelector
- Returns:
- a
VoltageLevelLayoutFactory
instance
-
-