Package com.powsybl.iidm.network.util
Class ContainersMapping
- java.lang.Object
-
- com.powsybl.iidm.network.util.ContainersMapping
-
public class ContainersMapping extends Object
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
-
-
Constructor Summary
Constructors Constructor Description ContainersMapping()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <N,B>
ContainersMappingcreate(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)
String
getSubstationId(String voltageLevelId)
String
getVoltageLevelId(int num)
-
-
-
Method Detail
-
getVoltageLevelId
public String getVoltageLevelId(int num)
-
create
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)
-
-