Package com.powsybl.ampl.converter
Class AbstractAmplNetworkUpdater
- java.lang.Object
-
- com.powsybl.ampl.converter.AbstractAmplNetworkUpdater
-
- All Implemented Interfaces:
AmplNetworkUpdater
- Direct Known Subclasses:
DefaultAmplNetworkUpdater
public abstract class AbstractAmplNetworkUpdater extends Object implements AmplNetworkUpdater
Provides some utility functions for implementations :busConnection(com.powsybl.iidm.network.Terminal, int, com.powsybl.commons.util.StringToIntMapper<com.powsybl.ampl.converter.AmplSubset>)
getThreeWindingsTransformerLeg(com.powsybl.iidm.network.ThreeWindingsTransformer, java.lang.String)
getThreeWindingsTransformer(com.powsybl.iidm.network.Network, java.lang.String)
- Author:
- Nicolas Pierre
-
-
Constructor Summary
Constructors Constructor Description AbstractAmplNetworkUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
busConnection(Terminal t, int busNum, StringToIntMapper<AmplSubset> mapper)
ThreeWindingsTransformer
getThreeWindingsTransformer(Network network, String legId)
Return a 3 windings transformer from one its leg IDThreeWindingsTransformer.Leg
getThreeWindingsTransformerLeg(ThreeWindingsTransformer twt, String legId)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.ampl.converter.AmplNetworkUpdater
updateNetworkBattery, updateNetworkBranch, updateNetworkBus, updateNetworkGenerators, updateNetworkHvdcLine, updateNetworkLcc, updateNetworkLoad, updateNetworkPhaseTapChanger, updateNetworkRatioTapChanger, updateNetworkShunt, updateNetworkSvc, updateNetworkVsc
-
-
-
-
Method Detail
-
busConnection
public void busConnection(Terminal t, int busNum, StringToIntMapper<AmplSubset> mapper)
-
getThreeWindingsTransformerLeg
public ThreeWindingsTransformer.Leg getThreeWindingsTransformerLeg(ThreeWindingsTransformer twt, String legId)
-
getThreeWindingsTransformer
public ThreeWindingsTransformer getThreeWindingsTransformer(Network network, String legId)
Return a 3 windings transformer from one its leg ID- Parameters:
legId
- The ID of a 3WT legnetwork
- The IIDM network to update- Returns:
- A three windings transformer or null if not found
-
-