Package com.powsybl.iidm.network.util
Class ContainersMapping
java.lang.Object
com.powsybl.iidm.network.util.ContainersMapping
A utility class that create IIDM containers, i.e voltage levels and substations from a bus branch model with respect
to IIDM container requirements.
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <N,
B> ContainersMapping create
(List<N> buses, List<B> branches, ToIntFunction<N> busToNum, ToIntFunction<B> branchToNum1, ToIntFunction<B> branchToNum2, Predicate<B> branchToIsZeroImpedance, Predicate<B> branchToIsTransformer, ToDoubleFunction<Integer> busToNominalVoltage, Function<Set<Integer>, String> busesToVoltageLevelId, Function<Set<Integer>, String> busesToSubstationId) static <N,
B> ContainersMapping create
(List<N> buses, List<B> branches, ToIntFunction<N> busToNum, ToIntFunction<B> branchToNum1, ToIntFunction<B> branchToNum2, ToIntFunction<B> branchToNum3, ToDoubleFunction<B> branchToResistance, ToDoubleFunction<B> branchToReactance, Predicate<B> branchToIsTransformer, Function<Set<Integer>, String> busesToVoltageLevelId, IntFunction<String> substationNumToId) Deprecated.Not used anymore.getSubstationId
(String voltageLevelId) getVoltageLevelId
(int num)
-
Constructor Details
-
ContainersMapping
public ContainersMapping()
-
-
Method Details
-
getVoltageLevelId
-
getSubstationId
-
create
@Deprecated(since="4.9.2") public static <N,B> ContainersMapping create(List<N> buses, List<B> branches, ToIntFunction<N> busToNum, ToIntFunction<B> branchToNum1, ToIntFunction<B> branchToNum2, ToIntFunction<B> branchToNum3, ToDoubleFunction<B> branchToResistance, ToDoubleFunction<B> branchToReactance, Predicate<B> branchToIsTransformer, Function<Set<Integer>, String> busesToVoltageLevelId, IntFunction<String> substationNumToId) Deprecated.Not used anymore. UseContainersMapping#create(List, List, ToIntFunction, ToIntFunction, ToIntFunction, Predicate, Predicate, ToDoubleFunction, Function, IntFunction)
instead. -
create
public static <N,B> ContainersMapping create(List<N> buses, List<B> branches, ToIntFunction<N> busToNum, ToIntFunction<B> branchToNum1, ToIntFunction<B> branchToNum2, Predicate<B> branchToIsZeroImpedance, Predicate<B> branchToIsTransformer, ToDoubleFunction<Integer> busToNominalVoltage, Function<Set<Integer>, String> busesToVoltageLevelId, Function<Set<Integer>, String> busesToSubstationId)
-